diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md
index baa71edbf4ae..d14845206134 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md
@@ -1,14 +1,222 @@
# Release History
-## 1.2.0-beta.2 (Unreleased)
+## 1.2.0-beta.2 (2025-02-27)
-### 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. 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.FleetMemberListResult` was removed
+
+#### `models.UpdateRunListResult` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.FleetUpdateStrategyListResult` was removed
+
+#### `models.FleetListResult` was removed
+
+#### `models.UserAssignedIdentity` was modified
+
+* `java.util.UUID clientId()` -> `java.lang.String clientId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+
+#### `models.ManagedServiceIdentity` was modified
+
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+
+### Features Added
+
+* `models.UpgradeChannel` was added
+
+* `implementation.models.OperationListResult` was added
+
+* `models.AutoUpgradeProfile$Update` was added
+
+* `models.AutoUpgradeProfile$Definition` was added
+
+* `models.FleetStatus` was added
+
+* `models.AutoUpgradeProfileProvisioningState` was added
+
+* `models.FleetMemberStatus` was added
+
+* `models.AutoUpgradeNodeImageSelectionType` was added
+
+* `implementation.models.FleetMemberListResult` was added
+
+* `models.AutoUpgradeProfile$UpdateStages` was added
+
+* `models.AutoUpgradeProfiles` was added
+
+* `models.AutoUpgradeProfile` was added
+
+* `implementation.models.UpdateRunListResult` was added
+
+* `models.AutoUpgradeNodeImageSelection` was added
+
+* `implementation.models.FleetListResult` was added
+
+* `models.AutoUpgradeProfile$DefinitionStages` was added
+
+* `implementation.models.AutoUpgradeProfileListResult` was added
+
+* `implementation.models.FleetUpdateStrategyListResult` was added
+
+#### `models.ApiServerAccessProfile` was modified
+
+* `withSubnetId(java.lang.String)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `enableVnetIntegration()` was added
+* `withEnableVnetIntegration(java.lang.Boolean)` was added
+* `subnetId()` was added
+
+#### `models.UserAssignedIdentity` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.WaitStatus` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `ContainerServiceFleetManager` was modified
+
+* `autoUpgradeProfiles()` was added
+
+#### `models.AgentProfile` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.FleetMember` was modified
+
+* `labels()` was added
+* `status()` was added
+
+#### `models.UpdateStageStatus` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Fleet` was modified
+
+* `status()` was added
+
+#### `models.ManagedServiceIdentity` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.UpdateGroupStatus` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FleetHubProfile` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.UpdateRunStrategy` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NodeImageSelection` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withCustomNodeImageVersions(java.util.List)` was added
+* `customNodeImageVersions()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NodeImageSelectionStatus` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FleetMember$Definition` was modified
+
+* `withLabels(java.util.Map)` was added
+
+#### `models.FleetMemberUpdate` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withLabels(java.util.Map)` was added
+* `labels()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.UpdateStatus` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FleetPatch` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.UpdateGroup` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.ManagedClusterUpgradeSpec` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
-### Other Changes
+#### `models.UpdateStage` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.SkipProperties` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.MemberUpdateStatus` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.FleetCredentialResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.OperationDisplay` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ManagedClusterUpdate` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.SkipTarget` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NodeImageVersion` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.FleetMember$Update` was modified
+
+* `withLabels(java.util.Map)` was added
+
+#### `models.UpdateRunStatus` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
## 1.2.0-beta.1 (2024-10-17)
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md
index 33395f33f8e1..22c83cd7f842 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager ContainerServiceFleet client library for Java
+# Azure Resource Manager Container Service Fleet client library for Java
-Azure Resource Manager ContainerServiceFleet client library for Java.
+Azure Resource Manager Container Service Fleet client library for Java.
-This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2024-05-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. 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.2.0-beta.1
+ 1.2.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ ContainerServiceFleetManager manager = ContainerServiceFleetManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -107,5 +107,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md
index bbffc0d40517..9d7ce33c5606 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md
@@ -14,7 +14,7 @@
- [Delete](#fleetmembers_delete)
- [Get](#fleetmembers_get)
- [ListByFleet](#fleetmembers_listbyfleet)
-- [Update](#fleetmembers_update)
+- [UpdateAsync](#fleetmembers_updateasync)
## FleetUpdateStrategies
@@ -25,13 +25,13 @@
## Fleets
-- [CreateOrUpdate](#fleets_createorupdate)
+- [Create](#fleets_create)
- [Delete](#fleets_delete)
- [GetByResourceGroup](#fleets_getbyresourcegroup)
- [List](#fleets_list)
- [ListByResourceGroup](#fleets_listbyresourcegroup)
- [ListCredentials](#fleets_listcredentials)
-- [Update](#fleets_update)
+- [UpdateAsync](#fleets_updateasync)
## Operations
@@ -56,9 +56,7 @@ import com.azure.resourcemanager.containerservicefleet.models.UpgradeChannel;
*/
public final class AutoUpgradeProfilesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/AutoUpgradeProfiles_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/AutoUpgradeProfiles_CreateOrUpdate.json
*/
/**
* Sample code: Create an AutoUpgradeProfile.
@@ -84,9 +82,7 @@ public final class AutoUpgradeProfilesCreateOrUpdateSamples {
*/
public final class AutoUpgradeProfilesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/AutoUpgradeProfiles_Delete.json
+ * x-ms-original-file: 2025-03-01/AutoUpgradeProfiles_Delete.json
*/
/**
* Sample code: Delete an AutoUpgradeProfile resource.
@@ -109,9 +105,7 @@ public final class AutoUpgradeProfilesDeleteSamples {
*/
public final class AutoUpgradeProfilesGetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/AutoUpgradeProfiles_Get.json
+ * x-ms-original-file: 2025-03-01/AutoUpgradeProfiles_Get.json
*/
/**
* Sample code: Gets an AutoUpgradeProfile resource.
@@ -134,9 +128,7 @@ public final class AutoUpgradeProfilesGetSamples {
*/
public final class AutoUpgradeProfilesListByFleetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/AutoUpgradeProfiles_ListByFleet.json
+ * x-ms-original-file: 2025-03-01/AutoUpgradeProfiles_ListByFleet.json
*/
/**
* Sample code: Lists the AutoUpgradeProfile resources by fleet.
@@ -153,14 +145,15 @@ public final class AutoUpgradeProfilesListByFleetSamples {
### FleetMembers_Create
```java
+import java.util.HashMap;
+import java.util.Map;
+
/**
* Samples for FleetMembers Create.
*/
public final class FleetMembersCreateSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/FleetMembers_Create.json
+ * x-ms-original-file: 2025-03-01/FleetMembers_Create.json
*/
/**
* Sample code: Creates a FleetMember resource with a long running operation.
@@ -174,8 +167,21 @@ public final class FleetMembersCreateSamples {
.withExistingFleet("rg1", "fleet1")
.withClusterResourceId(
"/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1")
+ .withLabels(mapOf("environment", "production"))
.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;
+ }
}
```
@@ -187,9 +193,7 @@ public final class FleetMembersCreateSamples {
*/
public final class FleetMembersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/FleetMembers_Delete.json
+ * x-ms-original-file: 2025-03-01/FleetMembers_Delete.json
*/
/**
* Sample code: Deletes a FleetMember resource asynchronously with a long running operation.
@@ -211,9 +215,7 @@ public final class FleetMembersDeleteSamples {
*/
public final class FleetMembersGetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/FleetMembers_Get.json
+ * x-ms-original-file: 2025-03-01/FleetMembers_Get.json
*/
/**
* Sample code: Gets a FleetMember resource.
@@ -235,9 +237,7 @@ public final class FleetMembersGetSamples {
*/
public final class FleetMembersListByFleetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/FleetMembers_ListByFleet.json
+ * x-ms-original-file: 2025-03-01/FleetMembers_ListByFleet.json
*/
/**
* Sample code: Lists the members of a Fleet.
@@ -251,19 +251,17 @@ public final class FleetMembersListByFleetSamples {
}
```
-### FleetMembers_Update
+### FleetMembers_UpdateAsync
```java
import com.azure.resourcemanager.containerservicefleet.models.FleetMember;
/**
- * Samples for FleetMembers Update.
+ * Samples for FleetMembers UpdateAsync.
*/
-public final class FleetMembersUpdateSamples {
+public final class FleetMembersUpdateAsyncSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/FleetMembers_Update.json
+ * x-ms-original-file: 2025-03-01/FleetMembers_Update.json
*/
/**
* Sample code: Updates a FleetMember resource synchronously.
@@ -293,9 +291,7 @@ import java.util.Arrays;
*/
public final class FleetUpdateStrategiesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateStrategies_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/UpdateStrategies_CreateOrUpdate.json
*/
/**
* Sample code: Create a FleetUpdateStrategy.
@@ -323,9 +319,7 @@ public final class FleetUpdateStrategiesCreateOrUpdateSamples {
*/
public final class FleetUpdateStrategiesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateStrategies_Delete.json
+ * x-ms-original-file: 2025-03-01/UpdateStrategies_Delete.json
*/
/**
* Sample code: Delete a FleetUpdateStrategy resource.
@@ -347,9 +341,7 @@ public final class FleetUpdateStrategiesDeleteSamples {
*/
public final class FleetUpdateStrategiesGetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateStrategies_Get.json
+ * x-ms-original-file: 2025-03-01/UpdateStrategies_Get.json
*/
/**
* Sample code: Get a FleetUpdateStrategy resource.
@@ -371,9 +363,7 @@ public final class FleetUpdateStrategiesGetSamples {
*/
public final class FleetUpdateStrategiesListByFleetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateStrategies_ListByFleet.json
+ * x-ms-original-file: 2025-03-01/UpdateStrategies_ListByFleet.json
*/
/**
* Sample code: List the FleetUpdateStrategy resources by fleet.
@@ -387,7 +377,7 @@ public final class FleetUpdateStrategiesListByFleetSamples {
}
```
-### Fleets_CreateOrUpdate
+### Fleets_Create
```java
import com.azure.resourcemanager.containerservicefleet.models.AgentProfile;
@@ -396,13 +386,11 @@ import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Fleets CreateOrUpdate.
+ * Samples for Fleets Create.
*/
-public final class FleetsCreateOrUpdateSamples {
+public final class FleetsCreateSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/Fleets_CreateOrUpdate.json
*/
/**
* Sample code: Creates a Fleet resource with a long running operation.
@@ -415,7 +403,7 @@ public final class FleetsCreateOrUpdateSamples {
.define("fleet1")
.withRegion("East US")
.withExistingResourceGroup("rg1")
- .withTags(mapOf("archv2", "", "tier", "production"))
+ .withTags(mapOf("tier", "production", "archv2", ""))
.withHubProfile(new FleetHubProfile().withDnsPrefix("dnsprefix1")
.withAgentProfile(new AgentProfile().withVmSize("Standard_DS1")))
.create();
@@ -443,9 +431,7 @@ public final class FleetsCreateOrUpdateSamples {
*/
public final class FleetsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_Delete.json
+ * x-ms-original-file: 2025-03-01/Fleets_Delete.json
*/
/**
* Sample code: Deletes a Fleet resource asynchronously with a long running operation.
@@ -467,9 +453,7 @@ public final class FleetsDeleteSamples {
*/
public final class FleetsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_Get.json
+ * x-ms-original-file: 2025-03-01/Fleets_Get.json
*/
/**
* Sample code: Gets a Fleet resource.
@@ -491,9 +475,7 @@ public final class FleetsGetByResourceGroupSamples {
*/
public final class FleetsListSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_ListBySub.json
+ * x-ms-original-file: 2025-03-01/Fleets_ListBySub.json
*/
/**
* Sample code: Lists the Fleet resources in a subscription.
@@ -515,9 +497,7 @@ public final class FleetsListSamples {
*/
public final class FleetsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_ListByResourceGroup.json
+ * x-ms-original-file: 2025-03-01/Fleets_ListByResourceGroup.json
*/
/**
* Sample code: Lists the Fleet resources in a resource group.
@@ -539,9 +519,7 @@ public final class FleetsListByResourceGroupSamples {
*/
public final class FleetsListCredentialsSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_ListCredentialsResult.json
+ * x-ms-original-file: 2025-03-01/Fleets_ListCredentialsResult.json
*/
/**
* Sample code: Lists the user credentials of a Fleet.
@@ -555,7 +533,7 @@ public final class FleetsListCredentialsSamples {
}
```
-### Fleets_Update
+### Fleets_UpdateAsync
```java
import com.azure.resourcemanager.containerservicefleet.models.Fleet;
@@ -563,13 +541,11 @@ import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Fleets Update.
+ * Samples for Fleets UpdateAsync.
*/
-public final class FleetsUpdateSamples {
+public final class FleetsUpdateAsyncSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Fleets_PatchTags.json
+ * x-ms-original-file: 2025-03-01/Fleets_PatchTags.json
*/
/**
* Sample code: Update a Fleet.
@@ -581,7 +557,7 @@ public final class FleetsUpdateSamples {
Fleet resource = manager.fleets()
.getByResourceGroupWithResponse("rg1", "fleet1", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withTags(mapOf("env", "prod", "tier", "secure")).withIfMatch("dfjkwelr7384").apply();
+ resource.update().withTags(mapOf("tier", "secure", "env", "prod")).withIfMatch("dfjkwelr7384").apply();
}
// Use "Map.of" if available
@@ -606,9 +582,7 @@ public final class FleetsUpdateSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/Operations_List.json
+ * x-ms-original-file: 2025-03-01/Operations_List.json
*/
/**
* Sample code: List the operations for the provider.
@@ -640,9 +614,7 @@ import java.util.Arrays;
*/
public final class UpdateRunsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_CreateOrUpdate.json
*/
/**
* Sample code: Create an UpdateRun.
@@ -676,9 +648,7 @@ public final class UpdateRunsCreateOrUpdateSamples {
*/
public final class UpdateRunsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_Delete.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_Delete.json
*/
/**
* Sample code: Delete an updateRun resource.
@@ -700,9 +670,7 @@ public final class UpdateRunsDeleteSamples {
*/
public final class UpdateRunsGetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_Get.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_Get.json
*/
/**
* Sample code: Gets an UpdateRun resource.
@@ -724,9 +692,7 @@ public final class UpdateRunsGetSamples {
*/
public final class UpdateRunsListByFleetSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_ListByFleet.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_ListByFleet.json
*/
/**
* Sample code: Lists the UpdateRun resources by fleet.
@@ -753,9 +719,7 @@ import java.util.Arrays;
*/
public final class UpdateRunsSkipSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_Skip.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_Skip.json
*/
/**
* Sample code: Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun.
@@ -782,9 +746,7 @@ public final class UpdateRunsSkipSamples {
*/
public final class UpdateRunsStartSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_Start.json
+ * x-ms-original-file: 2025-03-01/UpdateRuns_Start.json
*/
/**
* Sample code: Starts an UpdateRun.
@@ -806,9 +768,7 @@ public final class UpdateRunsStartSamples {
*/
public final class UpdateRunsStopSamples {
/*
- * x-ms-original-file:
- * specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/
- * examples/UpdateRuns_Stop.json
+ * x-ms-original-file: 2025-03-01/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 0ffb20f0708e..b62722d50eed 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -17,8 +17,8 @@
1.2.0-beta.2
jar
- Microsoft Azure SDK for ContainerServiceFleet Management
- This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager Client. Package tag package-2024-05-preview.
+ 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.
https://github.com/Azure/azure-sdk-for-java
@@ -46,6 +46,7 @@
0
0
true
+ false
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 8f83dc7484ff..14b54a7739fe 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet;
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,9 +20,9 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient;
import com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfilesImpl;
@@ -41,26 +42,27 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* Entry point to ContainerServiceFleetManager.
- * Azure Kubernetes Fleet Manager Client.
+ * Azure Kubernetes Fleet Manager api client.
*/
public final class ContainerServiceFleetManager {
private Operations operations;
private Fleets fleets;
- private AutoUpgradeProfiles autoUpgradeProfiles;
-
private FleetMembers fleetMembers;
private UpdateRuns updateRuns;
private FleetUpdateStrategies fleetUpdateStrategies;
+ private AutoUpgradeProfiles autoUpgradeProfiles;
+
private final ContainerServiceFleetManagementClient clientObject;
private ContainerServiceFleetManager(HttpPipeline httpPipeline, AzureProfile profile,
@@ -75,11 +77,11 @@ private ContainerServiceFleetManager(HttpPipeline httpPipeline, AzureProfile pro
}
/**
- * Creates an instance of ContainerServiceFleet service API entry point.
+ * Creates an instance of Container Service Fleet service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the ContainerServiceFleet service API instance.
+ * @return the Container Service Fleet service API instance.
*/
public static ContainerServiceFleetManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -88,11 +90,11 @@ public static ContainerServiceFleetManager authenticate(TokenCredential credenti
}
/**
- * Creates an instance of ContainerServiceFleet service API entry point.
+ * Creates an instance of Container Service Fleet service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the ContainerServiceFleet service API instance.
+ * @return the Container Service Fleet service API instance.
*/
public static ContainerServiceFleetManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
@@ -114,6 +116,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-containerservicefleet.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -211,22 +216,24 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of ContainerServiceFleet service API entry point.
+ * Creates an instance of Container Service Fleet service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the ContainerServiceFleet service API instance.
+ * @return the Container Service Fleet service API instance.
*/
public ContainerServiceFleetManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.containerservicefleet")
.append("/")
- .append("1.2.0-beta.1");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -259,7 +266,7 @@ public ContainerServiceFleetManager authenticate(TokenCredential credential, Azu
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -296,18 +303,6 @@ public Fleets fleets() {
return fleets;
}
- /**
- * Gets the resource collection API of AutoUpgradeProfiles. It manages AutoUpgradeProfile.
- *
- * @return Resource collection API of AutoUpgradeProfiles.
- */
- public AutoUpgradeProfiles autoUpgradeProfiles() {
- if (this.autoUpgradeProfiles == null) {
- this.autoUpgradeProfiles = new AutoUpgradeProfilesImpl(clientObject.getAutoUpgradeProfiles(), this);
- }
- return autoUpgradeProfiles;
- }
-
/**
* Gets the resource collection API of FleetMembers. It manages FleetMember.
*
@@ -344,6 +339,18 @@ public FleetUpdateStrategies fleetUpdateStrategies() {
return fleetUpdateStrategies;
}
+ /**
+ * Gets the resource collection API of AutoUpgradeProfiles. It manages AutoUpgradeProfile.
+ *
+ * @return Resource collection API of AutoUpgradeProfiles.
+ */
+ public AutoUpgradeProfiles autoUpgradeProfiles() {
+ if (this.autoUpgradeProfiles == null) {
+ this.autoUpgradeProfiles = new AutoUpgradeProfilesImpl(clientObject.getAutoUpgradeProfiles(), this);
+ }
+ return autoUpgradeProfiles;
+ }
+
/**
* Gets wrapped service client ContainerServiceFleetManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java
index 2eb6fbdf7d8b..35cbde2a9095 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -17,33 +17,6 @@
* An instance of this class provides access to all the operations defined in AutoUpgradeProfilesClient.
*/
public interface AutoUpgradeProfilesClient {
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName);
-
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
-
/**
* Get a AutoUpgradeProfile.
*
@@ -205,4 +178,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String fleetName, String autoUpgradeProfileName, String ifMatch,
Context context);
+
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName);
+
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
}
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 fba3890ba0ee..9f6ce21c235f 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -12,26 +12,26 @@
*/
public interface ContainerServiceFleetManagementClient {
/**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -60,13 +60,6 @@ public interface ContainerServiceFleetManagementClient {
*/
FleetsClient getFleets();
- /**
- * Gets the AutoUpgradeProfilesClient object to access its operations.
- *
- * @return the AutoUpgradeProfilesClient object.
- */
- AutoUpgradeProfilesClient getAutoUpgradeProfiles();
-
/**
* Gets the FleetMembersClient object to access its operations.
*
@@ -87,4 +80,11 @@ public interface ContainerServiceFleetManagementClient {
* @return the FleetUpdateStrategiesClient object.
*/
FleetUpdateStrategiesClient getFleetUpdateStrategies();
+
+ /**
+ * Gets the AutoUpgradeProfilesClient object to access its operations.
+ *
+ * @return the AutoUpgradeProfilesClient object.
+ */
+ AutoUpgradeProfilesClient getAutoUpgradeProfiles();
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java
index b6a8be9d8ea5..e17fad6f0642 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -18,33 +18,6 @@
* An instance of this class provides access to all the operations defined in FleetMembersClient.
*/
public interface FleetMembersClient {
- /**
- * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName);
-
- /**
- * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
-
/**
* Get a FleetMember.
*
@@ -158,8 +131,8 @@ FleetMemberInner create(String resourceGroupName, String fleetName, String fleet
* @return the {@link SyncPoller} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetMemberInner> beginUpdate(String resourceGroupName, String fleetName,
- String fleetMemberName, FleetMemberUpdate properties);
+ SyncPoller, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
+ String fleetName, String fleetMemberName, FleetMemberUpdate properties);
/**
* Update a FleetMember.
@@ -176,8 +149,8 @@ SyncPoller, FleetMemberInner> beginUpdate(String re
* @return the {@link SyncPoller} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetMemberInner> beginUpdate(String resourceGroupName, String fleetName,
- String fleetMemberName, FleetMemberUpdate properties, String ifMatch, Context context);
+ SyncPoller, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
+ String fleetName, String fleetMemberName, FleetMemberUpdate properties, String ifMatch, Context context);
/**
* Update a FleetMember.
@@ -192,7 +165,7 @@ SyncPoller, FleetMemberInner> beginUpdate(String re
* @return a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetMemberInner update(String resourceGroupName, String fleetName, String fleetMemberName,
+ FleetMemberInner updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties);
/**
@@ -210,7 +183,7 @@ FleetMemberInner update(String resourceGroupName, String fleetName, String fleet
* @return a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetMemberInner update(String resourceGroupName, String fleetName, String fleetMemberName,
+ FleetMemberInner updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties, String ifMatch, Context context);
/**
@@ -271,4 +244,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String fleetName, String fleetMemberName, String ifMatch, Context context);
+
+ /**
+ * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName);
+
+ /**
+ * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java
index af5ac70c7261..8b4cafc7c355 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -17,33 +17,6 @@
* An instance of this class provides access to all the operations defined in FleetUpdateStrategiesClient.
*/
public interface FleetUpdateStrategiesClient {
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName);
-
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
-
/**
* Get a FleetUpdateStrategy.
*
@@ -206,4 +179,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context);
+
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName);
+
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java
index d639b9d0c44b..1cf1a0a3690e 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -19,53 +19,6 @@
* An instance of this class provides access to all the operations defined in FleetsClient.
*/
public interface FleetsClient {
- /**
- * Lists fleets in the specified subscription.
- *
- * @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 Fleet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Lists fleets in the specified subscription.
- *
- * @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 Fleet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Lists fleets in the specified subscription and resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 Fleet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Lists fleets in the specified subscription and resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 Fleet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets a Fleet.
*
@@ -105,7 +58,7 @@ public interface FleetsClient {
* @return the {@link SyncPoller} for polling of the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetInner> beginCreateOrUpdate(String resourceGroupName, String fleetName,
+ SyncPoller, FleetInner> beginCreate(String resourceGroupName, String fleetName,
FleetInner resource);
/**
@@ -123,7 +76,7 @@ SyncPoller, FleetInner> beginCreateOrUpdate(String resour
* @return the {@link SyncPoller} for polling of the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetInner> beginCreateOrUpdate(String resourceGroupName, String fleetName,
+ SyncPoller, FleetInner> beginCreate(String resourceGroupName, String fleetName,
FleetInner resource, String ifMatch, String ifNoneMatch, Context context);
/**
@@ -138,7 +91,7 @@ SyncPoller, FleetInner> beginCreateOrUpdate(String resour
* @return the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetInner createOrUpdate(String resourceGroupName, String fleetName, FleetInner resource);
+ FleetInner create(String resourceGroupName, String fleetName, FleetInner resource);
/**
* Creates or updates a Fleet.
@@ -155,7 +108,7 @@ SyncPoller, FleetInner> beginCreateOrUpdate(String resour
* @return the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetInner createOrUpdate(String resourceGroupName, String fleetName, FleetInner resource, String ifMatch,
+ FleetInner create(String resourceGroupName, String fleetName, FleetInner resource, String ifMatch,
String ifNoneMatch, Context context);
/**
@@ -170,7 +123,7 @@ FleetInner createOrUpdate(String resourceGroupName, String fleetName, FleetInner
* @return the {@link SyncPoller} for polling of the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetInner> beginUpdate(String resourceGroupName, String fleetName,
+ SyncPoller, FleetInner> beginUpdateAsync(String resourceGroupName, String fleetName,
FleetPatch properties);
/**
@@ -187,7 +140,7 @@ SyncPoller, FleetInner> beginUpdate(String resourceGroupN
* @return the {@link SyncPoller} for polling of the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FleetInner> beginUpdate(String resourceGroupName, String fleetName,
+ SyncPoller, FleetInner> beginUpdateAsync(String resourceGroupName, String fleetName,
FleetPatch properties, String ifMatch, Context context);
/**
@@ -202,7 +155,7 @@ SyncPoller, FleetInner> beginUpdate(String resourceGroupN
* @return the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetInner update(String resourceGroupName, String fleetName, FleetPatch properties);
+ FleetInner updateAsync(String resourceGroupName, String fleetName, FleetPatch properties);
/**
* Update a Fleet.
@@ -218,7 +171,7 @@ SyncPoller, FleetInner> beginUpdate(String resourceGroupN
* @return the Fleet resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FleetInner update(String resourceGroupName, String fleetName, FleetPatch properties, String ifMatch,
+ FleetInner updateAsync(String resourceGroupName, String fleetName, FleetPatch properties, String ifMatch,
Context context);
/**
@@ -276,6 +229,53 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String fleetName, String ifMatch, Context context);
+ /**
+ * Lists fleets in the specified subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 Fleet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists fleets in the specified subscription and resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 Fleet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists fleets in the specified subscription.
+ *
+ * @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 Fleet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists fleets in the specified subscription.
+ *
+ * @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 Fleet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
/**
* Lists the user credentials of a Fleet.
*
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java
index 6803bb01e8f2..fde7eb9f846d 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java
index 40cbb58d67fb..c099695b3641 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent;
@@ -18,33 +18,6 @@
* An instance of this class provides access to all the operations defined in UpdateRunsClient.
*/
public interface UpdateRunsClient {
- /**
- * List UpdateRun 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 UpdateRun list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName);
-
- /**
- * List UpdateRun 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 UpdateRun list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
-
/**
* Get a UpdateRun.
*
@@ -208,76 +181,97 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String fleetName, String updateRunName, String ifMatch, Context context);
/**
- * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
+ * List UpdateRun 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 UpdateRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName);
+
+ /**
+ * List UpdateRun 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 UpdateRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context);
+
+ /**
+ * Starts an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
- * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginSkip(String resourceGroupName, String fleetName,
- String updateRunName, SkipProperties body);
+ SyncPoller, UpdateRunInner> beginStart(String resourceGroupName, String fleetName,
+ String updateRunName);
/**
- * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
+ * Starts an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
- * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginSkip(String resourceGroupName, String fleetName,
- String updateRunName, SkipProperties body, String ifMatch, Context context);
+ SyncPoller, UpdateRunInner> beginStart(String resourceGroupName, String fleetName,
+ String updateRunName, String ifMatch, Context context);
/**
- * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
+ * Starts an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
- * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner skip(String resourceGroupName, String fleetName, String updateRunName, SkipProperties body);
+ UpdateRunInner start(String resourceGroupName, String fleetName, String updateRunName);
/**
- * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
+ * Starts an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
- * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner skip(String resourceGroupName, String fleetName, String updateRunName, SkipProperties body,
- String ifMatch, Context context);
+ UpdateRunInner start(String resourceGroupName, String fleetName, String updateRunName, String ifMatch,
+ Context context);
/**
- * Starts an UpdateRun.
+ * Stops an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
@@ -285,15 +279,14 @@ UpdateRunInner skip(String resourceGroupName, String fleetName, String updateRun
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginStart(String resourceGroupName, String fleetName,
+ SyncPoller, UpdateRunInner> beginStop(String resourceGroupName, String fleetName,
String updateRunName);
/**
- * Starts an UpdateRun.
+ * Stops an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
@@ -303,15 +296,14 @@ SyncPoller, UpdateRunInner> beginStart(String resourc
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginStart(String resourceGroupName, String fleetName,
+ SyncPoller, UpdateRunInner> beginStop(String resourceGroupName, String fleetName,
String updateRunName, String ifMatch, Context context);
/**
- * Starts an UpdateRun.
+ * Stops an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
@@ -319,13 +311,13 @@ SyncPoller, UpdateRunInner> beginStart(String resourc
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner start(String resourceGroupName, String fleetName, String updateRunName);
+ UpdateRunInner stop(String resourceGroupName, String fleetName, String updateRunName);
/**
- * Starts an UpdateRun.
+ * Stops an UpdateRun.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
@@ -335,74 +327,76 @@ SyncPoller, UpdateRunInner> beginStart(String resourc
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner start(String resourceGroupName, String fleetName, String updateRunName, String ifMatch,
+ UpdateRunInner stop(String resourceGroupName, String fleetName, String updateRunName, String ifMatch,
Context context);
/**
- * Stops an UpdateRun.
+ * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
+ * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginStop(String resourceGroupName, String fleetName,
- String updateRunName);
+ SyncPoller, UpdateRunInner> beginSkip(String resourceGroupName, String fleetName,
+ String updateRunName, SkipProperties body);
/**
- * Stops an UpdateRun.
+ * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
+ * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members
- * of a Fleet.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, UpdateRunInner> beginStop(String resourceGroupName, String fleetName,
- String updateRunName, String ifMatch, Context context);
+ SyncPoller, UpdateRunInner> beginSkip(String resourceGroupName, String fleetName,
+ String updateRunName, SkipProperties body, String ifMatch, Context context);
/**
- * Stops an UpdateRun.
+ * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
+ * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner stop(String resourceGroupName, String fleetName, String updateRunName);
+ UpdateRunInner skip(String resourceGroupName, String fleetName, String updateRunName, SkipProperties body);
/**
- * Stops an UpdateRun.
+ * Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateRunName The name of the UpdateRun resource.
+ * @param body The content of the action request.
* @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 multi-stage process to perform update operations across members of a Fleet.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner stop(String resourceGroupName, String fleetName, String updateRunName, String ifMatch,
- Context context);
+ UpdateRunInner skip(String resourceGroupName, String fleetName, String updateRunName, SkipProperties body,
+ String ifMatch, Context context);
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java
index 31120a9db718..41de201fe66c 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java
index 929e4be00c68..ec71d0467748 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java
index 31ef4477919a..810f68303688 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
@@ -26,7 +26,7 @@ public final class FleetCredentialResultsInner implements JsonSerializable labels() {
+ return this.innerProperties() == null ? null : this.innerProperties().labels();
+ }
+
+ /**
+ * Set the labels property: The labels for the fleet member.
+ *
+ * @param labels the labels value to set.
+ * @return the FleetMemberInner object itself.
+ */
+ public FleetMemberInner withLabels(Map labels) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FleetMemberProperties();
+ }
+ this.innerProperties().withLabels(labels);
+ return this;
+ }
+
+ /**
+ * Get the status property: Status information of the last operation for fleet member.
+ *
+ * @return the status value.
+ */
+ public FleetMemberStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java
index 7cc78059b6df..827b910b17db 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
@@ -11,7 +11,9 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.containerservicefleet.models.FleetMemberProvisioningState;
+import com.azure.resourcemanager.containerservicefleet.models.FleetMemberStatus;
import java.io.IOException;
+import java.util.Map;
/**
* A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure.
@@ -35,6 +37,16 @@ public final class FleetMemberProperties implements JsonSerializable labels;
+
+ /*
+ * Status information of the last operation for fleet member.
+ */
+ private FleetMemberStatus status;
+
/**
* Creates an instance of FleetMemberProperties class.
*/
@@ -94,6 +106,35 @@ public FleetMemberProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the labels property: The labels for the fleet member.
+ *
+ * @return the labels value.
+ */
+ public Map labels() {
+ return this.labels;
+ }
+
+ /**
+ * Set the labels property: The labels for the fleet member.
+ *
+ * @param labels the labels value to set.
+ * @return the FleetMemberProperties object itself.
+ */
+ public FleetMemberProperties withLabels(Map labels) {
+ this.labels = labels;
+ return this;
+ }
+
+ /**
+ * Get the status property: Status information of the last operation for fleet member.
+ *
+ * @return the status value.
+ */
+ public FleetMemberStatus status() {
+ return this.status;
+ }
+
/**
* Validates the instance.
*
@@ -105,6 +146,9 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property clusterResourceId in model FleetMemberProperties"));
}
+ if (status() != null) {
+ status().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(FleetMemberProperties.class);
@@ -117,6 +161,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("clusterResourceId", this.clusterResourceId);
jsonWriter.writeStringField("group", this.group);
+ jsonWriter.writeMapField("labels", this.labels, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -143,6 +188,11 @@ public static FleetMemberProperties fromJson(JsonReader jsonReader) throws IOExc
} else if ("provisioningState".equals(fieldName)) {
deserializedFleetMemberProperties.provisioningState
= FleetMemberProvisioningState.fromString(reader.getString());
+ } else if ("labels".equals(fieldName)) {
+ Map labels = reader.readMap(reader1 -> reader1.getString());
+ deserializedFleetMemberProperties.labels = labels;
+ } else if ("status".equals(fieldName)) {
+ deserializedFleetMemberProperties.status = FleetMemberStatus.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java
index dbec0461ba19..0d4e7398d09a 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
@@ -10,6 +10,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
+import java.util.Map;
/**
* The updatable properties of the FleetMember.
@@ -21,6 +22,11 @@ public final class FleetMemberUpdateProperties implements JsonSerializable labels;
+
/**
* Creates an instance of FleetMemberUpdateProperties class.
*/
@@ -47,6 +53,26 @@ public FleetMemberUpdateProperties withGroup(String group) {
return this;
}
+ /**
+ * Get the labels property: The labels for the fleet member.
+ *
+ * @return the labels value.
+ */
+ public Map labels() {
+ return this.labels;
+ }
+
+ /**
+ * Set the labels property: The labels for the fleet member.
+ *
+ * @param labels the labels value to set.
+ * @return the FleetMemberUpdateProperties object itself.
+ */
+ public FleetMemberUpdateProperties withLabels(Map labels) {
+ this.labels = labels;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -62,6 +88,7 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("group", this.group);
+ jsonWriter.writeMapField("labels", this.labels, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -82,6 +109,9 @@ public static FleetMemberUpdateProperties fromJson(JsonReader jsonReader) throws
if ("group".equals(fieldName)) {
deserializedFleetMemberUpdateProperties.group = reader.getString();
+ } else if ("labels".equals(fieldName)) {
+ Map labels = reader.readMap(reader1 -> reader1.getString());
+ deserializedFleetMemberUpdateProperties.labels = labels;
} else {
reader.skipChildren();
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java
index 74f048ab8f17..eb1b43514dc7 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
@@ -11,6 +11,7 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.containerservicefleet.models.FleetHubProfile;
import com.azure.resourcemanager.containerservicefleet.models.FleetProvisioningState;
+import com.azure.resourcemanager.containerservicefleet.models.FleetStatus;
import java.io.IOException;
/**
@@ -28,6 +29,11 @@ public final class FleetProperties implements JsonSerializable
*/
private FleetHubProfile hubProfile;
+ /*
+ * Status information for the fleet.
+ */
+ private FleetStatus status;
+
/**
* Creates an instance of FleetProperties class.
*/
@@ -63,6 +69,15 @@ public FleetProperties withHubProfile(FleetHubProfile hubProfile) {
return this;
}
+ /**
+ * Get the status property: Status information for the fleet.
+ *
+ * @return the status value.
+ */
+ public FleetStatus status() {
+ return this.status;
+ }
+
/**
* Validates the instance.
*
@@ -72,6 +87,9 @@ public void validate() {
if (hubProfile() != null) {
hubProfile().validate();
}
+ if (status() != null) {
+ status().validate();
+ }
}
/**
@@ -104,6 +122,8 @@ public static FleetProperties fromJson(JsonReader jsonReader) throws IOException
= FleetProvisioningState.fromString(reader.getString());
} else if ("hubProfile".equals(fieldName)) {
deserializedFleetProperties.hubProfile = FleetHubProfile.fromJson(reader);
+ } else if ("status".equals(fieldName)) {
+ deserializedFleetProperties.status = FleetStatus.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java
index f8df9b9367a9..dbac798b5c30 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java
index 19ec9108c7a1..3aaf1e9ac689 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java
index a1613e7bf6ac..d0672ba61919 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,11 +15,9 @@
import java.io.IOException;
/**
- * REST API Operation
- *
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
-@Fluent
+@Immutable
public final class OperationInner implements JsonSerializable {
/*
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
@@ -28,8 +26,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
*/
private Boolean isDataAction;
@@ -45,14 +43,14 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
@@ -67,7 +65,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for ARM/control-plane operations.
+ * operations and "false" for Azure Resource Manager/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -84,17 +82,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: Localized display information for this particular operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
@@ -106,8 +93,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
- * only APIs.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
* @return the actionType value.
*/
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java
index 1b8bb2b9b2ba..f1f63c0a2fad 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java
index 0a17aecdf3d8..0ecf7120ed87 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java
index b607f24aa663..2ad1f3775d46 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for ContainerServiceFleetManagementClient.
- * Azure Kubernetes Fleet Manager Client.
+ * Package containing the inner data models for ContainerServiceFleet.
+ * Azure Kubernetes Fleet Manager api client.
*/
package com.azure.resourcemanager.containerservicefleet.fluent.models;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java
index c3fd33604ffe..14ae5fb82e45 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for ContainerServiceFleetManagementClient.
- * Azure Kubernetes Fleet Manager Client.
+ * Package containing the service clients for ContainerServiceFleet.
+ * Azure Kubernetes Fleet Manager api client.
*/
package com.azure.resourcemanager.containerservicefleet.fluent;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java
index 22ae08338b90..566991145487 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java
index d9aab9b50348..4c9949cd70da 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -33,7 +33,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient;
import com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileInner;
-import com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileListResult;
+import com.azure.resourcemanager.containerservicefleet.implementation.models.AutoUpgradeProfileListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,203 +67,59 @@ public final class AutoUpgradeProfilesClientImpl implements AutoUpgradeProfilesC
* The interface defining all the services for ContainerServiceFleetManagementClientAutoUpgradeProfiles to be used
* by the proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "ContainerServiceFlee")
public interface AutoUpgradeProfilesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByFleet(@HostParam("$host") 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}/autoUpgradeProfiles/{autoUpgradeProfileName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName,
@PathParam("autoUpgradeProfileName") String autoUpgradeProfileName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ 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("autoUpgradeProfileName") String autoUpgradeProfileName,
- @BodyParam("application/json") AutoUpgradeProfileInner resource, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AutoUpgradeProfileInner resource, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ 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("autoUpgradeProfileName") String autoUpgradeProfileName, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles")
+ @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("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByFleetNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName,
- String fleetName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- 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 AutoUpgradeProfile 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 AutoUpgradeProfile list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName,
- String fleetName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return 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));
- }
-
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile 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 AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName,
- Context context) {
- return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
- nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
- }
-
- /**
- * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName,
- Context context) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
- }
-
/**
* Get a AutoUpgradeProfile.
*
@@ -437,11 +293,12 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
resource.validate();
}
+ 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,
- autoUpgradeProfileName, resource, accept, context))
+ autoUpgradeProfileName, contentType, accept, resource, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -488,11 +345,12 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
resource.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, autoUpgradeProfileName,
- resource, accept, context);
+ contentType, accept, resource, context);
}
/**
@@ -1004,6 +862,149 @@ public void delete(String resourceGroupName, String fleetName, String autoUpgrad
deleteAsync(resourceGroupName, fleetName, autoUpgradeProfileName, ifMatch, context).block();
}
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName,
+ String fleetName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ 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 AutoUpgradeProfile 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 AutoUpgradeProfile list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName,
+ String fleetName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile 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 AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName,
+ Context context) {
+ return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
+ nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
+ }
+
+ /**
+ * List AutoUpgradeProfile 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 AutoUpgradeProfile list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName,
+ Context context) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java
index 79848de1354a..5702152a9b0a 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -27,17 +27,6 @@ public AutoUpgradeProfilesImpl(AutoUpgradeProfilesClient innerClient,
this.serviceManager = serviceManager;
}
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new AutoUpgradeProfileImpl(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 AutoUpgradeProfileImpl(inner1, this.manager()));
- }
-
public Response getWithResponse(String resourceGroupName, String fleetName,
String autoUpgradeProfileName, Context context) {
Response inner
@@ -68,6 +57,17 @@ public void delete(String resourceGroupName, String fleetName, String autoUpgrad
this.serviceClient().delete(resourceGroupName, fleetName, autoUpgradeProfileName, ifMatch, context);
}
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AutoUpgradeProfileImpl(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 AutoUpgradeProfileImpl(inner1, this.manager()));
+ }
+
public AutoUpgradeProfile getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java
index 9d4989c802c2..818c80d8e561 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -20,34 +20,34 @@
@ServiceClientBuilder(serviceClients = { ContainerServiceFleetManagementClientImpl.class })
public final class ContainerServiceFleetManagementClientBuilder {
/*
- * The ID of the target subscription.
+ * Service host
*/
- private String subscriptionId;
+ private String endpoint;
/**
- * Sets The ID of the target subscription.
+ * Sets Service host.
*
- * @param subscriptionId the subscriptionId value.
+ * @param endpoint the endpoint value.
* @return the ContainerServiceFleetManagementClientBuilder.
*/
- public ContainerServiceFleetManagementClientBuilder subscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public ContainerServiceFleetManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
/*
- * server parameter
+ * The ID of the target subscription. The value must be an UUID.
*/
- private String endpoint;
+ private String subscriptionId;
/**
- * Sets server parameter.
+ * Sets The ID of the target subscription. The value must be an UUID.
*
- * @param endpoint the endpoint value.
+ * @param subscriptionId the subscriptionId value.
* @return the ContainerServiceFleetManagementClientBuilder.
*/
- public ContainerServiceFleetManagementClientBuilder endpoint(String endpoint) {
- this.endpoint = endpoint;
+ public ContainerServiceFleetManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -132,7 +132,7 @@ public ContainerServiceFleetManagementClientImpl buildClient() {
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
ContainerServiceFleetManagementClientImpl client = new ContainerServiceFleetManagementClientImpl(localPipeline,
- localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
return client;
}
}
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 fc8c0666507c..5215a330fa4c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -45,26 +45,12 @@
@ServiceClient(builder = ContainerServiceFleetManagementClientBuilder.class)
public final class ContainerServiceFleetManagementClientImpl implements ContainerServiceFleetManagementClient {
/**
- * The ID of the target subscription.
- */
- private final String subscriptionId;
-
- /**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- public String getSubscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * server parameter.
+ * Service host.
*/
private final String endpoint;
/**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
@@ -73,12 +59,12 @@ public String getEndpoint() {
}
/**
- * Api Version.
+ * Version parameter.
*/
private final String apiVersion;
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
@@ -86,6 +72,20 @@ public String getApiVersion() {
return this.apiVersion;
}
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
/**
* The HTTP pipeline to send requests through.
*/
@@ -156,20 +156,6 @@ public FleetsClient getFleets() {
return this.fleets;
}
- /**
- * The AutoUpgradeProfilesClient object to access its operations.
- */
- private final AutoUpgradeProfilesClient autoUpgradeProfiles;
-
- /**
- * Gets the AutoUpgradeProfilesClient object to access its operations.
- *
- * @return the AutoUpgradeProfilesClient object.
- */
- public AutoUpgradeProfilesClient getAutoUpgradeProfiles() {
- return this.autoUpgradeProfiles;
- }
-
/**
* The FleetMembersClient object to access its operations.
*/
@@ -212,6 +198,20 @@ public FleetUpdateStrategiesClient getFleetUpdateStrategies() {
return this.fleetUpdateStrategies;
}
+ /**
+ * The AutoUpgradeProfilesClient object to access its operations.
+ */
+ private final AutoUpgradeProfilesClient autoUpgradeProfiles;
+
+ /**
+ * Gets the AutoUpgradeProfilesClient object to access its operations.
+ *
+ * @return the AutoUpgradeProfilesClient object.
+ */
+ public AutoUpgradeProfilesClient getAutoUpgradeProfiles() {
+ return this.autoUpgradeProfiles;
+ }
+
/**
* Initializes an instance of ContainerServiceFleetManagementClient client.
*
@@ -219,23 +219,23 @@ public FleetUpdateStrategiesClient getFleetUpdateStrategies() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param subscriptionId The ID of the target subscription.
- * @param endpoint server parameter.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
*/
ContainerServiceFleetManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
- Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
- this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-05-02-preview";
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2025-03-01";
this.operations = new OperationsClientImpl(this);
this.fleets = new FleetsClientImpl(this);
- this.autoUpgradeProfiles = new AutoUpgradeProfilesClientImpl(this);
this.fleetMembers = new FleetMembersClientImpl(this);
this.updateRuns = new UpdateRunsClientImpl(this);
this.fleetUpdateStrategies = new FleetUpdateStrategiesClientImpl(this);
+ this.autoUpgradeProfiles = new AutoUpgradeProfilesClientImpl(this);
}
/**
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java
index 41fbd0adabdb..acb4dbaae35e 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java
index b49d5928c754..95aae4ddbc63 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.containerservicefleet.models.FleetHubProfile;
import com.azure.resourcemanager.containerservicefleet.models.FleetPatch;
import com.azure.resourcemanager.containerservicefleet.models.FleetProvisioningState;
+import com.azure.resourcemanager.containerservicefleet.models.FleetStatus;
import com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentity;
import java.util.Collections;
import java.util.Map;
@@ -68,6 +69,10 @@ public FleetHubProfile hubProfile() {
return this.innerModel().hubProfile();
}
+ public FleetStatus status() {
+ return this.innerModel().status();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -108,15 +113,14 @@ public FleetImpl withExistingResourceGroup(String resourceGroupName) {
public Fleet create() {
this.innerObject = serviceManager.serviceClient()
.getFleets()
- .createOrUpdate(resourceGroupName, fleetName, this.innerModel(), createIfMatch, createIfNoneMatch,
- Context.NONE);
+ .create(resourceGroupName, fleetName, this.innerModel(), createIfMatch, createIfNoneMatch, Context.NONE);
return this;
}
public Fleet create(Context context) {
this.innerObject = serviceManager.serviceClient()
.getFleets()
- .createOrUpdate(resourceGroupName, fleetName, this.innerModel(), createIfMatch, createIfNoneMatch, context);
+ .create(resourceGroupName, fleetName, this.innerModel(), createIfMatch, createIfNoneMatch, context);
return this;
}
@@ -138,14 +142,14 @@ public FleetImpl update() {
public Fleet apply() {
this.innerObject = serviceManager.serviceClient()
.getFleets()
- .update(resourceGroupName, fleetName, updateProperties, updateIfMatch, Context.NONE);
+ .updateAsync(resourceGroupName, fleetName, updateProperties, updateIfMatch, Context.NONE);
return this;
}
public Fleet apply(Context context) {
this.innerObject = serviceManager.serviceClient()
.getFleets()
- .update(resourceGroupName, fleetName, updateProperties, updateIfMatch, context);
+ .updateAsync(resourceGroupName, fleetName, updateProperties, updateIfMatch, context);
return this;
}
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java
index 9ad2de43ff94..8d0836917df7 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -9,7 +9,10 @@
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberInner;
import com.azure.resourcemanager.containerservicefleet.models.FleetMember;
import com.azure.resourcemanager.containerservicefleet.models.FleetMemberProvisioningState;
+import com.azure.resourcemanager.containerservicefleet.models.FleetMemberStatus;
import com.azure.resourcemanager.containerservicefleet.models.FleetMemberUpdate;
+import java.util.Collections;
+import java.util.Map;
public final class FleetMemberImpl implements FleetMember, FleetMember.Definition, FleetMember.Update {
private FleetMemberInner innerObject;
@@ -48,6 +51,19 @@ public FleetMemberProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
+ public Map labels() {
+ Map inner = this.innerModel().labels();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public FleetMemberStatus status() {
+ return this.innerModel().status();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
@@ -114,14 +130,14 @@ public FleetMemberImpl update() {
public FleetMember apply() {
this.innerObject = serviceManager.serviceClient()
.getFleetMembers()
- .update(resourceGroupName, fleetName, fleetMemberName, updateProperties, updateIfMatch, Context.NONE);
+ .updateAsync(resourceGroupName, fleetName, fleetMemberName, updateProperties, updateIfMatch, Context.NONE);
return this;
}
public FleetMember apply(Context context) {
this.innerObject = serviceManager.serviceClient()
.getFleetMembers()
- .update(resourceGroupName, fleetName, fleetMemberName, updateProperties, updateIfMatch, context);
+ .updateAsync(resourceGroupName, fleetName, fleetMemberName, updateProperties, updateIfMatch, context);
return this;
}
@@ -165,6 +181,16 @@ public FleetMemberImpl withGroup(String group) {
}
}
+ public FleetMemberImpl withLabels(Map labels) {
+ if (isInCreateMode()) {
+ this.innerModel().withLabels(labels);
+ return this;
+ } else {
+ this.updateProperties.withLabels(labels);
+ return this;
+ }
+ }
+
public FleetMemberImpl withIfMatch(String ifMatch) {
if (isInCreateMode()) {
this.createIfMatch = ifMatch;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java
index a3b3bd93302b..1c06082957f8 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -34,7 +34,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient;
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberInner;
-import com.azure.resourcemanager.containerservicefleet.models.FleetMemberListResult;
+import com.azure.resourcemanager.containerservicefleet.implementation.models.FleetMemberListResult;
import com.azure.resourcemanager.containerservicefleet.models.FleetMemberUpdate;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -69,211 +69,68 @@ public final class FleetMembersClientImpl implements FleetMembersClient {
* The interface defining all the services for ContainerServiceFleetManagementClientFleetMembers to be used by the
* proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "ContainerServiceFlee")
public interface FleetMembersService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByFleet(@HostParam("$host") 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}/members/{fleetMemberName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName,
@PathParam("fleetMemberName") String fleetMemberName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
+ Mono>> create(@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("fleetMemberName") String fleetMemberName,
- @BodyParam("application/json") FleetMemberInner resource, @HeaderParam("Accept") String accept,
+ @PathParam("fleetMemberName") String fleetMemberName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") FleetMemberInner resource,
Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> updateAsync(@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("fleetMemberName") String fleetMemberName,
- @BodyParam("application/json") FleetMemberUpdate properties, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FleetMemberUpdate properties, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ 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("fleetMemberName") String fleetMemberName,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members")
+ @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("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByFleetNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * List FleetMember 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 FleetMember list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName,
- String fleetName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- 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 FleetMember 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 FleetMember list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName, String fleetName,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return 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));
- }
-
- /**
- * List FleetMember 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 FleetMember 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 FleetMember 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 FleetMember list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName, Context context) {
- return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
- nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
- }
-
- /**
- * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
- }
-
/**
* Get a FleetMember.
*
@@ -446,11 +303,12 @@ private Mono>> createWithResponseAsync(String resource
} else {
resource.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, fleetMemberName,
- resource, accept, context))
+ contentType, accept, resource, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -496,10 +354,12 @@ private Mono>> createWithResponseAsync(String resource
} else {
resource.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, ifMatch, ifNoneMatch, fleetName, fleetMemberName, resource, accept, context);
+ resourceGroupName, ifMatch, ifNoneMatch, fleetName, fleetMemberName, contentType, accept, resource,
+ context);
}
/**
@@ -740,7 +600,7 @@ public FleetMemberInner create(String resourceGroupName, String fleetName, Strin
* @return a member of the Fleet along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String fleetName,
+ private Mono>> updateAsyncWithResponseAsync(String resourceGroupName, String fleetName,
String fleetMemberName, FleetMemberUpdate properties, String ifMatch) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -766,11 +626,12 @@ private Mono>> updateWithResponseAsync(String resource
} else {
properties.validate();
}
+ 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, fleetMemberName, properties,
- accept, context))
+ .withContext(context -> service.updateAsync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, fleetMemberName, contentType,
+ accept, properties, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -789,7 +650,7 @@ private Mono>> updateWithResponseAsync(String resource
* @return a member of the Fleet along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String fleetName,
+ private Mono>> updateAsyncWithResponseAsync(String resourceGroupName, String fleetName,
String fleetMemberName, FleetMemberUpdate properties, String ifMatch, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -815,10 +676,12 @@ private Mono>> updateWithResponseAsync(String resource
} else {
properties.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, ifMatch, fleetName, fleetMemberName, properties, accept, context);
+ return service.updateAsync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, fleetMemberName, contentType,
+ accept, properties, context);
}
/**
@@ -835,10 +698,10 @@ private Mono>> updateWithResponseAsync(String resource
* @return the {@link PollerFlux} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
+ private PollerFlux, FleetMemberInner> beginUpdateAsyncAsync(String resourceGroupName,
String fleetName, String fleetMemberName, FleetMemberUpdate properties, String ifMatch) {
Mono>> mono
- = updateWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch);
+ = updateAsyncWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
FleetMemberInner.class, FleetMemberInner.class, this.client.getContext());
}
@@ -856,11 +719,11 @@ private PollerFlux, FleetMemberInner> beginUpdateAs
* @return the {@link PollerFlux} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
+ private PollerFlux, FleetMemberInner> beginUpdateAsyncAsync(String resourceGroupName,
String fleetName, String fleetMemberName, FleetMemberUpdate properties) {
final String ifMatch = null;
Mono>> mono
- = updateWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch);
+ = updateAsyncWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
FleetMemberInner.class, FleetMemberInner.class, this.client.getContext());
}
@@ -880,11 +743,11 @@ private PollerFlux, FleetMemberInner> beginUpdateAs
* @return the {@link PollerFlux} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
+ private PollerFlux, FleetMemberInner> beginUpdateAsyncAsync(String resourceGroupName,
String fleetName, String fleetMemberName, FleetMemberUpdate properties, String ifMatch, Context context) {
context = this.client.mergeContext(context);
Mono>> mono
- = updateWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context);
+ = updateAsyncWithResponseAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
FleetMemberInner.class, FleetMemberInner.class, context);
}
@@ -902,10 +765,10 @@ private PollerFlux, FleetMemberInner> beginUpdateAs
* @return the {@link SyncPoller} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, FleetMemberInner> beginUpdate(String resourceGroupName,
+ public SyncPoller, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
String fleetName, String fleetMemberName, FleetMemberUpdate properties) {
final String ifMatch = null;
- return this.beginUpdateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch)
+ return this.beginUpdateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch)
.getSyncPoller();
}
@@ -924,9 +787,9 @@ public SyncPoller, FleetMemberInner> beginUpdate(St
* @return the {@link SyncPoller} for polling of a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, FleetMemberInner> beginUpdate(String resourceGroupName,
+ public SyncPoller, FleetMemberInner> beginUpdateAsync(String resourceGroupName,
String fleetName, String fleetMemberName, FleetMemberUpdate properties, String ifMatch, Context context) {
- return this.beginUpdateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context)
+ return this.beginUpdateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context)
.getSyncPoller();
}
@@ -944,9 +807,9 @@ public SyncPoller, FleetMemberInner> beginUpdate(St
* @return a member of the Fleet on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
+ private Mono updateAsyncAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties, String ifMatch) {
- return beginUpdateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).last()
+ return beginUpdateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -963,10 +826,10 @@ private Mono updateAsync(String resourceGroupName, String flee
* @return a member of the Fleet on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
+ private Mono updateAsyncAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties) {
final String ifMatch = null;
- return beginUpdateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).last()
+ return beginUpdateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -985,9 +848,9 @@ private Mono updateAsync(String resourceGroupName, String flee
* @return a member of the Fleet on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
+ private Mono updateAsyncAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties, String ifMatch, Context context) {
- return beginUpdateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context).last()
+ return beginUpdateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1004,10 +867,10 @@ private Mono updateAsync(String resourceGroupName, String flee
* @return a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public FleetMemberInner update(String resourceGroupName, String fleetName, String fleetMemberName,
+ public FleetMemberInner updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties) {
final String ifMatch = null;
- return updateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).block();
+ return updateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch).block();
}
/**
@@ -1025,9 +888,9 @@ public FleetMemberInner update(String resourceGroupName, String fleetName, Strin
* @return a member of the Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public FleetMemberInner update(String resourceGroupName, String fleetName, String fleetMemberName,
+ public FleetMemberInner updateAsync(String resourceGroupName, String fleetName, String fleetMemberName,
FleetMemberUpdate properties, String ifMatch, Context context) {
- return updateAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context).block();
+ return updateAsyncAsync(resourceGroupName, fleetName, fleetMemberName, properties, ifMatch, context).block();
}
/**
@@ -1303,6 +1166,147 @@ public void delete(String resourceGroupName, String fleetName, String fleetMembe
deleteAsync(resourceGroupName, fleetName, fleetMemberName, ifMatch, context).block();
}
+ /**
+ * List FleetMember 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 FleetMember list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName,
+ String fleetName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ 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 FleetMember 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 FleetMember list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName, String fleetName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * List FleetMember 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 FleetMember 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 FleetMember 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 FleetMember list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName, Context context) {
+ return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
+ nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
+ }
+
+ /**
+ * List FleetMember 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 FleetMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java
index d37f9d2fb220..b1f812628173 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -27,16 +27,6 @@ public FleetMembersImpl(FleetMembersClient innerClient,
this.serviceManager = serviceManager;
}
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetMemberImpl(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 FleetMemberImpl(inner1, this.manager()));
- }
-
public Response getWithResponse(String resourceGroupName, String fleetName, String fleetMemberName,
Context context) {
Response inner
@@ -67,6 +57,16 @@ public void delete(String resourceGroupName, String fleetName, String fleetMembe
this.serviceClient().delete(resourceGroupName, fleetName, fleetMemberName, ifMatch, context);
}
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetMemberImpl(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 FleetMemberImpl(inner1, this.manager()));
+ }
+
public FleetMember getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java
index 81a3825d2c36..05f8eec36679 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -33,7 +33,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient;
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyInner;
-import com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategyListResult;
+import com.azure.resourcemanager.containerservicefleet.implementation.models.FleetUpdateStrategyListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,202 +67,58 @@ public final class FleetUpdateStrategiesClientImpl implements FleetUpdateStrateg
* The interface defining all the services for ContainerServiceFleetManagementClientFleetUpdateStrategies to be used
* by the proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "ContainerServiceFlee")
public interface FleetUpdateStrategiesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByFleet(@HostParam("$host") 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}/updateStrategies/{updateStrategyName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName,
@PathParam("updateStrategyName") String updateStrategyName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ 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("updateStrategyName") String updateStrategyName,
- @BodyParam("application/json") FleetUpdateStrategyInner resource, @HeaderParam("Accept") String accept,
+ @PathParam("updateStrategyName") String updateStrategyName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") FleetUpdateStrategyInner resource,
Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ 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("updateStrategyName") String updateStrategyName,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies")
+ @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("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByFleetNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName,
- String fleetName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- 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 FleetUpdateStrategy 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 FleetUpdateStrategy list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByFleetSinglePageAsync(String resourceGroupName,
- String fleetName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (fleetName == null) {
- return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return 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));
- }
-
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy 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 FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName,
- Context context) {
- return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
- nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
- }
-
- /**
- * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByFleet(String resourceGroupName, String fleetName,
- Context context) {
- return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
- }
-
/**
* Get a FleetUpdateStrategy.
*
@@ -437,11 +293,12 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
resource.validate();
}
+ 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, updateStrategyName,
- resource, accept, context))
+ contentType, accept, resource, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -489,11 +346,12 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
resource.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, updateStrategyName,
- resource, accept, context);
+ contentType, accept, resource, context);
}
/**
@@ -1012,6 +870,149 @@ public void delete(String resourceGroupName, String fleetName, String updateStra
deleteAsync(resourceGroupName, fleetName, updateStrategyName, ifMatch, context).block();
}
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName,
+ String fleetName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ 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 FleetUpdateStrategy 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 FleetUpdateStrategy list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByFleetSinglePageAsync(String resourceGroupName,
+ String fleetName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (fleetName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fleetName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy 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 FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName,
+ Context context) {
+ return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName, context),
+ nextLink -> listByFleetNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName));
+ }
+
+ /**
+ * List FleetUpdateStrategy 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 FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName,
+ Context context) {
+ return new PagedIterable<>(listByFleetAsync(resourceGroupName, fleetName, context));
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java
index b8e856de3e26..f91436300fe5 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -27,17 +27,6 @@ public FleetUpdateStrategiesImpl(FleetUpdateStrategiesClient innerClient,
this.serviceManager = serviceManager;
}
- public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
- PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetUpdateStrategyImpl(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 FleetUpdateStrategyImpl(inner1, this.manager()));
- }
-
public Response getWithResponse(String resourceGroupName, String fleetName,
String updateStrategyName, Context context) {
Response inner
@@ -68,6 +57,17 @@ public void delete(String resourceGroupName, String fleetName, String updateStra
this.serviceClient().delete(resourceGroupName, fleetName, updateStrategyName, ifMatch, context);
}
+ public PagedIterable listByFleet(String resourceGroupName, String fleetName) {
+ PagedIterable inner = this.serviceClient().listByFleet(resourceGroupName, fleetName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetUpdateStrategyImpl(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 FleetUpdateStrategyImpl(inner1, this.manager()));
+ }
+
public FleetUpdateStrategy getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java
index 3fbf83f3c190..46d67f654be5 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java
index 9ca5fdf0aae3..7c682b332a72 100644
--- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java
+++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.containerservicefleet.implementation;
@@ -36,7 +36,7 @@
import com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient;
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetCredentialResultsInner;
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetInner;
-import com.azure.resourcemanager.containerservicefleet.models.FleetListResult;
+import com.azure.resourcemanager.containerservicefleet.implementation.models.FleetListResult;
import com.azure.resourcemanager.containerservicefleet.models.FleetPatch;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -70,69 +70,69 @@ public final class FleetsClientImpl implements FleetsClient {
* The interface defining all the services for ContainerServiceFleetManagementClientFleets to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "ContainerServiceFlee")
public interface FleetsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ Mono> getByResourceGroup(@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" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> create(@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,
- @BodyParam("application/json") FleetInner resource, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FleetInner resource, Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> updateAsync(@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, @BodyParam("application/json") FleetPatch properties,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("fleetName") String fleetName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") FleetPatch properties,
+ Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ 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, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listCredentials(@HostParam("$host") String endpoint,
+ Mono> listCredentials(@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);
@@ -141,257 +141,19 @@ Mono> listCredentials(@HostParam("$host")
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ Mono> listByResourceGroupNext(
+ @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)
- Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * Lists fleets in the specified subscription.
- *
- * @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 Fleet list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync() {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
- .