diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md
index 39caae00eafb..c717e9840ca6 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md
@@ -1,14 +1,44 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0-beta.1 (2025-02-28)
+
+- Azure Resource Manager DevOps Infrastructure client library for Java. This package contains Microsoft Azure SDK for DevOps Infrastructure Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.CheckNameAvailability` was added
+
+* `models.CheckNameAvailabilityResult` was added
+
+* `models.DevOpsInfrastructureResourceType` was added
+
+* `models.CheckNameAvailabilityReason` was added
+
+* `models.AvailabilityStatus` was added
+
+* `models.CertificateStoreNameOption` was added
+
+* `models.EphemeralType` was added
+
+#### `models.PoolImage` was modified
+
+* `ephemeralType()` was added
+* `withEphemeralType(models.EphemeralType)` was added
+
+#### `models.Organization` was modified
+
+* `withOpenAccess(java.lang.Boolean)` was added
+* `openAccess()` was added
+
+#### `models.SecretsManagementSettings` was modified
+
+* `certificateStoreName()` was added
+* `withCertificateStoreName(models.CertificateStoreNameOption)` was added
-### Bugs Fixed
+#### `models.Pools` was modified
-### Other Changes
+* `checkNameAvailabilityWithResponse(models.CheckNameAvailability,com.azure.core.util.Context)` was added
+* `checkNameAvailability(models.CheckNameAvailability)` was added
## 1.0.0 (2024-11-21)
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md
index 2942e30e74c5..8c36a0615fcb 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-devopsinfrastructure
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({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 @@ DevOpsInfrastructureManager manager = DevOpsInfrastructureManager
.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.
@@ -100,5 +100,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/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md
index e637ad2e8519..54b0b70d0871 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md
@@ -11,6 +11,7 @@
## Pools
+- [CheckNameAvailability](#pools_checknameavailability)
- [CreateOrUpdate](#pools_createorupdate)
- [Delete](#pools_delete)
- [GetByResourceGroup](#pools_getbyresourcegroup)
@@ -37,7 +38,7 @@
*/
public final class ImageVersionsListByImageSamples {
/*
- * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json
+ * x-ms-original-file: 2025-01-21/ImageVersions_ListByImage.json
*/
/**
* Sample code: ImageVersions_ListByImage.
@@ -59,7 +60,7 @@ public final class ImageVersionsListByImageSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2024-10-19/ListOperations.json
+ * x-ms-original-file: 2025-01-21/ListOperations.json
*/
/**
* Sample code: Operations_List.
@@ -73,15 +74,48 @@ public final class OperationsListSamples {
}
```
+### Pools_CheckNameAvailability
+
+```java
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
+import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsInfrastructureResourceType;
+
+/**
+ * Samples for Pools CheckNameAvailability.
+ */
+public final class PoolsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: 2025-01-21/Pools_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Pools_CheckNameAvailability.
+ *
+ * @param manager Entry point to DevOpsInfrastructureManager.
+ */
+ public static void
+ poolsCheckNameAvailability(com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager manager) {
+ manager.pools()
+ .checkNameAvailabilityWithResponse(
+ new CheckNameAvailability().withName("mydevopspool")
+ .withType(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Pools_CreateOrUpdate
```java
import com.azure.resourcemanager.devopsinfrastructure.models.AzureDevOpsOrganizationProfile;
+import com.azure.resourcemanager.devopsinfrastructure.models.CertificateStoreNameOption;
import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsAzureSku;
+import com.azure.resourcemanager.devopsinfrastructure.models.EphemeralType;
import com.azure.resourcemanager.devopsinfrastructure.models.Organization;
+import com.azure.resourcemanager.devopsinfrastructure.models.OsProfile;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolImage;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolProperties;
import com.azure.resourcemanager.devopsinfrastructure.models.ProvisioningState;
+import com.azure.resourcemanager.devopsinfrastructure.models.SecretsManagementSettings;
import com.azure.resourcemanager.devopsinfrastructure.models.StatelessAgentProfile;
import com.azure.resourcemanager.devopsinfrastructure.models.VmssFabricProfile;
import java.util.Arrays;
@@ -91,7 +125,7 @@ import java.util.Arrays;
*/
public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json
+ * x-ms-original-file: 2025-01-21/CreateOrUpdatePool.json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -106,12 +140,19 @@ public final class PoolsCreateOrUpdateSamples {
.withExistingResourceGroup("rg")
.withProperties(new PoolProperties().withProvisioningState(ProvisioningState.SUCCEEDED)
.withMaximumConcurrency(10)
- .withOrganizationProfile(new AzureDevOpsOrganizationProfile()
- .withOrganizations(Arrays.asList(new Organization().withUrl("https://mseng.visualstudio.com"))))
+ .withOrganizationProfile(new AzureDevOpsOrganizationProfile().withOrganizations(
+ Arrays.asList(new Organization().withUrl("https://mseng.visualstudio.com").withOpenAccess(true))))
.withAgentProfile(new StatelessAgentProfile())
- .withFabricProfile(new VmssFabricProfile().withSku(new DevOpsAzureSku().withName("Standard_D4ads_v5"))
- .withImages(Arrays.asList(new PoolImage()
- .withResourceId("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"))))
+ .withFabricProfile(
+ new VmssFabricProfile().withSku(new DevOpsAzureSku().withName("Standard_D4ads_v5"))
+ .withImages(Arrays.asList(new PoolImage()
+ .withResourceId("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest")
+ .withEphemeralType(EphemeralType.AUTOMATIC)))
+ .withOsProfile(
+ new OsProfile().withSecretsManagementSettings(new SecretsManagementSettings()
+ .withCertificateStoreName(CertificateStoreNameOption.ROOT)
+ .withObservedCertificates(Arrays.asList("https://abc.vault.azure.net/secrets/one"))
+ .withKeyExportable(false))))
.withDevCenterProjectResourceId(
"/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES"))
.create();
@@ -127,7 +168,7 @@ public final class PoolsCreateOrUpdateSamples {
*/
public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: 2024-10-19/DeletePool.json
+ * x-ms-original-file: 2025-01-21/DeletePool.json
*/
/**
* Sample code: Pools_Delete.
@@ -148,7 +189,7 @@ public final class PoolsDeleteSamples {
*/
public final class PoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-10-19/GetPool.json
+ * x-ms-original-file: 2025-01-21/GetPool.json
*/
/**
* Sample code: Pools_Get.
@@ -169,7 +210,7 @@ public final class PoolsGetByResourceGroupSamples {
*/
public final class PoolsListSamples {
/*
- * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json
+ * x-ms-original-file: 2025-01-21/ListPoolsBySubscription.json
*/
/**
* Sample code: Pools_ListBySubscription.
@@ -191,7 +232,7 @@ public final class PoolsListSamples {
*/
public final class PoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json
+ * x-ms-original-file: 2025-01-21/ListPoolsBySubscriptionAndResourceGroup.json
*/
/**
* Sample code: Pools_ListByResourceGroup.
@@ -215,7 +256,7 @@ import com.azure.resourcemanager.devopsinfrastructure.models.Pool;
*/
public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: 2024-10-19/UpdatePool.json
+ * x-ms-original-file: 2025-01-21/UpdatePool.json
*/
/**
* Sample code: Pools_Update.
@@ -238,7 +279,7 @@ public final class PoolsUpdateSamples {
*/
public final class ResourceDetailsListByPoolSamples {
/*
- * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json
+ * x-ms-original-file: 2025-01-21/ResourceDetails_ListByPool.json
*/
/**
* Sample code: ResourceDetails_ListByPool.
@@ -260,7 +301,7 @@ public final class ResourceDetailsListByPoolSamples {
*/
public final class SkuListByLocationSamples {
/*
- * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json
+ * x-ms-original-file: 2025-01-21/Sku_ListByLocation.json
*/
/**
* Sample code: Sku_ListByLocation.
@@ -282,7 +323,7 @@ public final class SkuListByLocationSamples {
*/
public final class SubscriptionUsagesUsagesSamples {
/*
- * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json
+ * x-ms-original-file: 2025-01-21/SubscriptionUsages_Usages.json
*/
/**
* Sample code: SubscriptionUsages_Usages.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml
index 548e7e7eddc9..c7915754d838 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml
@@ -46,7 +46,6 @@
0
0
true
- false
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/PoolsClient.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/PoolsClient.java
index 16e56a5dbc52..d7dcf5b0adcd 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/PoolsClient.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/PoolsClient.java
@@ -11,7 +11,9 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.resourcemanager.devopsinfrastructure.fluent.models.PoolInner;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolUpdate;
/**
@@ -267,4 +269,30 @@ SyncPoller, PoolInner> beginUpdate(String resourceGroupNam
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(CheckNameAvailability body,
+ Context context);
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability 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 CheckNameAvailability operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailability body);
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/CheckNameAvailabilityResultInner.java
new file mode 100644
index 000000000000..e8ab65fbff76
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/CheckNameAvailabilityResultInner.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.devopsinfrastructure.models.AvailabilityStatus;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityReason;
+import java.io.IOException;
+
+/**
+ * The CheckNameAvailability operation response.
+ */
+@Immutable
+public final class CheckNameAvailabilityResultInner implements JsonSerializable {
+ /*
+ * Availability status of the name.
+ */
+ private AvailabilityStatus available;
+
+ /*
+ * A message explaining why the name is unavailable. Will be null if the name is available.
+ */
+ private String message;
+
+ /*
+ * The name whose availability was checked.
+ */
+ private String name;
+
+ /*
+ * The reason code explaining why the name is unavailable. Will be null if the name is available.
+ */
+ private CheckNameAvailabilityReason reason;
+
+ /**
+ * Creates an instance of CheckNameAvailabilityResultInner class.
+ */
+ private CheckNameAvailabilityResultInner() {
+ }
+
+ /**
+ * Get the available property: Availability status of the name.
+ *
+ * @return the available value.
+ */
+ public AvailabilityStatus available() {
+ return this.available;
+ }
+
+ /**
+ * Get the message property: A message explaining why the name is unavailable. Will be null if the name is
+ * available.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the name property: The name whose availability was checked.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the reason property: The reason code explaining why the name is unavailable. Will be null if the name is
+ * available.
+ *
+ * @return the reason value.
+ */
+ public CheckNameAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (available() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property available in model CheckNameAvailabilityResultInner"));
+ }
+ if (message() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property message in model CheckNameAvailabilityResultInner"));
+ }
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property name in model CheckNameAvailabilityResultInner"));
+ }
+ if (reason() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property reason in model CheckNameAvailabilityResultInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityResultInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("available", this.available == null ? null : this.available.toString());
+ jsonWriter.writeStringField("message", this.message);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("reason", this.reason == null ? null : this.reason.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CheckNameAvailabilityResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CheckNameAvailabilityResultInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CheckNameAvailabilityResultInner.
+ */
+ public static CheckNameAvailabilityResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CheckNameAvailabilityResultInner deserializedCheckNameAvailabilityResultInner
+ = new CheckNameAvailabilityResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("available".equals(fieldName)) {
+ deserializedCheckNameAvailabilityResultInner.available
+ = AvailabilityStatus.fromString(reader.getString());
+ } else if ("message".equals(fieldName)) {
+ deserializedCheckNameAvailabilityResultInner.message = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedCheckNameAvailabilityResultInner.name = reader.getString();
+ } else if ("reason".equals(fieldName)) {
+ deserializedCheckNameAvailabilityResultInner.reason
+ = CheckNameAvailabilityReason.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCheckNameAvailabilityResultInner;
+ });
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/CheckNameAvailabilityResultImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 000000000000..7e8d7a8c3da1
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/CheckNameAvailabilityResultImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.implementation;
+
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.devopsinfrastructure.models.AvailabilityStatus;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityReason;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityResult;
+
+public final class CheckNameAvailabilityResultImpl implements CheckNameAvailabilityResult {
+ private CheckNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager serviceManager;
+
+ CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner innerObject,
+ com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public AvailabilityStatus available() {
+ return this.innerModel().available();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public CheckNameAvailabilityReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public CheckNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java
index 0593a08ca27f..ea428ebb5459 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java
@@ -229,7 +229,7 @@ public ImageVersionsClient getImageVersions() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
- this.apiVersion = "2024-10-19";
+ this.apiVersion = "2025-01-21";
this.operations = new OperationsClientImpl(this);
this.pools = new PoolsClientImpl(this);
this.resourceDetails = new ResourceDetailsClientImpl(this);
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java
index 28615cbc3f7a..4705e40be809 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -33,8 +34,10 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.devopsinfrastructure.fluent.PoolsClient;
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.resourcemanager.devopsinfrastructure.fluent.models.PoolInner;
import com.azure.resourcemanager.devopsinfrastructure.implementation.models.PoolListResult;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolUpdate;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -124,6 +127,14 @@ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/checkNameAvailability")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> checkNameAvailability(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CheckNameAvailability body, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -1168,6 +1179,118 @@ public PagedIterable list(Context context) {
return new PagedIterable<>(listAsync(context));
}
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ checkNameAvailabilityWithResponseAsync(CheckNameAvailability body) {
+ 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 (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ checkNameAvailabilityWithResponseAsync(CheckNameAvailability body, 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 (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), contentType, accept, body, context);
+ }
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono checkNameAvailabilityAsync(CheckNameAvailability body) {
+ return checkNameAvailabilityWithResponseAsync(body).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response checkNameAvailabilityWithResponse(CheckNameAvailability body,
+ Context context) {
+ return checkNameAvailabilityWithResponseAsync(body, context).block();
+ }
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailability body) {
+ return checkNameAvailabilityWithResponse(body, Context.NONE).getValue();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsImpl.java
index c9a2cd66abd0..72aedc643e5d 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsImpl.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsImpl.java
@@ -10,7 +10,10 @@
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.devopsinfrastructure.fluent.PoolsClient;
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.resourcemanager.devopsinfrastructure.fluent.models.PoolInner;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityResult;
import com.azure.resourcemanager.devopsinfrastructure.models.Pool;
import com.azure.resourcemanager.devopsinfrastructure.models.Pools;
@@ -75,6 +78,27 @@ public PagedIterable list(Context context) {
return ResourceManagerUtils.mapPage(inner, inner1 -> new PoolImpl(inner1, this.manager()));
}
+ public Response checkNameAvailabilityWithResponse(CheckNameAvailability body,
+ Context context) {
+ Response inner
+ = this.serviceClient().checkNameAvailabilityWithResponse(body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CheckNameAvailabilityResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CheckNameAvailabilityResult checkNameAvailability(CheckNameAvailability body) {
+ CheckNameAvailabilityResultInner inner = this.serviceClient().checkNameAvailability(body);
+ if (inner != null) {
+ return new CheckNameAvailabilityResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Pool getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/AvailabilityStatus.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/AvailabilityStatus.java
new file mode 100644
index 000000000000..b5ddbcf0b5c7
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/AvailabilityStatus.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * AvailabilityStatus of a name.
+ */
+public final class AvailabilityStatus extends ExpandableStringEnum {
+ /**
+ * The name is available.
+ */
+ public static final AvailabilityStatus AVAILABLE = fromString("Available");
+
+ /**
+ * The name is unavailable.
+ */
+ public static final AvailabilityStatus UNAVAILABLE = fromString("Unavailable");
+
+ /**
+ * Creates a new instance of AvailabilityStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AvailabilityStatus() {
+ }
+
+ /**
+ * Creates or finds a AvailabilityStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AvailabilityStatus.
+ */
+ public static AvailabilityStatus fromString(String name) {
+ return fromString(name, AvailabilityStatus.class);
+ }
+
+ /**
+ * Gets known AvailabilityStatus values.
+ *
+ * @return known AvailabilityStatus values.
+ */
+ public static Collection values() {
+ return values(AvailabilityStatus.class);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CertificateStoreNameOption.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CertificateStoreNameOption.java
new file mode 100644
index 000000000000..d402a18ffaa6
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CertificateStoreNameOption.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The certificate store name type.
+ */
+public final class CertificateStoreNameOption extends ExpandableStringEnum {
+ /**
+ * The X.509 certificate store for personal certificates.
+ */
+ public static final CertificateStoreNameOption MY = fromString("My");
+
+ /**
+ * The X.509 certificate store for trusted root certificate authorities (CAs).
+ */
+ public static final CertificateStoreNameOption ROOT = fromString("Root");
+
+ /**
+ * Creates a new instance of CertificateStoreNameOption value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CertificateStoreNameOption() {
+ }
+
+ /**
+ * Creates or finds a CertificateStoreNameOption from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CertificateStoreNameOption.
+ */
+ public static CertificateStoreNameOption fromString(String name) {
+ return fromString(name, CertificateStoreNameOption.class);
+ }
+
+ /**
+ * Gets known CertificateStoreNameOption values.
+ *
+ * @return known CertificateStoreNameOption values.
+ */
+ public static Collection values() {
+ return values(CertificateStoreNameOption.class);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailability.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailability.java
new file mode 100644
index 000000000000..8b827651f046
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailability.java
@@ -0,0 +1,134 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The parameters used to check the availability of a resource.
+ */
+@Fluent
+public final class CheckNameAvailability implements JsonSerializable {
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of resource that is used as the scope of the availability check.
+ */
+ private DevOpsInfrastructureResourceType type;
+
+ /**
+ * Creates an instance of CheckNameAvailability class.
+ */
+ public CheckNameAvailability() {
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the resource.
+ *
+ * @param name the name value to set.
+ * @return the CheckNameAvailability object itself.
+ */
+ public CheckNameAvailability withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of resource that is used as the scope of the availability check.
+ *
+ * @return the type value.
+ */
+ public DevOpsInfrastructureResourceType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The type of resource that is used as the scope of the availability check.
+ *
+ * @param type the type value to set.
+ * @return the CheckNameAvailability object itself.
+ */
+ public CheckNameAvailability withType(DevOpsInfrastructureResourceType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model CheckNameAvailability"));
+ }
+ if (type() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property type in model CheckNameAvailability"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailability.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CheckNameAvailability from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CheckNameAvailability if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CheckNameAvailability.
+ */
+ public static CheckNameAvailability fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CheckNameAvailability deserializedCheckNameAvailability = new CheckNameAvailability();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedCheckNameAvailability.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCheckNameAvailability.type
+ = DevOpsInfrastructureResourceType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCheckNameAvailability;
+ });
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityReason.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityReason.java
new file mode 100644
index 000000000000..ab46821b7e5c
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityReason.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The reason code explaining why the name is unavailable. Will be null if the name is available.
+ */
+public final class CheckNameAvailabilityReason extends ExpandableStringEnum {
+ /**
+ * The name is invalid.
+ */
+ public static final CheckNameAvailabilityReason INVALID = fromString("Invalid");
+
+ /**
+ * The name already exists.
+ */
+ public static final CheckNameAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists");
+
+ /**
+ * Creates a new instance of CheckNameAvailabilityReason value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CheckNameAvailabilityReason() {
+ }
+
+ /**
+ * Creates or finds a CheckNameAvailabilityReason from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CheckNameAvailabilityReason.
+ */
+ public static CheckNameAvailabilityReason fromString(String name) {
+ return fromString(name, CheckNameAvailabilityReason.class);
+ }
+
+ /**
+ * Gets known CheckNameAvailabilityReason values.
+ *
+ * @return known CheckNameAvailabilityReason values.
+ */
+ public static Collection values() {
+ return values(CheckNameAvailabilityReason.class);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityResult.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityResult.java
new file mode 100644
index 000000000000..dbe27ab0fb53
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/CheckNameAvailabilityResult.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
+
+/**
+ * An immutable client-side representation of CheckNameAvailabilityResult.
+ */
+public interface CheckNameAvailabilityResult {
+ /**
+ * Gets the available property: Availability status of the name.
+ *
+ * @return the available value.
+ */
+ AvailabilityStatus available();
+
+ /**
+ * Gets the message property: A message explaining why the name is unavailable. Will be null if the name is
+ * available.
+ *
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * Gets the name property: The name whose availability was checked.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the reason property: The reason code explaining why the name is unavailable. Will be null if the name is
+ * available.
+ *
+ * @return the reason value.
+ */
+ CheckNameAvailabilityReason reason();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ CheckNameAvailabilityResultInner innerModel();
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/DevOpsInfrastructureResourceType.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/DevOpsInfrastructureResourceType.java
new file mode 100644
index 000000000000..19cd6f578064
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/DevOpsInfrastructureResourceType.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The type of resource.
+ */
+public final class DevOpsInfrastructureResourceType extends ExpandableStringEnum {
+ /**
+ * DevOpsInfrastructure pool resource.
+ */
+ public static final DevOpsInfrastructureResourceType MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS
+ = fromString("Microsoft.DevOpsInfrastructure/pools");
+
+ /**
+ * Creates a new instance of DevOpsInfrastructureResourceType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DevOpsInfrastructureResourceType() {
+ }
+
+ /**
+ * Creates or finds a DevOpsInfrastructureResourceType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DevOpsInfrastructureResourceType.
+ */
+ public static DevOpsInfrastructureResourceType fromString(String name) {
+ return fromString(name, DevOpsInfrastructureResourceType.class);
+ }
+
+ /**
+ * Gets known DevOpsInfrastructureResourceType values.
+ *
+ * @return known DevOpsInfrastructureResourceType values.
+ */
+ public static Collection values() {
+ return values(DevOpsInfrastructureResourceType.class);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/EphemeralType.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/EphemeralType.java
new file mode 100644
index 000000000000..4373ab8c591c
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/EphemeralType.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The type of Ephemeral option the pool will use on underlying VMs when loading this image.
+ */
+public final class EphemeralType extends ExpandableStringEnum {
+ /**
+ * Ephemeral is handled by Managed DevOps Pools service.
+ */
+ public static final EphemeralType AUTOMATIC = fromString("Automatic");
+
+ /**
+ * CacheDisk ephemeral only, requires that the SKU has a cache that is large enough for the image.
+ */
+ public static final EphemeralType CACHE_DISK = fromString("CacheDisk");
+
+ /**
+ * ResourceDisk ephemeral only, requires only that the SKU supports it.
+ */
+ public static final EphemeralType RESOURCE_DISK = fromString("ResourceDisk");
+
+ /**
+ * Creates a new instance of EphemeralType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public EphemeralType() {
+ }
+
+ /**
+ * Creates or finds a EphemeralType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding EphemeralType.
+ */
+ public static EphemeralType fromString(String name) {
+ return fromString(name, EphemeralType.class);
+ }
+
+ /**
+ * Gets known EphemeralType values.
+ *
+ * @return known EphemeralType values.
+ */
+ public static Collection values() {
+ return values(EphemeralType.class);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Organization.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Organization.java
index 1818cc3e8c60..2402531ccef7 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Organization.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Organization.java
@@ -33,6 +33,11 @@ public final class Organization implements JsonSerializable {
*/
private Integer parallelism;
+ /*
+ * Determines if the pool should have open access to all projects in this organization.
+ */
+ private Boolean openAccess;
+
/**
* Creates an instance of Organization class.
*/
@@ -101,6 +106,26 @@ public Organization withParallelism(Integer parallelism) {
return this;
}
+ /**
+ * Get the openAccess property: Determines if the pool should have open access to all projects in this organization.
+ *
+ * @return the openAccess value.
+ */
+ public Boolean openAccess() {
+ return this.openAccess;
+ }
+
+ /**
+ * Set the openAccess property: Determines if the pool should have open access to all projects in this organization.
+ *
+ * @param openAccess the openAccess value to set.
+ * @return the Organization object itself.
+ */
+ public Organization withOpenAccess(Boolean openAccess) {
+ this.openAccess = openAccess;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -124,6 +149,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("url", this.url);
jsonWriter.writeArrayField("projects", this.projects, (writer, element) -> writer.writeString(element));
jsonWriter.writeNumberField("parallelism", this.parallelism);
+ jsonWriter.writeBooleanField("openAccess", this.openAccess);
return jsonWriter.writeEndObject();
}
@@ -150,6 +176,8 @@ public static Organization fromJson(JsonReader jsonReader) throws IOException {
deserializedOrganization.projects = projects;
} else if ("parallelism".equals(fieldName)) {
deserializedOrganization.parallelism = reader.getNullable(JsonReader::getInt);
+ } else if ("openAccess".equals(fieldName)) {
+ deserializedOrganization.openAccess = reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/PoolImage.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/PoolImage.java
index ef6d417ad961..1fcccd9854e4 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/PoolImage.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/PoolImage.java
@@ -37,6 +37,11 @@ public final class PoolImage implements JsonSerializable {
*/
private String buffer;
+ /*
+ * The ephemeral type of the image.
+ */
+ private EphemeralType ephemeralType;
+
/**
* Creates an instance of PoolImage class.
*/
@@ -125,6 +130,26 @@ public PoolImage withBuffer(String buffer) {
return this;
}
+ /**
+ * Get the ephemeralType property: The ephemeral type of the image.
+ *
+ * @return the ephemeralType value.
+ */
+ public EphemeralType ephemeralType() {
+ return this.ephemeralType;
+ }
+
+ /**
+ * Set the ephemeralType property: The ephemeral type of the image.
+ *
+ * @param ephemeralType the ephemeralType value to set.
+ * @return the PoolImage object itself.
+ */
+ public PoolImage withEphemeralType(EphemeralType ephemeralType) {
+ this.ephemeralType = ephemeralType;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -143,6 +168,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("wellKnownImageName", this.wellKnownImageName);
jsonWriter.writeArrayField("aliases", this.aliases, (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("buffer", this.buffer);
+ jsonWriter.writeStringField("ephemeralType", this.ephemeralType == null ? null : this.ephemeralType.toString());
return jsonWriter.writeEndObject();
}
@@ -170,6 +196,8 @@ public static PoolImage fromJson(JsonReader jsonReader) throws IOException {
deserializedPoolImage.aliases = aliases;
} else if ("buffer".equals(fieldName)) {
deserializedPoolImage.buffer = reader.getString();
+ } else if ("ephemeralType".equals(fieldName)) {
+ deserializedPoolImage.ephemeralType = EphemeralType.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Pools.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Pools.java
index 1cc6ea013b50..904850152ef4 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Pools.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Pools.java
@@ -103,6 +103,30 @@ public interface Pools {
*/
PagedIterable list(Context context);
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability request.
+ * @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 CheckNameAvailability operation response along with {@link Response}.
+ */
+ Response checkNameAvailabilityWithResponse(CheckNameAvailability body,
+ Context context);
+
+ /**
+ * Checks that the pool name is valid and is not already in use.
+ *
+ * @param body The CheckAvailability 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 CheckNameAvailability operation response.
+ */
+ CheckNameAvailabilityResult checkNameAvailability(CheckNameAvailability body);
+
/**
* Get a Pool.
*
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SecretsManagementSettings.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SecretsManagementSettings.java
index d93edcc2d92b..875e27be77f0 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SecretsManagementSettings.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SecretsManagementSettings.java
@@ -23,6 +23,11 @@ public final class SecretsManagementSettings implements JsonSerializable writer.writeString(element));
jsonWriter.writeBooleanField("keyExportable", this.keyExportable);
jsonWriter.writeStringField("certificateStoreLocation", this.certificateStoreLocation);
+ jsonWriter.writeStringField("certificateStoreName",
+ this.certificateStoreName == null ? null : this.certificateStoreName.toString());
return jsonWriter.writeEndObject();
}
@@ -150,6 +179,9 @@ public static SecretsManagementSettings fromJson(JsonReader jsonReader) throws I
deserializedSecretsManagementSettings.keyExportable = reader.getBoolean();
} else if ("certificateStoreLocation".equals(fieldName)) {
deserializedSecretsManagementSettings.certificateStoreLocation = reader.getString();
+ } else if ("certificateStoreName".equals(fieldName)) {
+ deserializedSecretsManagementSettings.certificateStoreName
+ = CertificateStoreNameOption.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java
index 2854a44fca97..e54d12261acb 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java
@@ -9,7 +9,7 @@
*/
public final class ImageVersionsListByImageSamples {
/*
- * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json
+ * x-ms-original-file: 2025-01-21/ImageVersions_ListByImage.json
*/
/**
* Sample code: ImageVersions_ListByImage.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java
index db5fa3bc05df..406aeb13e043 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java
@@ -9,7 +9,7 @@
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2024-10-19/ListOperations.json
+ * x-ms-original-file: 2025-01-21/ListOperations.json
*/
/**
* Sample code: Operations_List.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilitySamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilitySamples.java
new file mode 100644
index 000000000000..a6c6699c9917
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilitySamples.java
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.generated;
+
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
+import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsInfrastructureResourceType;
+
+/**
+ * Samples for Pools CheckNameAvailability.
+ */
+public final class PoolsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: 2025-01-21/Pools_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Pools_CheckNameAvailability.
+ *
+ * @param manager Entry point to DevOpsInfrastructureManager.
+ */
+ public static void
+ poolsCheckNameAvailability(com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager manager) {
+ manager.pools()
+ .checkNameAvailabilityWithResponse(
+ new CheckNameAvailability().withName("mydevopspool")
+ .withType(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java
index fa36f8d4d6fa..7eb98f1331e9 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java
@@ -5,11 +5,15 @@
package com.azure.resourcemanager.devopsinfrastructure.generated;
import com.azure.resourcemanager.devopsinfrastructure.models.AzureDevOpsOrganizationProfile;
+import com.azure.resourcemanager.devopsinfrastructure.models.CertificateStoreNameOption;
import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsAzureSku;
+import com.azure.resourcemanager.devopsinfrastructure.models.EphemeralType;
import com.azure.resourcemanager.devopsinfrastructure.models.Organization;
+import com.azure.resourcemanager.devopsinfrastructure.models.OsProfile;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolImage;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolProperties;
import com.azure.resourcemanager.devopsinfrastructure.models.ProvisioningState;
+import com.azure.resourcemanager.devopsinfrastructure.models.SecretsManagementSettings;
import com.azure.resourcemanager.devopsinfrastructure.models.StatelessAgentProfile;
import com.azure.resourcemanager.devopsinfrastructure.models.VmssFabricProfile;
import java.util.Arrays;
@@ -19,7 +23,7 @@
*/
public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json
+ * x-ms-original-file: 2025-01-21/CreateOrUpdatePool.json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -34,12 +38,19 @@ public final class PoolsCreateOrUpdateSamples {
.withExistingResourceGroup("rg")
.withProperties(new PoolProperties().withProvisioningState(ProvisioningState.SUCCEEDED)
.withMaximumConcurrency(10)
- .withOrganizationProfile(new AzureDevOpsOrganizationProfile()
- .withOrganizations(Arrays.asList(new Organization().withUrl("https://mseng.visualstudio.com"))))
+ .withOrganizationProfile(new AzureDevOpsOrganizationProfile().withOrganizations(
+ Arrays.asList(new Organization().withUrl("https://mseng.visualstudio.com").withOpenAccess(true))))
.withAgentProfile(new StatelessAgentProfile())
- .withFabricProfile(new VmssFabricProfile().withSku(new DevOpsAzureSku().withName("Standard_D4ads_v5"))
- .withImages(Arrays.asList(new PoolImage()
- .withResourceId("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"))))
+ .withFabricProfile(
+ new VmssFabricProfile().withSku(new DevOpsAzureSku().withName("Standard_D4ads_v5"))
+ .withImages(Arrays.asList(new PoolImage()
+ .withResourceId("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest")
+ .withEphemeralType(EphemeralType.AUTOMATIC)))
+ .withOsProfile(
+ new OsProfile().withSecretsManagementSettings(new SecretsManagementSettings()
+ .withCertificateStoreName(CertificateStoreNameOption.ROOT)
+ .withObservedCertificates(Arrays.asList("https://abc.vault.azure.net/secrets/one"))
+ .withKeyExportable(false))))
.withDevCenterProjectResourceId(
"/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES"))
.create();
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java
index 610a2ab3ddd8..f1461d36ba15 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java
@@ -9,7 +9,7 @@
*/
public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: 2024-10-19/DeletePool.json
+ * x-ms-original-file: 2025-01-21/DeletePool.json
*/
/**
* Sample code: Pools_Delete.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java
index 79635126da23..e56fbce54be2 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
*/
public final class PoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-10-19/GetPool.json
+ * x-ms-original-file: 2025-01-21/GetPool.json
*/
/**
* Sample code: Pools_Get.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java
index a03dfa640d92..de01d458e713 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
*/
public final class PoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json
+ * x-ms-original-file: 2025-01-21/ListPoolsBySubscriptionAndResourceGroup.json
*/
/**
* Sample code: Pools_ListByResourceGroup.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java
index a188c0228f89..ca055dc66c6b 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java
@@ -9,7 +9,7 @@
*/
public final class PoolsListSamples {
/*
- * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json
+ * x-ms-original-file: 2025-01-21/ListPoolsBySubscription.json
*/
/**
* Sample code: Pools_ListBySubscription.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java
index 76614d10c8f8..1d2b2298d2e7 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java
@@ -11,7 +11,7 @@
*/
public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: 2024-10-19/UpdatePool.json
+ * x-ms-original-file: 2025-01-21/UpdatePool.json
*/
/**
* Sample code: Pools_Update.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java
index 99fe6e0c1680..a0b785e1810d 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java
@@ -9,7 +9,7 @@
*/
public final class ResourceDetailsListByPoolSamples {
/*
- * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json
+ * x-ms-original-file: 2025-01-21/ResourceDetails_ListByPool.json
*/
/**
* Sample code: ResourceDetails_ListByPool.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java
index b63fd3f4bf83..641856bec452 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java
@@ -9,7 +9,7 @@
*/
public final class SkuListByLocationSamples {
/*
- * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json
+ * x-ms-original-file: 2025-01-21/Sku_ListByLocation.json
*/
/**
* Sample code: Sku_ListByLocation.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java
index ea7b19a64649..cc39008188c0 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java
@@ -9,7 +9,7 @@
*/
public final class SubscriptionUsagesUsagesSamples {
/*
- * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json
+ * x-ms-original-file: 2025-01-21/SubscriptionUsages_Usages.json
*/
/**
* Sample code: SubscriptionUsages_Usages.
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AutomaticResourcePredictionsProfileTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AutomaticResourcePredictionsProfileTests.java
index de4f94c15b2a..cc8c648662cd 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AutomaticResourcePredictionsProfileTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AutomaticResourcePredictionsProfileTests.java
@@ -13,16 +13,16 @@ public final class AutomaticResourcePredictionsProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AutomaticResourcePredictionsProfile model
- = BinaryData.fromString("{\"kind\":\"Automatic\",\"predictionPreference\":\"MorePerformance\"}")
+ = BinaryData.fromString("{\"kind\":\"Automatic\",\"predictionPreference\":\"BestPerformance\"}")
.toObject(AutomaticResourcePredictionsProfile.class);
- Assertions.assertEquals(PredictionPreference.MORE_PERFORMANCE, model.predictionPreference());
+ Assertions.assertEquals(PredictionPreference.BEST_PERFORMANCE, model.predictionPreference());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
AutomaticResourcePredictionsProfile model
- = new AutomaticResourcePredictionsProfile().withPredictionPreference(PredictionPreference.MORE_PERFORMANCE);
+ = new AutomaticResourcePredictionsProfile().withPredictionPreference(PredictionPreference.BEST_PERFORMANCE);
model = BinaryData.fromObject(model).toObject(AutomaticResourcePredictionsProfile.class);
- Assertions.assertEquals(PredictionPreference.MORE_PERFORMANCE, model.predictionPreference());
+ Assertions.assertEquals(PredictionPreference.BEST_PERFORMANCE, model.predictionPreference());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsOrganizationProfileTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsOrganizationProfileTests.java
index fde3ca0b9e5c..624380713a28 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsOrganizationProfileTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsOrganizationProfileTests.java
@@ -16,14 +16,15 @@ public final class AzureDevOpsOrganizationProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AzureDevOpsOrganizationProfile model = BinaryData.fromString(
- "{\"kind\":\"AzureDevOps\",\"organizations\":[{\"url\":\"v\",\"projects\":[\"rwzoxxjtfelluwf\",\"it\"],\"parallelism\":180815183},{\"url\":\"eqfpj\",\"projects\":[\"xofpdvhpfxxypi\",\"i\",\"mayhuybbkpodepoo\",\"inuvamiheogn\"],\"parallelism\":1781320199}],\"permissionProfile\":{\"kind\":\"SpecificAccounts\",\"users\":[\"eotusivyevc\",\"iqihn\"],\"groups\":[\"gbwjzrnf\",\"gxg\"]}}")
+ "{\"kind\":\"AzureDevOps\",\"organizations\":[{\"url\":\"v\",\"projects\":[\"rwzoxxjtfelluwf\",\"it\"],\"parallelism\":180815183,\"openAccess\":false},{\"url\":\"fpjkjlxofp\",\"projects\":[\"pfxxy\"],\"parallelism\":507207264,\"openAccess\":true}],\"permissionProfile\":{\"kind\":\"Inherit\",\"users\":[\"uybbkpodep\"],\"groups\":[\"inuvamiheogn\",\"rxzxtheo\",\"usivye\"]}}")
.toObject(AzureDevOpsOrganizationProfile.class);
Assertions.assertEquals("v", model.organizations().get(0).url());
Assertions.assertEquals("rwzoxxjtfelluwf", model.organizations().get(0).projects().get(0));
Assertions.assertEquals(180815183, model.organizations().get(0).parallelism());
- Assertions.assertEquals(AzureDevOpsPermissionType.SPECIFIC_ACCOUNTS, model.permissionProfile().kind());
- Assertions.assertEquals("eotusivyevc", model.permissionProfile().users().get(0));
- Assertions.assertEquals("gbwjzrnf", model.permissionProfile().groups().get(0));
+ Assertions.assertEquals(false, model.organizations().get(0).openAccess());
+ Assertions.assertEquals(AzureDevOpsPermissionType.INHERIT, model.permissionProfile().kind());
+ Assertions.assertEquals("uybbkpodep", model.permissionProfile().users().get(0));
+ Assertions.assertEquals("inuvamiheogn", model.permissionProfile().groups().get(0));
}
@org.junit.jupiter.api.Test
@@ -32,20 +33,22 @@ public void testSerialize() throws Exception {
.withOrganizations(Arrays.asList(
new Organization().withUrl("v")
.withProjects(Arrays.asList("rwzoxxjtfelluwf", "it"))
- .withParallelism(180815183),
- new Organization().withUrl("eqfpj")
- .withProjects(Arrays.asList("xofpdvhpfxxypi", "i", "mayhuybbkpodepoo", "inuvamiheogn"))
- .withParallelism(1781320199)))
- .withPermissionProfile(
- new AzureDevOpsPermissionProfile().withKind(AzureDevOpsPermissionType.SPECIFIC_ACCOUNTS)
- .withUsers(Arrays.asList("eotusivyevc", "iqihn"))
- .withGroups(Arrays.asList("gbwjzrnf", "gxg")));
+ .withParallelism(180815183)
+ .withOpenAccess(false),
+ new Organization().withUrl("fpjkjlxofp")
+ .withProjects(Arrays.asList("pfxxy"))
+ .withParallelism(507207264)
+ .withOpenAccess(true)))
+ .withPermissionProfile(new AzureDevOpsPermissionProfile().withKind(AzureDevOpsPermissionType.INHERIT)
+ .withUsers(Arrays.asList("uybbkpodep"))
+ .withGroups(Arrays.asList("inuvamiheogn", "rxzxtheo", "usivye")));
model = BinaryData.fromObject(model).toObject(AzureDevOpsOrganizationProfile.class);
Assertions.assertEquals("v", model.organizations().get(0).url());
Assertions.assertEquals("rwzoxxjtfelluwf", model.organizations().get(0).projects().get(0));
Assertions.assertEquals(180815183, model.organizations().get(0).parallelism());
- Assertions.assertEquals(AzureDevOpsPermissionType.SPECIFIC_ACCOUNTS, model.permissionProfile().kind());
- Assertions.assertEquals("eotusivyevc", model.permissionProfile().users().get(0));
- Assertions.assertEquals("gbwjzrnf", model.permissionProfile().groups().get(0));
+ Assertions.assertEquals(false, model.organizations().get(0).openAccess());
+ Assertions.assertEquals(AzureDevOpsPermissionType.INHERIT, model.permissionProfile().kind());
+ Assertions.assertEquals("uybbkpodep", model.permissionProfile().users().get(0));
+ Assertions.assertEquals("inuvamiheogn", model.permissionProfile().groups().get(0));
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsPermissionProfileTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsPermissionProfileTests.java
index 863e68cfd0e5..c582234acc1c 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsPermissionProfileTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/AzureDevOpsPermissionProfileTests.java
@@ -14,22 +14,22 @@ public final class AzureDevOpsPermissionProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AzureDevOpsPermissionProfile model = BinaryData.fromString(
- "{\"kind\":\"Inherit\",\"users\":[\"bybkzgcwrwclxx\",\"rljdouskcqv\",\"ocrcjdk\",\"tnhxbn\"],\"groups\":[\"ksqrglssai\",\"qpjwnzlljfm\"]}")
+ "{\"kind\":\"Inherit\",\"users\":[\"gsntnbybkzgcwr\",\"clxxwrljdo\",\"skcqvkocrcjd\"],\"groups\":[\"nh\",\"bnjbiksqrglssain\"]}")
.toObject(AzureDevOpsPermissionProfile.class);
Assertions.assertEquals(AzureDevOpsPermissionType.INHERIT, model.kind());
- Assertions.assertEquals("bybkzgcwrwclxx", model.users().get(0));
- Assertions.assertEquals("ksqrglssai", model.groups().get(0));
+ Assertions.assertEquals("gsntnbybkzgcwr", model.users().get(0));
+ Assertions.assertEquals("nh", model.groups().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
AzureDevOpsPermissionProfile model
= new AzureDevOpsPermissionProfile().withKind(AzureDevOpsPermissionType.INHERIT)
- .withUsers(Arrays.asList("bybkzgcwrwclxx", "rljdouskcqv", "ocrcjdk", "tnhxbn"))
- .withGroups(Arrays.asList("ksqrglssai", "qpjwnzlljfm"));
+ .withUsers(Arrays.asList("gsntnbybkzgcwr", "clxxwrljdo", "skcqvkocrcjd"))
+ .withGroups(Arrays.asList("nh", "bnjbiksqrglssain"));
model = BinaryData.fromObject(model).toObject(AzureDevOpsPermissionProfile.class);
Assertions.assertEquals(AzureDevOpsPermissionType.INHERIT, model.kind());
- Assertions.assertEquals("bybkzgcwrwclxx", model.users().get(0));
- Assertions.assertEquals("ksqrglssai", model.groups().get(0));
+ Assertions.assertEquals("gsntnbybkzgcwr", model.users().get(0));
+ Assertions.assertEquals("nh", model.groups().get(0));
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityResultInnerTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityResultInnerTests.java
new file mode 100644
index 000000000000..321f90664fc3
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityResultInnerTests.java
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.devopsinfrastructure.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.devopsinfrastructure.models.AvailabilityStatus;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityReason;
+import org.junit.jupiter.api.Assertions;
+
+public final class CheckNameAvailabilityResultInnerTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ CheckNameAvailabilityResultInner model = BinaryData.fromString(
+ "{\"available\":\"Available\",\"message\":\"mvvd\",\"name\":\"watkpnpulexxb\",\"reason\":\"AlreadyExists\"}")
+ .toObject(CheckNameAvailabilityResultInner.class);
+ Assertions.assertEquals(AvailabilityStatus.AVAILABLE, model.available());
+ Assertions.assertEquals("mvvd", model.message());
+ Assertions.assertEquals("watkpnpulexxb", model.name());
+ Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason());
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityTests.java
new file mode 100644
index 000000000000..6add0a60fa1b
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/CheckNameAvailabilityTests.java
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
+import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsInfrastructureResourceType;
+import org.junit.jupiter.api.Assertions;
+
+public final class CheckNameAvailabilityTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ CheckNameAvailability model
+ = BinaryData.fromString("{\"name\":\"poczvyifqrvkdvjs\",\"type\":\"Microsoft.DevOpsInfrastructure/pools\"}")
+ .toObject(CheckNameAvailability.class);
+ Assertions.assertEquals("poczvyifqrvkdvjs", model.name());
+ Assertions.assertEquals(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS, model.type());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ CheckNameAvailability model = new CheckNameAvailability().withName("poczvyifqrvkdvjs")
+ .withType(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS);
+ model = BinaryData.fromObject(model).toObject(CheckNameAvailability.class);
+ Assertions.assertEquals("poczvyifqrvkdvjs", model.name());
+ Assertions.assertEquals(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS, model.type());
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DataDiskTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DataDiskTests.java
index 03ab423ff6b9..511fc6984177 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DataDiskTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DataDiskTests.java
@@ -14,24 +14,24 @@ public final class DataDiskTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
DataDisk model = BinaryData.fromString(
- "{\"caching\":\"ReadWrite\",\"diskSizeGiB\":1555370196,\"storageAccountType\":\"StandardSSD_ZRS\",\"driveLetter\":\"uizga\"}")
+ "{\"caching\":\"None\",\"diskSizeGiB\":778150976,\"storageAccountType\":\"Standard_LRS\",\"driveLetter\":\"wdzuhtymwisd\"}")
.toObject(DataDisk.class);
- Assertions.assertEquals(CachingType.READ_WRITE, model.caching());
- Assertions.assertEquals(1555370196, model.diskSizeGiB());
- Assertions.assertEquals(StorageAccountType.STANDARD_SSDZRS, model.storageAccountType());
- Assertions.assertEquals("uizga", model.driveLetter());
+ Assertions.assertEquals(CachingType.NONE, model.caching());
+ Assertions.assertEquals(778150976, model.diskSizeGiB());
+ Assertions.assertEquals(StorageAccountType.STANDARD_LRS, model.storageAccountType());
+ Assertions.assertEquals("wdzuhtymwisd", model.driveLetter());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- DataDisk model = new DataDisk().withCaching(CachingType.READ_WRITE)
- .withDiskSizeGiB(1555370196)
- .withStorageAccountType(StorageAccountType.STANDARD_SSDZRS)
- .withDriveLetter("uizga");
+ DataDisk model = new DataDisk().withCaching(CachingType.NONE)
+ .withDiskSizeGiB(778150976)
+ .withStorageAccountType(StorageAccountType.STANDARD_LRS)
+ .withDriveLetter("wdzuhtymwisd");
model = BinaryData.fromObject(model).toObject(DataDisk.class);
- Assertions.assertEquals(CachingType.READ_WRITE, model.caching());
- Assertions.assertEquals(1555370196, model.diskSizeGiB());
- Assertions.assertEquals(StorageAccountType.STANDARD_SSDZRS, model.storageAccountType());
- Assertions.assertEquals("uizga", model.driveLetter());
+ Assertions.assertEquals(CachingType.NONE, model.caching());
+ Assertions.assertEquals(778150976, model.diskSizeGiB());
+ Assertions.assertEquals(StorageAccountType.STANDARD_LRS, model.storageAccountType());
+ Assertions.assertEquals("wdzuhtymwisd", model.driveLetter());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DevOpsAzureSkuTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DevOpsAzureSkuTests.java
index c67a386f2c88..9d19715c6e4e 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DevOpsAzureSkuTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/DevOpsAzureSkuTests.java
@@ -11,14 +11,14 @@
public final class DevOpsAzureSkuTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- DevOpsAzureSku model = BinaryData.fromString("{\"name\":\"wgcu\"}").toObject(DevOpsAzureSku.class);
- Assertions.assertEquals("wgcu", model.name());
+ DevOpsAzureSku model = BinaryData.fromString("{\"name\":\"qedqytbciqfoufl\"}").toObject(DevOpsAzureSku.class);
+ Assertions.assertEquals("qedqytbciqfoufl", model.name());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- DevOpsAzureSku model = new DevOpsAzureSku().withName("wgcu");
+ DevOpsAzureSku model = new DevOpsAzureSku().withName("qedqytbciqfoufl");
model = BinaryData.fromObject(model).toObject(DevOpsAzureSku.class);
- Assertions.assertEquals("wgcu", model.name());
+ Assertions.assertEquals("qedqytbciqfoufl", model.name());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java
index 65bf1bdbe143..391fab9d57b1 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.ImageVersion;
@@ -22,18 +22,18 @@ public final class ImageVersionsListByImageMockTests {
@Test
public void testListByImage() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"version\":\"cvnhltiugc\"},\"id\":\"avvwxqi\",\"name\":\"y\",\"type\":\"unyowxwl\"}]}";
+ = "{\"value\":[{\"properties\":{\"version\":\"fzxiavrmb\"},\"id\":\"nokixrjqcirgz\",\"name\":\"frl\",\"type\":\"zszrnwoiindfpw\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response
- = manager.imageVersions().listByImage("c", "edcpnmdyodnwzxl", com.azure.core.util.Context.NONE);
+ = manager.imageVersions().listByImage("yowqkdwytisibir", "gpikpzimejza", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("cvnhltiugc", response.iterator().next().properties().version());
+ Assertions.assertEquals("fzxiavrmb", response.iterator().next().properties().version());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ManagedServiceIdentityTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ManagedServiceIdentityTests.java
index f19ed064a547..8b77ccf9e4ca 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ManagedServiceIdentityTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ManagedServiceIdentityTests.java
@@ -16,7 +16,7 @@ public final class ManagedServiceIdentityTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ManagedServiceIdentity model = BinaryData.fromString(
- "{\"principalId\":\"izuckyfihrfidfvz\",\"tenantId\":\"zuhtymwisdkfthwx\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nsez\":{\"principalId\":\"waopvkmijcmmxd\",\"clientId\":\"fufsrpymzi\"},\"flnrosfqpteehzz\":{\"principalId\":\"tbzsgfyccs\",\"clientId\":\"wmdwzjeiachboo\"},\"npvswjdkirso\":{\"principalId\":\"pyqr\",\"clientId\":\"z\"}}}")
+ "{\"principalId\":\"vkmijcmmxdcuf\",\"tenantId\":\"srp\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ewmdw\":{\"clientId\":\"nsez\",\"principalId\":\"tbzsgfyccs\"},\"hzzvypyq\":{\"clientId\":\"eiachboosflnr\",\"principalId\":\"fqpte\"},\"t\":{\"clientId\":\"mzinpvswjdk\",\"principalId\":\"soodqxhcrmnoh\"}}}")
.toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type());
}
@@ -24,8 +24,8 @@ public void testDeserialize() throws Exception {
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf("nsez", new UserAssignedIdentity(), "flnrosfqpteehzz",
- new UserAssignedIdentity(), "npvswjdkirso", new UserAssignedIdentity()));
+ .withUserAssignedIdentities(mapOf("ewmdw", new UserAssignedIdentity(), "hzzvypyq",
+ new UserAssignedIdentity(), "t", new UserAssignedIdentity()));
model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type());
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/NetworkProfileTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/NetworkProfileTests.java
index 9e8c187d2113..86c6326d9185 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/NetworkProfileTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/NetworkProfileTests.java
@@ -11,14 +11,14 @@
public final class NetworkProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- NetworkProfile model = BinaryData.fromString("{\"subnetId\":\"x\"}").toObject(NetworkProfile.class);
- Assertions.assertEquals("x", model.subnetId());
+ NetworkProfile model = BinaryData.fromString("{\"subnetId\":\"fthwxmnteiwa\"}").toObject(NetworkProfile.class);
+ Assertions.assertEquals("fthwxmnteiwa", model.subnetId());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- NetworkProfile model = new NetworkProfile().withSubnetId("x");
+ NetworkProfile model = new NetworkProfile().withSubnetId("fthwxmnteiwa");
model = BinaryData.fromObject(model).toObject(NetworkProfile.class);
- Assertions.assertEquals("x", model.subnetId());
+ Assertions.assertEquals("fthwxmnteiwa", model.subnetId());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationInnerTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationInnerTests.java
index 52a98d5a3bca..60ac5eaf938a 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationInnerTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationInnerTests.java
@@ -6,8 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devopsinfrastructure.fluent.models.OperationInner;
-import com.azure.resourcemanager.devopsinfrastructure.models.ActionType;
-import org.junit.jupiter.api.Assertions;
public final class OperationInnerTests {
@org.junit.jupiter.api.Test
@@ -15,6 +13,5 @@ public void testDeserialize() throws Exception {
OperationInner model = BinaryData.fromString(
"{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
.toObject(OperationInner.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.actionType());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationListResultTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationListResultTests.java
index 67c7e6f26242..170c44a82177 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationListResultTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationListResultTests.java
@@ -6,7 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devopsinfrastructure.implementation.models.OperationListResult;
-import com.azure.resourcemanager.devopsinfrastructure.models.ActionType;
import org.junit.jupiter.api.Assertions;
public final class OperationListResultTests {
@@ -15,7 +14,6 @@ public void testDeserialize() throws Exception {
OperationListResult model = BinaryData.fromString(
"{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}")
.toObject(OperationListResult.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType());
Assertions.assertEquals("kfo", model.nextLink());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java
index 6235d8fe5239..b1f1f9a5e1c8 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java
@@ -7,15 +7,13 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
-import com.azure.resourcemanager.devopsinfrastructure.models.ActionType;
import com.azure.resourcemanager.devopsinfrastructure.models.Operation;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
@@ -30,10 +28,9 @@ public void testList() throws Exception {
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OrganizationTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OrganizationTests.java
index 18c9611a7b5d..64e36f1e49fb 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OrganizationTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OrganizationTests.java
@@ -13,21 +13,24 @@ public final class OrganizationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
Organization model = BinaryData.fromString(
- "{\"url\":\"spemvtzfk\",\"projects\":[\"bljofxqeof\",\"aeqjhqjbasvms\",\"jqul\"],\"parallelism\":951964300}")
+ "{\"url\":\"cciqihnhungbwjz\",\"projects\":[\"ygxgispemvtz\",\"kufubljo\",\"xqeofjaeqjhqjba\",\"v\"],\"parallelism\":171596164,\"openAccess\":true}")
.toObject(Organization.class);
- Assertions.assertEquals("spemvtzfk", model.url());
- Assertions.assertEquals("bljofxqeof", model.projects().get(0));
- Assertions.assertEquals(951964300, model.parallelism());
+ Assertions.assertEquals("cciqihnhungbwjz", model.url());
+ Assertions.assertEquals("ygxgispemvtz", model.projects().get(0));
+ Assertions.assertEquals(171596164, model.parallelism());
+ Assertions.assertEquals(true, model.openAccess());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Organization model = new Organization().withUrl("spemvtzfk")
- .withProjects(Arrays.asList("bljofxqeof", "aeqjhqjbasvms", "jqul"))
- .withParallelism(951964300);
+ Organization model = new Organization().withUrl("cciqihnhungbwjz")
+ .withProjects(Arrays.asList("ygxgispemvtz", "kufubljo", "xqeofjaeqjhqjba", "v"))
+ .withParallelism(171596164)
+ .withOpenAccess(true);
model = BinaryData.fromObject(model).toObject(Organization.class);
- Assertions.assertEquals("spemvtzfk", model.url());
- Assertions.assertEquals("bljofxqeof", model.projects().get(0));
- Assertions.assertEquals(951964300, model.parallelism());
+ Assertions.assertEquals("cciqihnhungbwjz", model.url());
+ Assertions.assertEquals("ygxgispemvtz", model.projects().get(0));
+ Assertions.assertEquals(171596164, model.parallelism());
+ Assertions.assertEquals(true, model.openAccess());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolImageTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolImageTests.java
index f3037089e9ab..22e98da94c7e 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolImageTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolImageTests.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.devopsinfrastructure.generated;
import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.devopsinfrastructure.models.EphemeralType;
import com.azure.resourcemanager.devopsinfrastructure.models.PoolImage;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
@@ -13,24 +14,27 @@ public final class PoolImageTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PoolImage model = BinaryData.fromString(
- "{\"resourceId\":\"tumkdosvqwhbm\",\"wellKnownImageName\":\"bbjfddgmbmbexp\",\"aliases\":[\"tq\",\"rolfpfp\",\"algbquxigjyjg\"],\"buffer\":\"aoyfhrtxilnerkuj\"}")
+ "{\"resourceId\":\"nkzsmodmglou\",\"wellKnownImageName\":\"b\",\"aliases\":[\"mutduqktaps\"],\"buffer\":\"gcue\",\"ephemeralType\":\"ResourceDisk\"}")
.toObject(PoolImage.class);
- Assertions.assertEquals("tumkdosvqwhbm", model.resourceId());
- Assertions.assertEquals("bbjfddgmbmbexp", model.wellKnownImageName());
- Assertions.assertEquals("tq", model.aliases().get(0));
- Assertions.assertEquals("aoyfhrtxilnerkuj", model.buffer());
+ Assertions.assertEquals("nkzsmodmglou", model.resourceId());
+ Assertions.assertEquals("b", model.wellKnownImageName());
+ Assertions.assertEquals("mutduqktaps", model.aliases().get(0));
+ Assertions.assertEquals("gcue", model.buffer());
+ Assertions.assertEquals(EphemeralType.RESOURCE_DISK, model.ephemeralType());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PoolImage model = new PoolImage().withResourceId("tumkdosvqwhbm")
- .withWellKnownImageName("bbjfddgmbmbexp")
- .withAliases(Arrays.asList("tq", "rolfpfp", "algbquxigjyjg"))
- .withBuffer("aoyfhrtxilnerkuj");
+ PoolImage model = new PoolImage().withResourceId("nkzsmodmglou")
+ .withWellKnownImageName("b")
+ .withAliases(Arrays.asList("mutduqktaps"))
+ .withBuffer("gcue")
+ .withEphemeralType(EphemeralType.RESOURCE_DISK);
model = BinaryData.fromObject(model).toObject(PoolImage.class);
- Assertions.assertEquals("tumkdosvqwhbm", model.resourceId());
- Assertions.assertEquals("bbjfddgmbmbexp", model.wellKnownImageName());
- Assertions.assertEquals("tq", model.aliases().get(0));
- Assertions.assertEquals("aoyfhrtxilnerkuj", model.buffer());
+ Assertions.assertEquals("nkzsmodmglou", model.resourceId());
+ Assertions.assertEquals("b", model.wellKnownImageName());
+ Assertions.assertEquals("mutduqktaps", model.aliases().get(0));
+ Assertions.assertEquals("gcue", model.buffer());
+ Assertions.assertEquals(EphemeralType.RESOURCE_DISK, model.ephemeralType());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolInnerTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolInnerTests.java
index a3ef36748df7..15596deb34b5 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolInnerTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolInnerTests.java
@@ -24,7 +24,7 @@ public final class PoolInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PoolInner model = BinaryData.fromString(
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1475071070,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"vg\"},\"identity\":{\"principalId\":\"symglzufcyz\",\"tenantId\":\"hdbihan\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ithxqhabifpi\":{\"principalId\":\"bj\",\"clientId\":\"a\"},\"ivyqniwbybrkxvd\":{\"principalId\":\"wczbys\",\"clientId\":\"pqxu\"},\"yejhk\":{\"principalId\":\"jgrtfwvukxga\",\"clientId\":\"ccsnhsjc\"},\"jnchgej\":{\"principalId\":\"htnapczwlokjyem\",\"clientId\":\"vnipjox\"}}},\"location\":\"odmailzyd\",\"tags\":{\"wixjsprozvcp\":\"jwyahuxinpmqnja\"},\"id\":\"tegjvwmf\",\"name\":\"atscmd\",\"type\":\"pjhulsuuvmkj\"}")
+ "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1475071070,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"vg\"},\"identity\":{\"principalId\":\"symglzufcyz\",\"tenantId\":\"hdbihan\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ithxqhabifpi\":{\"clientId\":\"bj\",\"principalId\":\"a\"},\"ivyqniwbybrkxvd\":{\"clientId\":\"wczbys\",\"principalId\":\"pqxu\"},\"yejhk\":{\"clientId\":\"jgrtfwvukxga\",\"principalId\":\"ccsnhsjc\"},\"jnchgej\":{\"clientId\":\"htnapczwlokjyem\",\"principalId\":\"vnipjox\"}}},\"location\":\"odmailzyd\",\"tags\":{\"wixjsprozvcp\":\"jwyahuxinpmqnja\"},\"id\":\"tegjvwmf\",\"name\":\"atscmd\",\"type\":\"pjhulsuuvmkj\"}")
.toObject(PoolInner.class);
Assertions.assertEquals("odmailzyd", model.location());
Assertions.assertEquals("jwyahuxinpmqnja", model.tags().get("wixjsprozvcp"));
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolListResultTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolListResultTests.java
index 35e4a2ba1f6e..60808aa5e94e 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolListResultTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolListResultTests.java
@@ -14,14 +14,14 @@ public final class PoolListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PoolListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"maximumConcurrency\":1519639894,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"jthjqkwpyei\"},\"identity\":{\"principalId\":\"qciwqvhkhixuigdt\",\"tenantId\":\"bob\",\"type\":\"None\",\"userAssignedIdentities\":{\"a\":{\"principalId\":\"e\",\"clientId\":\"a\"}}},\"location\":\"rzayv\",\"tags\":{\"ln\":\"gvdfgiotkftutq\",\"qmi\":\"xlefgugnxkrx\"},\"id\":\"tthzrvqd\",\"name\":\"abhjybi\",\"type\":\"ehoqfbowskan\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"maximumConcurrency\":1440760803,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"iywgqywgndrvynh\"},\"identity\":{\"principalId\":\"phrcgyncoc\",\"tenantId\":\"cfvmmco\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"c\":{\"principalId\":\"zevgb\",\"clientId\":\"jqabcypmivkwlzuv\"},\"bqqwxrj\":{\"principalId\":\"nfnbacfionlebxe\",\"clientId\":\"gtzxdpn\"},\"pmng\":{\"principalId\":\"al\",\"clientId\":\"wsubisnja\"},\"xnj\":{\"principalId\":\"scxaq\",\"clientId\":\"ochcbonqvpkvl\"}}},\"location\":\"seiphe\",\"tags\":{\"dlwtgrhpdj\":\"okeyyienj\",\"zj\":\"jumasx\"},\"id\":\"qyeg\",\"name\":\"alhbx\",\"type\":\"hejjz\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"maximumConcurrency\":303390013,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"dslfhotwmcy\"},\"identity\":{\"principalId\":\"lbjnpgacftadehx\",\"tenantId\":\"tyfsoppusuesn\",\"type\":\"None\",\"userAssignedIdentities\":{\"wxdndnvowgujjug\":{\"principalId\":\"bavo\",\"clientId\":\"zdmohctbqvu\"}}},\"location\":\"kcglhslaz\",\"tags\":{\"jixhbk\":\"ggd\",\"fwhybcibvy\":\"ofqweykhmenevfye\",\"ynnaam\":\"dcsi\"},\"id\":\"ectehf\",\"name\":\"qsc\",\"type\":\"eypvhezrkg\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"maximumConcurrency\":1889311419,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"o\"},\"identity\":{\"principalId\":\"kqsleyyvxy\",\"tenantId\":\"pkc\",\"type\":\"None\",\"userAssignedIdentities\":{\"a\":{\"principalId\":\"gjcrcczsqpjhvm\",\"clientId\":\"jvnysounqe\"},\"u\":{\"principalId\":\"ae\",\"clientId\":\"fhyhltrpmopjmcma\"},\"uaxbezyiuokkt\":{\"principalId\":\"thfuiuaodsfcpkvx\",\"clientId\":\"puozmyzydag\"},\"ksymd\":{\"principalId\":\"rdxwzywqsm\",\"clientId\":\"ureximoryocfs\"}}},\"location\":\"stkiiuxhqyud\",\"tags\":{\"b\":\"rq\",\"fqrvkdvjsllrmvvd\":\"oczvy\",\"zwtruwiqzbqjvsov\":\"watkpnpulexxb\",\"hzdobpxjmflbvvnc\":\"yokacspkw\"},\"id\":\"rkcciwwzjuqk\",\"name\":\"rsa\",\"type\":\"iwkuofos\"}],\"nextLink\":\"hsauuimjmvxied\"}")
+ "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"maximumConcurrency\":137439916,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ejctbzaqsqsycb\"},\"identity\":{\"principalId\":\"k\",\"tenantId\":\"kdkexxp\",\"type\":\"None\",\"userAssignedIdentities\":{\"i\":{\"clientId\":\"axcfjpgddtocjjx\",\"principalId\":\"pmouexhdz\"},\"btwnpzaoqvuhrhcf\":{\"clientId\":\"eojnxqbzvddn\",\"principalId\":\"ndei\"}}},\"location\":\"yd\",\"tags\":{\"eicxmqciwqvhkhi\":\"mjthjqkwp\",\"m\":\"uigdtopbobjog\"},\"id\":\"w\",\"name\":\"a\",\"type\":\"a\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"maximumConcurrency\":425108971,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"vtpgvdfgiotkf\"},\"identity\":{\"principalId\":\"qxlngx\",\"tenantId\":\"fgugnxkrxdqmid\",\"type\":\"None\",\"userAssignedIdentities\":{\"oqfbowskanyk\":{\"clientId\":\"vqdra\",\"principalId\":\"jybige\"},\"ocpecfvmmco\":{\"clientId\":\"lcuiywgqywgndr\",\"principalId\":\"nhzgpphrcgyn\"}}},\"location\":\"sxlzevgbmqj\",\"tags\":{\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\"},\"id\":\"qbqqwxr\",\"name\":\"feallnwsu\",\"type\":\"isnjampmngnz\"},{\"properties\":{\"provisioningState\":\"Failed\",\"maximumConcurrency\":431293436,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ochcbonqvpkvl\"},\"identity\":{\"principalId\":\"jease\",\"tenantId\":\"heoflokeyyienjbd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"jj\":{\"clientId\":\"hpdjpjumasxa\",\"principalId\":\"pqyegualhbxxh\"},\"mcy\":{\"clientId\":\"v\",\"principalId\":\"dgwdslfhot\"},\"dejbavo\":{\"clientId\":\"wlbjnpgacftade\",\"principalId\":\"nltyfsoppusuesnz\"}}},\"location\":\"zdmohctbqvu\",\"tags\":{\"ujjugwdkcglh\":\"dndnvow\"},\"id\":\"lazjdyggdtjixhbk\",\"name\":\"ofqweykhmenevfye\",\"type\":\"fwhybcibvy\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"maximumConcurrency\":301752241,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"nnaamdectehfiqsc\"},\"identity\":{\"principalId\":\"pvhez\",\"tenantId\":\"gqhcjrefovg\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"rcczsqpjhvmd\":{\"clientId\":\"eyyvxyqjpkcat\",\"principalId\":\"ngj\"}}},\"location\":\"v\",\"tags\":{\"eupfhyhltrpm\":\"ounqecano\",\"odsfcpkvxodpuozm\":\"pjmcmatuokthfuiu\",\"ktwh\":\"zydagfuaxbezyiuo\",\"o\":\"dxwzywqsmbsurexi\"},\"id\":\"yocf\",\"name\":\"fksymddystki\",\"type\":\"uxh\"}],\"nextLink\":\"udxorrqn\"}")
.toObject(PoolListResult.class);
- Assertions.assertEquals("rzayv", model.value().get(0).location());
- Assertions.assertEquals("gvdfgiotkftutq", model.value().get(0).tags().get("ln"));
- Assertions.assertEquals(ProvisioningState.DELETING, model.value().get(0).properties().provisioningState());
- Assertions.assertEquals(1519639894, model.value().get(0).properties().maximumConcurrency());
- Assertions.assertEquals("jthjqkwpyei", model.value().get(0).properties().devCenterProjectResourceId());
+ Assertions.assertEquals("yd", model.value().get(0).location());
+ Assertions.assertEquals("mjthjqkwp", model.value().get(0).tags().get("eicxmqciwqvhkhi"));
+ Assertions.assertEquals(ProvisioningState.FAILED, model.value().get(0).properties().provisioningState());
+ Assertions.assertEquals(137439916, model.value().get(0).properties().maximumConcurrency());
+ Assertions.assertEquals("ejctbzaqsqsycb", model.value().get(0).properties().devCenterProjectResourceId());
Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type());
- Assertions.assertEquals("hsauuimjmvxied", model.nextLink());
+ Assertions.assertEquals("udxorrqn", model.nextLink());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdatePropertiesTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdatePropertiesTests.java
index 21015d0f3dbb..6506cdc29f1e 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdatePropertiesTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdatePropertiesTests.java
@@ -18,25 +18,25 @@ public final class PoolUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PoolUpdateProperties model = BinaryData.fromString(
- "{\"provisioningState\":\"Deleting\",\"maximumConcurrency\":648028383,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"twnpzaoqvuhrhcf\"}")
+ "{\"provisioningState\":\"Accepted\",\"maximumConcurrency\":1867037750,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"vdjwzrlovm\"}")
.toObject(PoolUpdateProperties.class);
- Assertions.assertEquals(ProvisioningState.DELETING, model.provisioningState());
- Assertions.assertEquals(648028383, model.maximumConcurrency());
- Assertions.assertEquals("twnpzaoqvuhrhcf", model.devCenterProjectResourceId());
+ Assertions.assertEquals(ProvisioningState.ACCEPTED, model.provisioningState());
+ Assertions.assertEquals(1867037750, model.maximumConcurrency());
+ Assertions.assertEquals("vdjwzrlovm", model.devCenterProjectResourceId());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PoolUpdateProperties model = new PoolUpdateProperties().withProvisioningState(ProvisioningState.DELETING)
- .withMaximumConcurrency(648028383)
+ PoolUpdateProperties model = new PoolUpdateProperties().withProvisioningState(ProvisioningState.ACCEPTED)
+ .withMaximumConcurrency(1867037750)
.withOrganizationProfile(new OrganizationProfile())
.withAgentProfile(new AgentProfile().withResourcePredictions(new ResourcePredictions())
.withResourcePredictionsProfile(new ResourcePredictionsProfile()))
.withFabricProfile(new FabricProfile())
- .withDevCenterProjectResourceId("twnpzaoqvuhrhcf");
+ .withDevCenterProjectResourceId("vdjwzrlovm");
model = BinaryData.fromObject(model).toObject(PoolUpdateProperties.class);
- Assertions.assertEquals(ProvisioningState.DELETING, model.provisioningState());
- Assertions.assertEquals(648028383, model.maximumConcurrency());
- Assertions.assertEquals("twnpzaoqvuhrhcf", model.devCenterProjectResourceId());
+ Assertions.assertEquals(ProvisioningState.ACCEPTED, model.provisioningState());
+ Assertions.assertEquals(1867037750, model.maximumConcurrency());
+ Assertions.assertEquals("vdjwzrlovm", model.devCenterProjectResourceId());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdateTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdateTests.java
index 3fc222c06d2c..71f219fcebde 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdateTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolUpdateTests.java
@@ -24,39 +24,36 @@ public final class PoolUpdateTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PoolUpdate model = BinaryData.fromString(
- "{\"identity\":{\"principalId\":\"yip\",\"tenantId\":\"sqwpgrjb\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"shurzafbljjgpbto\":{\"principalId\":\"jxvsnbyxqabn\",\"clientId\":\"cpc\"},\"kudjkrlkhb\":{\"principalId\":\"jmkljavbqidtqajz\",\"clientId\":\"l\"},\"scpai\":{\"principalId\":\"fepgzgq\",\"clientId\":\"zloc\"},\"onpimexgstxg\":{\"principalId\":\"hhbcsglummajtjao\",\"clientId\":\"obnbdxkqpxokaj\"}}},\"tags\":{\"aajrm\":\"dg\",\"clwhijcoejctbz\":\"djwzrlov\",\"bkbfkgukdkex\":\"qsqsy\",\"ocjjxhvpmouexh\":\"ppofmxaxcfjpgdd\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1730783579,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"bzv\"}}")
+ "{\"identity\":{\"principalId\":\"rcjxvsnbyxqabn\",\"tenantId\":\"cpc\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"pbtoqcjmkl\":{\"clientId\":\"zafb\",\"principalId\":\"j\"},\"kudjkrlkhb\":{\"clientId\":\"vbqid\",\"principalId\":\"ajzyul\"}}},\"tags\":{\"ocxscpaierhhbcs\":\"epgzgqexz\",\"mmajtjaodx\":\"l\"},\"properties\":{\"provisioningState\":\"Canceled\",\"maximumConcurrency\":1399700283,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ajionpimexgstxg\"}}")
.toObject(PoolUpdate.class);
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("dg", model.tags().get("aajrm"));
- Assertions.assertEquals(ProvisioningState.SUCCEEDED, model.properties().provisioningState());
- Assertions.assertEquals(1730783579, model.properties().maximumConcurrency());
- Assertions.assertEquals("bzv", model.properties().devCenterProjectResourceId());
+ Assertions.assertEquals("epgzgqexz", model.tags().get("ocxscpaierhhbcs"));
+ Assertions.assertEquals(ProvisioningState.CANCELED, model.properties().provisioningState());
+ Assertions.assertEquals(1399700283, model.properties().maximumConcurrency());
+ Assertions.assertEquals("ajionpimexgstxg", model.properties().devCenterProjectResourceId());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PoolUpdate model
- = new PoolUpdate()
- .withIdentity(
- new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf("shurzafbljjgpbto", new UserAssignedIdentity(), "kudjkrlkhb",
- new UserAssignedIdentity(), "scpai", new UserAssignedIdentity(), "onpimexgstxg",
- new UserAssignedIdentity())))
- .withTags(mapOf("aajrm", "dg", "clwhijcoejctbz", "djwzrlov", "bkbfkgukdkex", "qsqsy", "ocjjxhvpmouexh",
- "ppofmxaxcfjpgdd"))
- .withProperties(new PoolUpdateProperties().withProvisioningState(ProvisioningState.SUCCEEDED)
- .withMaximumConcurrency(1730783579)
- .withOrganizationProfile(new OrganizationProfile())
- .withAgentProfile(new AgentProfile().withResourcePredictions(new ResourcePredictions())
- .withResourcePredictionsProfile(new ResourcePredictionsProfile()))
- .withFabricProfile(new FabricProfile())
- .withDevCenterProjectResourceId("bzv"));
+ PoolUpdate model = new PoolUpdate()
+ .withIdentity(
+ new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf("pbtoqcjmkl", new UserAssignedIdentity(), "kudjkrlkhb", new UserAssignedIdentity())))
+ .withTags(mapOf("ocxscpaierhhbcs", "epgzgqexz", "mmajtjaodx", "l"))
+ .withProperties(new PoolUpdateProperties().withProvisioningState(ProvisioningState.CANCELED)
+ .withMaximumConcurrency(1399700283)
+ .withOrganizationProfile(new OrganizationProfile())
+ .withAgentProfile(new AgentProfile().withResourcePredictions(new ResourcePredictions())
+ .withResourcePredictionsProfile(new ResourcePredictionsProfile()))
+ .withFabricProfile(new FabricProfile())
+ .withDevCenterProjectResourceId("ajionpimexgstxg"));
model = BinaryData.fromObject(model).toObject(PoolUpdate.class);
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("dg", model.tags().get("aajrm"));
- Assertions.assertEquals(ProvisioningState.SUCCEEDED, model.properties().provisioningState());
- Assertions.assertEquals(1730783579, model.properties().maximumConcurrency());
- Assertions.assertEquals("bzv", model.properties().devCenterProjectResourceId());
+ Assertions.assertEquals("epgzgqexz", model.tags().get("ocxscpaierhhbcs"));
+ Assertions.assertEquals(ProvisioningState.CANCELED, model.properties().provisioningState());
+ Assertions.assertEquals(1399700283, model.properties().maximumConcurrency());
+ Assertions.assertEquals("ajionpimexgstxg", model.properties().devCenterProjectResourceId());
}
// Use "Map.of" if available
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilityWithResponseMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilityWithResponseMockTests.java
new file mode 100644
index 000000000000..2f2270e549d1
--- /dev/null
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCheckNameAvailabilityWithResponseMockTests.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.devopsinfrastructure.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
+import com.azure.resourcemanager.devopsinfrastructure.models.AvailabilityStatus;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailability;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityReason;
+import com.azure.resourcemanager.devopsinfrastructure.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.devopsinfrastructure.models.DevOpsInfrastructureResourceType;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class PoolsCheckNameAvailabilityWithResponseMockTests {
+ @Test
+ public void testCheckNameAvailabilityWithResponse() throws Exception {
+ String responseStr
+ = "{\"available\":\"Available\",\"message\":\"jlfltkacjvefkdlf\",\"name\":\"akggkfpag\",\"reason\":\"Invalid\"}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ CheckNameAvailabilityResult response = manager.pools()
+ .checkNameAvailabilityWithResponse(
+ new CheckNameAvailability().withName("odtji")
+ .withType(DevOpsInfrastructureResourceType.MICROSOFT_DEV_OPS_INFRASTRUCTURE_POOLS),
+ com.azure.core.util.Context.NONE)
+ .getValue();
+
+ Assertions.assertEquals(AvailabilityStatus.AVAILABLE, response.available());
+ Assertions.assertEquals("jlfltkacjvefkdlf", response.message());
+ Assertions.assertEquals("akggkfpag", response.name());
+ Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason());
+ }
+}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java
index 4fe1bb9ef244..cdc30eab94e0 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.AgentProfile;
@@ -33,40 +33,42 @@ public final class PoolsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":665760554,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"anvx\"},\"identity\":{\"principalId\":\"vudutncor\",\"tenantId\":\"lxqtvcofudfl\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"sgsahmkycgr\":{\"principalId\":\"bgdknnqv\",\"clientId\":\"znqntoru\"}}},\"location\":\"wjue\",\"tags\":{\"ovsm\":\"buruvd\",\"wabm\":\"l\"},\"id\":\"oefki\",\"name\":\"rvtp\",\"type\":\"qujmqlgkf\"}";
+ = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":125087632,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"zkoj\"},\"identity\":{\"principalId\":\"pzfoqoui\",\"tenantId\":\"bxarzgszufoxci\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"gokdwbwhks\":{\"clientId\":\"oamciodh\",\"principalId\":\"azxkhnzbonlwnto\"},\"gsfraoyzkoow\":{\"clientId\":\"cmrvexzt\",\"principalId\":\"t\"},\"ykutwpf\":{\"clientId\":\"mnguxawqaldsyu\",\"principalId\":\"imerqfobwyznk\"},\"doakgtdlmkkzevdl\":{\"clientId\":\"a\",\"principalId\":\"hrskdsnfd\"}}},\"location\":\"wpusdsttwvogv\",\"tags\":{\"akufgmjz\":\"jdcngqqm\",\"grtwae\":\"wr\",\"zkopb\":\"u\",\"hziuiefozbhdms\":\"inrfdwoyu\"},\"id\":\"l\",\"name\":\"zqhof\",\"type\":\"rmaequ\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
Pool response
= manager.pools()
- .define("fw")
- .withRegion("fz")
- .withExistingResourceGroup("odtji")
- .withTags(mapOf("xzfe", "xxbuyq"))
- .withProperties(new PoolProperties().withProvisioningState(ProvisioningState.PROVISIONING)
- .withMaximumConcurrency(1139569570)
+ .define("pqblylsyxkqjnsj")
+ .withRegion("f")
+ .withExistingResourceGroup("wpu")
+ .withTags(mapOf("bgdknnqv", "gj", "sgsahmkycgr", "aznqntoru", "s", "uwjuetaeburuvdmo", "tpuqujmq",
+ "zlxwabmqoefkifr"))
+ .withProperties(new PoolProperties().withProvisioningState(ProvisioningState.ACCEPTED)
+ .withMaximumConcurrency(1868480291)
.withOrganizationProfile(new OrganizationProfile())
.withAgentProfile(new AgentProfile().withResourcePredictions(new ResourcePredictions())
.withResourcePredictionsProfile(new ResourcePredictionsProfile()))
.withFabricProfile(new FabricProfile())
- .withDevCenterProjectResourceId("cjvefkdlfo"))
+ .withDevCenterProjectResourceId("xsdszuempsb"))
.withIdentity(
- new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf("beyvpnqicvinvkjj", new UserAssignedIdentity(), "pofncck",
+ new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("fn", new UserAssignedIdentity(), "ppriol",
+ new UserAssignedIdentity(), "ucqdpfuvglsb", new UserAssignedIdentity(), "ncormrlxqtvcof",
new UserAssignedIdentity())))
.create();
- Assertions.assertEquals("wjue", response.location());
- Assertions.assertEquals("buruvd", response.tags().get("ovsm"));
+ Assertions.assertEquals("wpusdsttwvogv", response.location());
+ Assertions.assertEquals("jdcngqqm", response.tags().get("akufgmjz"));
Assertions.assertEquals(ProvisioningState.SUCCEEDED, response.properties().provisioningState());
- Assertions.assertEquals(665760554, response.properties().maximumConcurrency());
- Assertions.assertEquals("anvx", response.properties().devCenterProjectResourceId());
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type());
+ Assertions.assertEquals(125087632, response.properties().maximumConcurrency());
+ Assertions.assertEquals("zkoj", response.properties().devCenterProjectResourceId());
+ Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type());
}
// Use "Map.of" if available
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java
index cc1f3a7eb9d4..bf30c37e8926 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.ManagedServiceIdentityType;
@@ -23,14 +23,14 @@ public final class PoolsGetByResourceGroupWithResponseMockTests {
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1896138936,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ked\"},\"identity\":{\"principalId\":\"rwyhqmibzyhwitsm\",\"tenantId\":\"yynpcdpumnzgmwz\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"lwwrl\":{\"principalId\":\"knso\",\"clientId\":\"jhxbld\"},\"y\":{\"principalId\":\"m\",\"clientId\":\"cvokotllxdyhg\"},\"amqgxqquezikyw\":{\"principalId\":\"ogjltdtbnnhad\",\"clientId\":\"crkvcikhnv\"},\"cjzkzivgvvcna\":{\"principalId\":\"xkalla\",\"clientId\":\"elwuipi\"}}},\"location\":\"hyrnxxmu\",\"tags\":{\"tchealmf\":\"ndrdvstkwq\",\"iohgwxrtfud\":\"tdaaygdvwvg\",\"mnpkukghimdblxg\":\"epxgyqagvr\",\"mszkkfo\":\"imfnjhfjx\"},\"id\":\"rey\",\"name\":\"kzikfjawneaivxwc\",\"type\":\"elpcirelsfeaenwa\"}";
+ = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1896138936,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ked\"},\"identity\":{\"principalId\":\"rwyhqmibzyhwitsm\",\"tenantId\":\"yynpcdpumnzgmwz\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"lwwrl\":{\"clientId\":\"knso\",\"principalId\":\"jhxbld\"},\"y\":{\"clientId\":\"m\",\"principalId\":\"cvokotllxdyhg\"},\"amqgxqquezikyw\":{\"clientId\":\"ogjltdtbnnhad\",\"principalId\":\"crkvcikhnv\"},\"cjzkzivgvvcna\":{\"clientId\":\"xkalla\",\"principalId\":\"elwuipi\"}}},\"location\":\"hyrnxxmu\",\"tags\":{\"tchealmf\":\"ndrdvstkwq\",\"iohgwxrtfud\":\"tdaaygdvwvg\",\"mnpkukghimdblxg\":\"epxgyqagvr\",\"mszkkfo\":\"imfnjhfjx\"},\"id\":\"rey\",\"name\":\"kzikfjawneaivxwc\",\"type\":\"elpcirelsfeaenwa\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
Pool response = manager.pools()
.getByResourceGroupWithResponse("rpzbchckqqzqi", "xiy", com.azure.core.util.Context.NONE)
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java
index 5f62f61adfda..73c9a07f6fc4 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.ManagedServiceIdentityType;
@@ -24,14 +24,14 @@ public final class PoolsListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"maximumConcurrency\":1025445351,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"aanozjosphyoulpj\"},\"identity\":{\"principalId\":\"ag\",\"tenantId\":\"vimjwos\",\"type\":\"None\",\"userAssignedIdentities\":{\"fjhdg\":{\"principalId\":\"cskfcktqumiekk\",\"clientId\":\"zikhl\"}}},\"location\":\"gebdunygaeq\",\"tags\":{\"a\":\"qfatpxllrxcyjm\",\"arm\":\"su\",\"rw\":\"wdmjsjqbjhhyx\",\"duhpk\":\"yc\"},\"id\":\"kgymareqnajxqug\",\"name\":\"hky\",\"type\":\"ubeddg\"}]}";
+ = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"maximumConcurrency\":1025445351,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"aanozjosphyoulpj\"},\"identity\":{\"principalId\":\"ag\",\"tenantId\":\"vimjwos\",\"type\":\"None\",\"userAssignedIdentities\":{\"fjhdg\":{\"clientId\":\"cskfcktqumiekk\",\"principalId\":\"zikhl\"}}},\"location\":\"gebdunygaeq\",\"tags\":{\"a\":\"qfatpxllrxcyjm\",\"arm\":\"su\",\"rw\":\"wdmjsjqbjhhyx\",\"duhpk\":\"yc\"},\"id\":\"kgymareqnajxqug\",\"name\":\"hky\",\"type\":\"ubeddg\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.pools().listByResourceGroup("fatkld", com.azure.core.util.Context.NONE);
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java
index 576db30da4f1..035e4ce1cf1e 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.ManagedServiceIdentityType;
@@ -24,14 +24,14 @@ public final class PoolsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"maximumConcurrency\":583924547,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"zqalkrmnjijpx\"},\"identity\":{\"principalId\":\"qudf\",\"tenantId\":\"yxbaaabjyvayf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wmewzsyy\":{\"principalId\":\"rtuzqogs\",\"clientId\":\"nevfdnw\"},\"frxtrthzvaytdwk\":{\"principalId\":\"uzsoi\",\"clientId\":\"ud\"},\"q\":{\"principalId\":\"rqubpaxhexiil\",\"clientId\":\"pdtii\"}}},\"location\":\"qoaxoruzfgs\",\"tags\":{\"tramxjez\":\"fxrxxle\",\"tdooaoj\":\"lwnwxuqlcvydyp\"},\"id\":\"niodkooeb\",\"name\":\"nuj\",\"type\":\"emmsbvdkc\"}]}";
+ = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"maximumConcurrency\":583924547,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"zqalkrmnjijpx\"},\"identity\":{\"principalId\":\"qudf\",\"tenantId\":\"yxbaaabjyvayf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wmewzsyy\":{\"clientId\":\"rtuzqogs\",\"principalId\":\"nevfdnw\"},\"frxtrthzvaytdwk\":{\"clientId\":\"uzsoi\",\"principalId\":\"ud\"},\"q\":{\"clientId\":\"rqubpaxhexiil\",\"principalId\":\"pdtii\"}}},\"location\":\"qoaxoruzfgs\",\"tags\":{\"tramxjez\":\"fxrxxle\",\"tdooaoj\":\"lwnwxuqlcvydyp\"},\"id\":\"niodkooeb\",\"name\":\"nuj\",\"type\":\"emmsbvdkc\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.pools().list(com.azure.core.util.Context.NONE);
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java
index 83c20826aa7f..9086f42b0e0b 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.ResourceDetailsObject;
@@ -23,20 +23,20 @@ public final class ResourceDetailsListByPoolMockTests {
@Test
public void testListByPool() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"status\":\"NotReady\",\"image\":\"ezkojvdcp\",\"imageVersion\":\"foqouicybx\"},\"id\":\"zg\",\"name\":\"zuf\",\"type\":\"x\"}]}";
+ = "{\"value\":[{\"properties\":{\"status\":\"PendingReturn\",\"image\":\"yylhalnswhccsp\",\"imageVersion\":\"kaivwit\"},\"id\":\"cywuggwol\",\"name\":\"h\",\"type\":\"zbwemh\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response
- = manager.resourceDetails().listByPool("tndoaongbjc", "tujitcjedft", com.azure.core.util.Context.NONE);
+ = manager.resourceDetails().listByPool("ah", "icslfaoq", com.azure.core.util.Context.NONE);
- Assertions.assertEquals(ResourceStatus.NOT_READY, response.iterator().next().properties().status());
- Assertions.assertEquals("ezkojvdcp", response.iterator().next().properties().image());
- Assertions.assertEquals("foqouicybx", response.iterator().next().properties().imageVersion());
+ Assertions.assertEquals(ResourceStatus.PENDING_RETURN, response.iterator().next().properties().status());
+ Assertions.assertEquals("yylhalnswhccsp", response.iterator().next().properties().image());
+ Assertions.assertEquals("kaivwit", response.iterator().next().properties().imageVersion());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsObjectListResultTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsObjectListResultTests.java
index ab2698b8f34e..03fb8b51f0af 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsObjectListResultTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsObjectListResultTests.java
@@ -13,11 +13,11 @@ public final class ResourceDetailsObjectListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ResourceDetailsObjectListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"status\":\"Leased\",\"image\":\"dyjrrfbyaosv\",\"imageVersion\":\"xc\"},\"id\":\"npc\",\"name\":\"hocohslkev\",\"type\":\"eggzfb\"},{\"properties\":{\"status\":\"Updating\",\"image\":\"mvfaxkffeiith\",\"imageVersion\":\"vmezy\"},\"id\":\"hxmzsbbzoggig\",\"name\":\"xwburvjxxjns\",\"type\":\"ydptkoen\"}],\"nextLink\":\"uknvudwti\"}")
+ "{\"value\":[{\"properties\":{\"status\":\"PendingReturn\",\"image\":\"uwiqzb\",\"imageVersion\":\"j\"},\"id\":\"ovm\",\"name\":\"okacspk\",\"type\":\"lhzdobp\"},{\"properties\":{\"status\":\"Allocated\",\"image\":\"flbvvnchrkcciwwz\",\"imageVersion\":\"uqkhrsajiwku\"},\"id\":\"oskg\",\"name\":\"sauuimj\",\"type\":\"vxieduugidyj\"},{\"properties\":{\"status\":\"Returned\",\"image\":\"byao\",\"imageVersion\":\"v\"},\"id\":\"csonpclhoco\",\"name\":\"slkevle\",\"type\":\"gz\"},{\"properties\":{\"status\":\"Returned\",\"image\":\"hfmvfaxkffe\",\"imageVersion\":\"ithlvmezyvshxm\"},\"id\":\"bbzoggig\",\"name\":\"xwburvjxxjns\",\"type\":\"ydptkoen\"}],\"nextLink\":\"uknvudwti\"}")
.toObject(ResourceDetailsObjectListResult.class);
- Assertions.assertEquals(ResourceStatus.LEASED, model.value().get(0).properties().status());
- Assertions.assertEquals("dyjrrfbyaosv", model.value().get(0).properties().image());
- Assertions.assertEquals("xc", model.value().get(0).properties().imageVersion());
+ Assertions.assertEquals(ResourceStatus.PENDING_RETURN, model.value().get(0).properties().status());
+ Assertions.assertEquals("uwiqzb", model.value().get(0).properties().image());
+ Assertions.assertEquals("j", model.value().get(0).properties().imageVersion());
Assertions.assertEquals("uknvudwti", model.nextLink());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StatefulTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StatefulTests.java
index 1ef07a53b540..ee0e28eabd5c 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StatefulTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StatefulTests.java
@@ -14,20 +14,20 @@ public final class StatefulTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
Stateful model = BinaryData.fromString(
- "{\"kind\":\"Stateful\",\"maxAgentLifetime\":\"mgxsab\",\"gracePeriodTimeSpan\":\"qduujitcjczdz\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}}")
+ "{\"kind\":\"Stateful\",\"maxAgentLifetime\":\"lljfmppeeb\",\"gracePeriodTimeSpan\":\"gxsabkyq\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}}")
.toObject(Stateful.class);
- Assertions.assertEquals("mgxsab", model.maxAgentLifetime());
- Assertions.assertEquals("qduujitcjczdz", model.gracePeriodTimeSpan());
+ Assertions.assertEquals("lljfmppeeb", model.maxAgentLifetime());
+ Assertions.assertEquals("gxsabkyq", model.gracePeriodTimeSpan());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
Stateful model = new Stateful().withResourcePredictions(new ResourcePredictions())
.withResourcePredictionsProfile(new ResourcePredictionsProfile())
- .withMaxAgentLifetime("mgxsab")
- .withGracePeriodTimeSpan("qduujitcjczdz");
+ .withMaxAgentLifetime("lljfmppeeb")
+ .withGracePeriodTimeSpan("gxsabkyq");
model = BinaryData.fromObject(model).toObject(Stateful.class);
- Assertions.assertEquals("mgxsab", model.maxAgentLifetime());
- Assertions.assertEquals("qduujitcjczdz", model.gracePeriodTimeSpan());
+ Assertions.assertEquals("lljfmppeeb", model.maxAgentLifetime());
+ Assertions.assertEquals("gxsabkyq", model.gracePeriodTimeSpan());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StorageProfileTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StorageProfileTests.java
index b82bfe639401..20e20cde6270 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StorageProfileTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/StorageProfileTests.java
@@ -17,27 +17,40 @@ public final class StorageProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StorageProfile model = BinaryData.fromString(
- "{\"osDiskStorageAccountType\":\"StandardSSD\",\"dataDisks\":[{\"caching\":\"None\",\"diskSizeGiB\":103063252,\"storageAccountType\":\"StandardSSD_LRS\",\"driveLetter\":\"zw\"}]}")
+ "{\"osDiskStorageAccountType\":\"StandardSSD\",\"dataDisks\":[{\"caching\":\"ReadWrite\",\"diskSizeGiB\":1500151010,\"storageAccountType\":\"StandardSSD_ZRS\",\"driveLetter\":\"bvpyss\"},{\"caching\":\"ReadWrite\",\"diskSizeGiB\":315783866,\"storageAccountType\":\"Standard_LRS\",\"driveLetter\":\"uhmuouqfprwzwbn\"},{\"caching\":\"ReadOnly\",\"diskSizeGiB\":1015054859,\"storageAccountType\":\"StandardSSD_ZRS\",\"driveLetter\":\"zga\"},{\"caching\":\"ReadOnly\",\"diskSizeGiB\":2117984998,\"storageAccountType\":\"Premium_LRS\",\"driveLetter\":\"kyfi\"}]}")
.toObject(StorageProfile.class);
Assertions.assertEquals(OsDiskStorageAccountType.STANDARD_SSD, model.osDiskStorageAccountType());
- Assertions.assertEquals(CachingType.NONE, model.dataDisks().get(0).caching());
- Assertions.assertEquals(103063252, model.dataDisks().get(0).diskSizeGiB());
- Assertions.assertEquals(StorageAccountType.STANDARD_SSDLRS, model.dataDisks().get(0).storageAccountType());
- Assertions.assertEquals("zw", model.dataDisks().get(0).driveLetter());
+ Assertions.assertEquals(CachingType.READ_WRITE, model.dataDisks().get(0).caching());
+ Assertions.assertEquals(1500151010, model.dataDisks().get(0).diskSizeGiB());
+ Assertions.assertEquals(StorageAccountType.STANDARD_SSDZRS, model.dataDisks().get(0).storageAccountType());
+ Assertions.assertEquals("bvpyss", model.dataDisks().get(0).driveLetter());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
StorageProfile model = new StorageProfile().withOsDiskStorageAccountType(OsDiskStorageAccountType.STANDARD_SSD)
- .withDataDisks(Arrays.asList(new DataDisk().withCaching(CachingType.NONE)
- .withDiskSizeGiB(103063252)
- .withStorageAccountType(StorageAccountType.STANDARD_SSDLRS)
- .withDriveLetter("zw")));
+ .withDataDisks(Arrays.asList(
+ new DataDisk().withCaching(CachingType.READ_WRITE)
+ .withDiskSizeGiB(1500151010)
+ .withStorageAccountType(StorageAccountType.STANDARD_SSDZRS)
+ .withDriveLetter("bvpyss"),
+ new DataDisk().withCaching(CachingType.READ_WRITE)
+ .withDiskSizeGiB(315783866)
+ .withStorageAccountType(StorageAccountType.STANDARD_LRS)
+ .withDriveLetter("uhmuouqfprwzwbn"),
+ new DataDisk().withCaching(CachingType.READ_ONLY)
+ .withDiskSizeGiB(1015054859)
+ .withStorageAccountType(StorageAccountType.STANDARD_SSDZRS)
+ .withDriveLetter("zga"),
+ new DataDisk().withCaching(CachingType.READ_ONLY)
+ .withDiskSizeGiB(2117984998)
+ .withStorageAccountType(StorageAccountType.PREMIUM_LRS)
+ .withDriveLetter("kyfi")));
model = BinaryData.fromObject(model).toObject(StorageProfile.class);
Assertions.assertEquals(OsDiskStorageAccountType.STANDARD_SSD, model.osDiskStorageAccountType());
- Assertions.assertEquals(CachingType.NONE, model.dataDisks().get(0).caching());
- Assertions.assertEquals(103063252, model.dataDisks().get(0).diskSizeGiB());
- Assertions.assertEquals(StorageAccountType.STANDARD_SSDLRS, model.dataDisks().get(0).storageAccountType());
- Assertions.assertEquals("zw", model.dataDisks().get(0).driveLetter());
+ Assertions.assertEquals(CachingType.READ_WRITE, model.dataDisks().get(0).caching());
+ Assertions.assertEquals(1500151010, model.dataDisks().get(0).diskSizeGiB());
+ Assertions.assertEquals(StorageAccountType.STANDARD_SSDZRS, model.dataDisks().get(0).storageAccountType());
+ Assertions.assertEquals("bvpyss", model.dataDisks().get(0).driveLetter());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java
index d76c1de89540..38fc2e35cf54 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.devopsinfrastructure.DevOpsInfrastructureManager;
import com.azure.resourcemanager.devopsinfrastructure.models.Quota;
@@ -22,21 +22,20 @@ public final class SubscriptionUsagesUsagesMockTests {
@Test
public void testUsages() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":{\"value\":\"pqvujzraehtwdwrf\",\"localizedValue\":\"wib\"},\"id\":\"rcdlbhshfwpr\",\"unit\":\"cstwity\",\"currentValue\":8379172457270737030,\"limit\":8273553934247347579}]}";
+ = "{\"value\":[{\"name\":{\"value\":\"as\",\"localizedValue\":\"haq\"},\"id\":\"x\",\"unit\":\"smwutwbdsrezpd\",\"currentValue\":2068926764971195558,\"limit\":8369778199853622616}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
DevOpsInfrastructureManager manager = DevOpsInfrastructureManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- PagedIterable response
- = manager.subscriptionUsages().usages("xgfpelolppv", com.azure.core.util.Context.NONE);
+ PagedIterable response = manager.subscriptionUsages().usages("vm", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("rcdlbhshfwpr", response.iterator().next().id());
- Assertions.assertEquals("cstwity", response.iterator().next().unit());
- Assertions.assertEquals(8379172457270737030L, response.iterator().next().currentValue());
- Assertions.assertEquals(8273553934247347579L, response.iterator().next().limit());
+ Assertions.assertEquals("x", response.iterator().next().id());
+ Assertions.assertEquals("smwutwbdsrezpd", response.iterator().next().unit());
+ Assertions.assertEquals(2068926764971195558L, response.iterator().next().currentValue());
+ Assertions.assertEquals(8369778199853622616L, response.iterator().next().limit());
}
}
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/UserAssignedIdentityTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/UserAssignedIdentityTests.java
index 13a6258b2b59..6b62e1150f2d 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/UserAssignedIdentityTests.java
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/UserAssignedIdentityTests.java
@@ -10,8 +10,9 @@
public final class UserAssignedIdentityTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"qxhcrmn\",\"clientId\":\"jtckwhdso\"}")
- .toObject(UserAssignedIdentity.class);
+ UserAssignedIdentity model
+ = BinaryData.fromString("{\"clientId\":\"whdsoifiyip\",\"principalId\":\"sqwpgrjb\"}")
+ .toObject(UserAssignedIdentity.class);
}
@org.junit.jupiter.api.Test
diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml
index f9f0d1fcbfd2..78d3af3f4173 100644
--- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml
+++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management
-commit: 19c009c9da2e73ac60ad55c79989d88e447ecb7f
+commit: a4f57d6542679fa11866345756f9251b51394353
repo: Azure/azure-rest-api-specs
additionalDirectories: