diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/CHANGELOG.md b/sdk/dashboard/azure-resourcemanager-dashboard/CHANGELOG.md index a5925644ec14..d4f7ecc90f13 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/CHANGELOG.md +++ b/sdk/dashboard/azure-resourcemanager-dashboard/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 1.2.0-beta.2 (Unreleased) +## 1.2.0-beta.2 (2025-07-21) -### Features Added - -### Breaking Changes +- Azure Resource Manager Dashboard client library for Java. This package contains Microsoft Azure SDK for Dashboard Management SDK. The Microsoft.Dashboard Rest API spec. Package api-version 2024-11-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Bugs Fixed -### Other Changes +- Fixed bug on update of `ManagedGrafana`. ## 1.2.0-beta.1 (2025-07-14) diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/README.md b/sdk/dashboard/azure-resourcemanager-dashboard/README.md index cc2e029d2e92..4316fff37270 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/README.md +++ b/sdk/dashboard/azure-resourcemanager-dashboard/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-dashboard - 1.2.0-beta.1 + 1.2.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -73,8 +73,8 @@ See [API design][design] for general introduction on design and key concepts on ```java grafana = dashboardManager.grafanas() .define(grafanaName) - .withRegion(REGION) .withExistingResourceGroup(resourceGroupName) + .withRegion(REGION) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) .create(); ``` diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/SAMPLE.md b/sdk/dashboard/azure-resourcemanager-dashboard/SAMPLE.md index fcc13dd7f72b..adc9d088a4e0 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/SAMPLE.md +++ b/sdk/dashboard/azure-resourcemanager-dashboard/SAMPLE.md @@ -117,10 +117,9 @@ public final class GrafanaCreateSamples { public static void grafanaCreate(com.azure.resourcemanager.dashboard.DashboardManager manager) { manager.grafanas() .define("myWorkspace") - .withRegion("West US") .withExistingResourceGroup("myResourceGroup") + .withRegion("West US") .withTags(mapOf("Environment", "Dev")) - .withSku(new ResourceSku().withName("Standard")) .withProperties(new ManagedGrafanaProperties().withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withZoneRedundancy(ZoneRedundancy.ENABLED) .withApiKey(ApiKey.ENABLED) @@ -145,6 +144,7 @@ public final class GrafanaCreateSamples { .withUnifiedAlertingScreenshots(new UnifiedAlertingScreenshots().withCaptureEnabled(false))) .withGrafanaPlugins(mapOf("sample-plugin-id", new GrafanaPlugin())) .withGrafanaMajorVersion("9")) + .withSku(new ResourceSku().withName("Standard")) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) .create(); } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/GrafanasClient.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/GrafanasClient.java index 0b13fd8113ca..1e5c8865b298 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/GrafanasClient.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/GrafanasClient.java @@ -114,6 +114,21 @@ ManagedGrafanaInner create(String resourceGroupName, String workspaceName, ManagedGrafanaInner create(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters, Context context); + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the grafana resource type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedGrafanaInner> beginUpdate(String resourceGroupName, + String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters); + /** * Update a workspace for Grafana resource. * @@ -124,11 +139,11 @@ ManagedGrafanaInner create(String resourceGroupName, String workspaceName, * @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 grafana resource type along with {@link Response}. + * @return the {@link SyncPoller} for polling of the grafana resource type. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String workspaceName, - ManagedGrafanaUpdateParameters requestBodyParameters, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedGrafanaInner> beginUpdate(String resourceGroupName, + String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters, Context context); /** * Update a workspace for Grafana resource. @@ -145,6 +160,22 @@ Response updateWithResponse(String resourceGroupName, Strin ManagedGrafanaInner update(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters); + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @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 grafana resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedGrafanaInner update(String resourceGroupName, String workspaceName, + ManagedGrafanaUpdateParameters requestBodyParameters, Context context); + /** * Delete a workspace for Grafana resource. * diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/models/ManagedGrafanaInner.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/models/ManagedGrafanaInner.java index c9f66e741b14..60b8b050c0df 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/models/ManagedGrafanaInner.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/fluent/models/ManagedGrafanaInner.java @@ -5,7 +5,7 @@ package com.azure.resourcemanager.dashboard.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; +import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -20,16 +20,26 @@ * The grafana resource type. */ @Fluent -public final class ManagedGrafanaInner extends Resource { +public final class ManagedGrafanaInner extends ProxyResource { + /* + * Properties specific to the grafana resource. + */ + private ManagedGrafanaProperties properties; + /* * The Sku of the grafana resource. */ private ResourceSku sku; /* - * Properties specific to the grafana resource. + * Resource tags. */ - private ManagedGrafanaProperties properties; + private Map tags; + + /* + * The geo-location where the resource lives + */ + private String location; /* * The managed service identities assigned to this resource. @@ -62,6 +72,26 @@ public final class ManagedGrafanaInner extends Resource { public ManagedGrafanaInner() { } + /** + * Get the properties property: Properties specific to the grafana resource. + * + * @return the properties value. + */ + public ManagedGrafanaProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties specific to the grafana resource. + * + * @param properties the properties value to set. + * @return the ManagedGrafanaInner object itself. + */ + public ManagedGrafanaInner withProperties(ManagedGrafanaProperties properties) { + this.properties = properties; + return this; + } + /** * Get the sku property: The Sku of the grafana resource. * @@ -83,22 +113,42 @@ public ManagedGrafanaInner withSku(ResourceSku sku) { } /** - * Get the properties property: Properties specific to the grafana resource. + * Get the tags property: Resource tags. * - * @return the properties value. + * @return the tags value. */ - public ManagedGrafanaProperties properties() { - return this.properties; + public Map tags() { + return this.tags; } /** - * Set the properties property: Properties specific to the grafana resource. + * Set the tags property: Resource tags. * - * @param properties the properties value to set. + * @param tags the tags value to set. * @return the ManagedGrafanaInner object itself. */ - public ManagedGrafanaInner withProperties(ManagedGrafanaProperties properties) { - this.properties = properties; + public ManagedGrafanaInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: The geo-location where the resource lives. + * + * @param location the location value to set. + * @return the ManagedGrafanaInner object itself. + */ + public ManagedGrafanaInner withLocation(String location) { + this.location = location; return this; } @@ -161,36 +211,18 @@ public String id() { return this.id; } - /** - * {@inheritDoc} - */ - @Override - public ManagedGrafanaInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ManagedGrafanaInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (sku() != null) { - sku().validate(); - } if (properties() != null) { properties().validate(); } + if (sku() != null) { + sku().validate(); + } if (identity() != null) { identity().validate(); } @@ -202,10 +234,10 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("location", this.location); jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); } @@ -232,15 +264,15 @@ public static ManagedGrafanaInner fromJson(JsonReader jsonReader) throws IOExcep deserializedManagedGrafanaInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedManagedGrafanaInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedManagedGrafanaInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedManagedGrafanaInner.withTags(tags); - } else if ("sku".equals(fieldName)) { - deserializedManagedGrafanaInner.sku = ResourceSku.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedManagedGrafanaInner.properties = ManagedGrafanaProperties.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedManagedGrafanaInner.sku = ResourceSku.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedManagedGrafanaInner.tags = tags; + } else if ("location".equals(fieldName)) { + deserializedManagedGrafanaInner.location = reader.getString(); } else if ("identity".equals(fieldName)) { deserializedManagedGrafanaInner.identity = ManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/GrafanasClientImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/GrafanasClientImpl.java index e8dcecb8ea58..b0bdd52573f5 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/GrafanasClientImpl.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/GrafanasClientImpl.java @@ -115,7 +115,7 @@ Response createSync(@HostParam("endpoint") String endpoint, @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @@ -124,7 +124,7 @@ Mono> update(@HostParam("endpoint") String endpoin @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, + Response updateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @@ -626,7 +626,7 @@ public ManagedGrafanaInner create(String resourceGroupName, String workspaceName * @return the grafana resource type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -667,13 +667,40 @@ private Mono> updateWithResponseAsync(String resou * @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 grafana resource type on successful completion of {@link Mono}. + * @return the grafana resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, + private Response updateWithResponse(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) { - return updateWithResponseAsync(resourceGroupName, workspaceName, requestBodyParameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (requestBodyParameters == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter requestBodyParameters is required and cannot be null.")); + } else { + requestBodyParameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, + requestBodyParameters, Context.NONE); } /** @@ -689,7 +716,7 @@ private Mono updateAsync(String resourceGroupName, String w * @return the grafana resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String workspaceName, + private Response updateWithResponse(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() @@ -722,6 +749,84 @@ public Response updateWithResponse(String resourceGroupName requestBodyParameters, context); } + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the grafana resource type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ManagedGrafanaInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, requestBodyParameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedGrafanaInner.class, ManagedGrafanaInner.class, this.client.getContext()); + } + + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the grafana resource type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedGrafanaInner> beginUpdate(String resourceGroupName, + String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) { + Response response = updateWithResponse(resourceGroupName, workspaceName, requestBodyParameters); + return this.client.getLroResult(response, ManagedGrafanaInner.class, + ManagedGrafanaInner.class, Context.NONE); + } + + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the grafana resource type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedGrafanaInner> beginUpdate(String resourceGroupName, + String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters, Context context) { + Response response + = updateWithResponse(resourceGroupName, workspaceName, requestBodyParameters, context); + return this.client.getLroResult(response, ManagedGrafanaInner.class, + ManagedGrafanaInner.class, context); + } + + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @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 grafana resource type on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String workspaceName, + ManagedGrafanaUpdateParameters requestBodyParameters) { + return beginUpdateAsync(resourceGroupName, workspaceName, requestBodyParameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Update a workspace for Grafana resource. * @@ -736,7 +841,25 @@ public Response updateWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public ManagedGrafanaInner update(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) { - return updateWithResponse(resourceGroupName, workspaceName, requestBodyParameters, Context.NONE).getValue(); + return beginUpdate(resourceGroupName, workspaceName, requestBodyParameters).getFinalResult(); + } + + /** + * Update a workspace for Grafana resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The workspace name of Azure Managed Grafana. + * @param requestBodyParameters The requestBodyParameters parameter. + * @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 grafana resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedGrafanaInner update(String resourceGroupName, String workspaceName, + ManagedGrafanaUpdateParameters requestBodyParameters, Context context) { + return beginUpdate(resourceGroupName, workspaceName, requestBodyParameters, context).getFinalResult(); } /** diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedGrafanaImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedGrafanaImpl.java index 70a6d6395f7c..36857d4e0c4f 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedGrafanaImpl.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedGrafanaImpl.java @@ -37,8 +37,12 @@ public String type() { return this.innerModel().type(); } - public String location() { - return this.innerModel().location(); + public ManagedGrafanaProperties properties() { + return this.innerModel().properties(); + } + + public ResourceSku sku() { + return this.innerModel().sku(); } public Map tags() { @@ -50,12 +54,8 @@ public Map tags() { } } - public ResourceSku sku() { - return this.innerModel().sku(); - } - - public ManagedGrafanaProperties properties() { - return this.innerModel().properties(); + public String location() { + return this.innerModel().location(); } public ManagedServiceIdentity identity() { @@ -125,16 +125,14 @@ public ManagedGrafanaImpl update() { public ManagedGrafana apply() { this.innerObject = serviceManager.serviceClient() .getGrafanas() - .updateWithResponse(resourceGroupName, workspaceName, updateRequestBodyParameters, Context.NONE) - .getValue(); + .update(resourceGroupName, workspaceName, updateRequestBodyParameters, Context.NONE); return this; } public ManagedGrafana apply(Context context) { this.innerObject = serviceManager.serviceClient() .getGrafanas() - .updateWithResponse(resourceGroupName, workspaceName, updateRequestBodyParameters, context) - .getValue(); + .update(resourceGroupName, workspaceName, updateRequestBodyParameters, context); return this; } @@ -198,6 +196,11 @@ public ManagedGrafanaImpl withTags(Map tags) { } } + public ManagedGrafanaImpl withProperties(ManagedGrafanaProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + public ManagedGrafanaImpl withSku(ResourceSku sku) { if (isInCreateMode()) { this.innerModel().withSku(sku); @@ -208,11 +211,6 @@ public ManagedGrafanaImpl withSku(ResourceSku sku) { } } - public ManagedGrafanaImpl withProperties(ManagedGrafanaProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - public ManagedGrafanaImpl withIdentity(ManagedServiceIdentity identity) { if (isInCreateMode()) { this.innerModel().withIdentity(identity); diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ManagedGrafana.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ManagedGrafana.java index 38f9f87bb0fb..a7e83292a60f 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ManagedGrafana.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ManagedGrafana.java @@ -37,32 +37,32 @@ public interface ManagedGrafana { String type(); /** - * Gets the location property: The geo-location where the resource lives. + * Gets the properties property: Properties specific to the grafana resource. * - * @return the location value. + * @return the properties value. */ - String location(); + ManagedGrafanaProperties properties(); /** - * Gets the tags property: Resource tags. + * Gets the sku property: The Sku of the grafana resource. * - * @return the tags value. + * @return the sku value. */ - Map tags(); + ResourceSku sku(); /** - * Gets the sku property: The Sku of the grafana resource. + * Gets the tags property: Resource tags. * - * @return the sku value. + * @return the tags value. */ - ResourceSku sku(); + Map tags(); /** - * Gets the properties property: Properties specific to the grafana resource. + * Gets the location property: The geo-location where the resource lives. * - * @return the properties value. + * @return the location value. */ - ManagedGrafanaProperties properties(); + String location(); /** * Gets the identity property: The managed service identities assigned to this resource. @@ -109,8 +109,8 @@ public interface ManagedGrafana { /** * The entirety of the ManagedGrafana definition. */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } /** @@ -120,28 +120,7 @@ interface DefinitionStages { /** * The first stage of the ManagedGrafana definition. */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ManagedGrafana definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); + interface Blank extends WithResourceGroup { } /** @@ -161,8 +140,8 @@ interface WithResourceGroup { * The stage of the ManagedGrafana definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku, - DefinitionStages.WithProperties, DefinitionStages.WithIdentity { + interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithTags, + DefinitionStages.WithProperties, DefinitionStages.WithSku, DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -180,29 +159,37 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku } /** - * The stage of the ManagedGrafana definition allowing to specify tags. + * The stage of the ManagedGrafana definition allowing to specify location. */ - interface WithTags { + interface WithLocation { /** - * Specifies the tags property: Resource tags.. + * Specifies the region for the resource. * - * @param tags Resource tags. + * @param location The geo-location where the resource lives. * @return the next definition stage. */ - WithCreate withTags(Map tags); + WithCreate withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithCreate withRegion(String location); } /** - * The stage of the ManagedGrafana definition allowing to specify sku. + * The stage of the ManagedGrafana definition allowing to specify tags. */ - interface WithSku { + interface WithTags { /** - * Specifies the sku property: The Sku of the grafana resource.. + * Specifies the tags property: Resource tags.. * - * @param sku The Sku of the grafana resource. + * @param tags Resource tags. * @return the next definition stage. */ - WithCreate withSku(ResourceSku sku); + WithCreate withTags(Map tags); } /** @@ -218,6 +205,19 @@ interface WithProperties { WithCreate withProperties(ManagedGrafanaProperties properties); } + /** + * The stage of the ManagedGrafana definition allowing to specify sku. + */ + interface WithSku { + /** + * Specifies the sku property: The Sku of the grafana resource.. + * + * @param sku The Sku of the grafana resource. + * @return the next definition stage. + */ + WithCreate withSku(ResourceSku sku); + } + /** * The stage of the ManagedGrafana definition allowing to specify identity. */ diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_apiview_properties.json b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_apiview_properties.json index 6a7f93ae1227..da1525dc4e7e 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_apiview_properties.json +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_apiview_properties.json @@ -5,6 +5,7 @@ "com.azure.resourcemanager.dashboard.fluent.GrafanasClient": "Microsoft.Dashboard", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginCreate": "Microsoft.Dashboard.ManagedGrafanas.create", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginDelete": "Microsoft.Dashboard.ManagedGrafanas.delete", + "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginUpdate": "Microsoft.Dashboard.ManagedGrafanas.update", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetails": "Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetailsWithResponse": "Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.create": "Microsoft.Dashboard.ManagedGrafanas.create", @@ -16,7 +17,6 @@ "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.list": "Microsoft.Dashboard.ManagedGrafanas.list", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.listByResourceGroup": "Microsoft.Dashboard.ManagedGrafanas.listByResourceGroup", "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.update": "Microsoft.Dashboard.ManagedGrafanas.update", - "com.azure.resourcemanager.dashboard.fluent.GrafanasClient.updateWithResponse": "Microsoft.Dashboard.ManagedGrafanas.update", "com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient": "Microsoft.Dashboard.IntegrationFabrics", "com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginCreate": "Microsoft.Dashboard.IntegrationFabrics.create", "com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginDelete": "Microsoft.Dashboard.IntegrationFabrics.delete", diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_metadata.json b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_metadata.json index a63cada12e53..122db3682085 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_metadata.json +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/resources/META-INF/azure-resourcemanager-dashboard_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersion":"2024-11-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.dashboard.fluent.DashboardManagementClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.GrafanasClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginCreate":"Microsoft.Dashboard.ManagedGrafanas.create","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginDelete":"Microsoft.Dashboard.ManagedGrafanas.delete","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetails":"Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetailsWithResponse":"Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.create":"Microsoft.Dashboard.ManagedGrafanas.create","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.delete":"Microsoft.Dashboard.ManagedGrafanas.delete","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.fetchAvailablePlugins":"Microsoft.Dashboard.ManagedGrafanas.fetchAvailablePlugins","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.fetchAvailablePluginsWithResponse":"Microsoft.Dashboard.ManagedGrafanas.fetchAvailablePlugins","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.getByResourceGroup":"Microsoft.Dashboard.ManagedGrafanas.get","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.getByResourceGroupWithResponse":"Microsoft.Dashboard.ManagedGrafanas.get","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.list":"Microsoft.Dashboard.ManagedGrafanas.list","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.listByResourceGroup":"Microsoft.Dashboard.ManagedGrafanas.listByResourceGroup","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.update":"Microsoft.Dashboard.ManagedGrafanas.update","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.updateWithResponse":"Microsoft.Dashboard.ManagedGrafanas.update","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient":"Microsoft.Dashboard.IntegrationFabrics","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginCreate":"Microsoft.Dashboard.IntegrationFabrics.create","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginDelete":"Microsoft.Dashboard.IntegrationFabrics.delete","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginUpdate":"Microsoft.Dashboard.IntegrationFabrics.update","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.create":"Microsoft.Dashboard.IntegrationFabrics.create","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.delete":"Microsoft.Dashboard.IntegrationFabrics.delete","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.get":"Microsoft.Dashboard.IntegrationFabrics.get","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.getWithResponse":"Microsoft.Dashboard.IntegrationFabrics.get","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.list":"Microsoft.Dashboard.IntegrationFabrics.list","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.update":"Microsoft.Dashboard.IntegrationFabrics.update","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient":"Microsoft.Dashboard.ManagedDashboards","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.beginCreate":"Microsoft.Dashboard.ManagedDashboards.create","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.create":"Microsoft.Dashboard.ManagedDashboards.create","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.delete":"Microsoft.Dashboard.ManagedDashboards.delete","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.deleteWithResponse":"Microsoft.Dashboard.ManagedDashboards.delete","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.getByResourceGroup":"Microsoft.Dashboard.ManagedDashboards.get","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.getByResourceGroupWithResponse":"Microsoft.Dashboard.ManagedDashboards.get","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.list":"Microsoft.Dashboard.ManagedDashboards.listBySubscription","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.listByResourceGroup":"Microsoft.Dashboard.ManagedDashboards.list","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.update":"Microsoft.Dashboard.ManagedDashboards.update","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.updateWithResponse":"Microsoft.Dashboard.ManagedDashboards.update","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginCreate":"Microsoft.Dashboard.ManagedPrivateEndpointModels.create","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginDelete":"Microsoft.Dashboard.ManagedPrivateEndpointModels.delete","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginRefresh":"Microsoft.Dashboard.ManagedGrafanas.refresh","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginUpdate":"Microsoft.Dashboard.ManagedPrivateEndpointModels.update","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.create":"Microsoft.Dashboard.ManagedPrivateEndpointModels.create","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.delete":"Microsoft.Dashboard.ManagedPrivateEndpointModels.delete","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.get":"Microsoft.Dashboard.ManagedPrivateEndpointModels.get","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.getWithResponse":"Microsoft.Dashboard.ManagedPrivateEndpointModels.get","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.list":"Microsoft.Dashboard.ManagedPrivateEndpointModels.list","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.refresh":"Microsoft.Dashboard.ManagedGrafanas.refresh","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.update":"Microsoft.Dashboard.ManagedPrivateEndpointModels.update","com.azure.resourcemanager.dashboard.fluent.OperationsClient":"Microsoft.Dashboard.Operations","com.azure.resourcemanager.dashboard.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient":"Microsoft.Dashboard.PrivateEndpointConnections","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.approve":"Microsoft.Dashboard.PrivateEndpointConnections.approve","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.beginApprove":"Microsoft.Dashboard.PrivateEndpointConnections.approve","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.Dashboard.PrivateEndpointConnections.delete","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.Dashboard.PrivateEndpointConnections.delete","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.Dashboard.PrivateEndpointConnections.get","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.Dashboard.PrivateEndpointConnections.get","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.Dashboard.PrivateEndpointConnections.list","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient":"Microsoft.Dashboard.PrivateLinkResources","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.get":"Microsoft.Dashboard.PrivateLinkResources.get","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.Dashboard.PrivateLinkResources.get","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.list":"Microsoft.Dashboard.PrivateLinkResources.list","com.azure.resourcemanager.dashboard.fluent.models.EnterpriseDetailsInner":"Microsoft.Dashboard.EnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.models.GrafanaAvailablePluginListResponseInner":"Microsoft.Dashboard.GrafanaAvailablePluginListResponse","com.azure.resourcemanager.dashboard.fluent.models.IntegrationFabricInner":"Microsoft.Dashboard.IntegrationFabric","com.azure.resourcemanager.dashboard.fluent.models.ManagedDashboardInner":"Microsoft.Dashboard.ManagedDashboard","com.azure.resourcemanager.dashboard.fluent.models.ManagedDashboardProperties":"Microsoft.Dashboard.ManagedDashboardProperties","com.azure.resourcemanager.dashboard.fluent.models.ManagedGrafanaInner":"Microsoft.Dashboard.ManagedGrafana","com.azure.resourcemanager.dashboard.fluent.models.ManagedPrivateEndpointModelInner":"Microsoft.Dashboard.ManagedPrivateEndpointModel","com.azure.resourcemanager.dashboard.fluent.models.ManagedPrivateEndpointModelProperties":"Microsoft.Dashboard.ManagedPrivateEndpointModelProperties","com.azure.resourcemanager.dashboard.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.dashboard.fluent.models.PrivateEndpointConnectionInner":"Microsoft.Dashboard.PrivateEndpointConnection","com.azure.resourcemanager.dashboard.fluent.models.PrivateEndpointConnectionProperties":"Microsoft.Dashboard.PrivateEndpointConnectionProperties","com.azure.resourcemanager.dashboard.fluent.models.PrivateLinkResourceInner":"Microsoft.Dashboard.PrivateLinkResource","com.azure.resourcemanager.dashboard.fluent.models.PrivateLinkResourceProperties":"Microsoft.Dashboard.PrivateLinkResourceProperties","com.azure.resourcemanager.dashboard.implementation.DashboardManagementClientBuilder":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.implementation.models.IntegrationFabricListResponse":"Microsoft.Dashboard.IntegrationFabricListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedDashboardListResponse":"Microsoft.Dashboard.ManagedDashboardListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedGrafanaListResponse":"Microsoft.Dashboard.ManagedGrafanaListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedPrivateEndpointModelListResponse":"Microsoft.Dashboard.ManagedPrivateEndpointModelListResponse","com.azure.resourcemanager.dashboard.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.dashboard.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dashboard.implementation.models.PrivateLinkResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dashboard.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.dashboard.models.ApiKey":"Microsoft.Dashboard.ApiKey","com.azure.resourcemanager.dashboard.models.AutoGeneratedDomainNameLabelScope":"Microsoft.Dashboard.AutoGeneratedDomainNameLabelScope","com.azure.resourcemanager.dashboard.models.AvailablePromotion":"Microsoft.Dashboard.AvailablePromotion","com.azure.resourcemanager.dashboard.models.AzureMonitorWorkspaceIntegration":"Microsoft.Dashboard.AzureMonitorWorkspaceIntegration","com.azure.resourcemanager.dashboard.models.DeterministicOutboundIp":"Microsoft.Dashboard.DeterministicOutboundIP","com.azure.resourcemanager.dashboard.models.EnterpriseConfigurations":"Microsoft.Dashboard.EnterpriseConfigurations","com.azure.resourcemanager.dashboard.models.GrafanaAvailablePlugin":"Microsoft.Dashboard.GrafanaAvailablePlugin","com.azure.resourcemanager.dashboard.models.GrafanaConfigurations":"Microsoft.Dashboard.GrafanaConfigurations","com.azure.resourcemanager.dashboard.models.GrafanaIntegrations":"Microsoft.Dashboard.GrafanaIntegrations","com.azure.resourcemanager.dashboard.models.GrafanaPlugin":"Microsoft.Dashboard.GrafanaPlugin","com.azure.resourcemanager.dashboard.models.IntegrationFabricProperties":"Microsoft.Dashboard.IntegrationFabricProperties","com.azure.resourcemanager.dashboard.models.IntegrationFabricPropertiesUpdateParameters":"Microsoft.Dashboard.IntegrationFabricPropertiesUpdateParameters","com.azure.resourcemanager.dashboard.models.IntegrationFabricUpdateParameters":"Microsoft.Dashboard.IntegrationFabricUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedDashboardUpdateParameters":"Microsoft.Dashboard.ManagedDashboardUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedGrafanaProperties":"Microsoft.Dashboard.ManagedGrafanaProperties","com.azure.resourcemanager.dashboard.models.ManagedGrafanaPropertiesUpdateParameters":"Microsoft.Dashboard.ManagedGrafanaPropertiesUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedGrafanaUpdateParameters":"Microsoft.Dashboard.ManagedGrafanaUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointConnectionState":"Microsoft.Dashboard.ManagedPrivateEndpointConnectionState","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointConnectionStatus":"Microsoft.Dashboard.ManagedPrivateEndpointConnectionStatus","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointUpdateParameters":"Microsoft.Dashboard.ManagedPrivateEndpointUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.dashboard.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.dashboard.models.MarketplaceAutoRenew":"Microsoft.Dashboard.MarketplaceAutoRenew","com.azure.resourcemanager.dashboard.models.MarketplaceTrialQuota":"Microsoft.Dashboard.MarketplaceTrialQuota","com.azure.resourcemanager.dashboard.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.dashboard.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.dashboard.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.dashboard.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.dashboard.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.dashboard.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.dashboard.models.ProvisioningState":"Microsoft.Dashboard.ProvisioningState","com.azure.resourcemanager.dashboard.models.PublicNetworkAccess":"Microsoft.Dashboard.PublicNetworkAccess","com.azure.resourcemanager.dashboard.models.ResourceSku":"Microsoft.Dashboard.ResourceSku","com.azure.resourcemanager.dashboard.models.SaasSubscriptionDetails":"Microsoft.Dashboard.SaasSubscriptionDetails","com.azure.resourcemanager.dashboard.models.Security":"Microsoft.Dashboard.Security","com.azure.resourcemanager.dashboard.models.Smtp":"Microsoft.Dashboard.Smtp","com.azure.resourcemanager.dashboard.models.Snapshots":"Microsoft.Dashboard.Snapshots","com.azure.resourcemanager.dashboard.models.StartTlsPolicy":"Microsoft.Dashboard.StartTLSPolicy","com.azure.resourcemanager.dashboard.models.SubscriptionTerm":"Microsoft.Dashboard.SubscriptionTerm","com.azure.resourcemanager.dashboard.models.UnifiedAlertingScreenshots":"Microsoft.Dashboard.UnifiedAlertingScreenshots","com.azure.resourcemanager.dashboard.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.dashboard.models.Users":"Microsoft.Dashboard.Users","com.azure.resourcemanager.dashboard.models.ZoneRedundancy":"Microsoft.Dashboard.ZoneRedundancy"}} \ No newline at end of file +{"flavor":"azure","apiVersion":"2024-11-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.dashboard.fluent.DashboardManagementClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.GrafanasClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginCreate":"Microsoft.Dashboard.ManagedGrafanas.create","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginDelete":"Microsoft.Dashboard.ManagedGrafanas.delete","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.beginUpdate":"Microsoft.Dashboard.ManagedGrafanas.update","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetails":"Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.checkEnterpriseDetailsWithResponse":"Microsoft.Dashboard.ManagedGrafanas.checkEnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.create":"Microsoft.Dashboard.ManagedGrafanas.create","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.delete":"Microsoft.Dashboard.ManagedGrafanas.delete","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.fetchAvailablePlugins":"Microsoft.Dashboard.ManagedGrafanas.fetchAvailablePlugins","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.fetchAvailablePluginsWithResponse":"Microsoft.Dashboard.ManagedGrafanas.fetchAvailablePlugins","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.getByResourceGroup":"Microsoft.Dashboard.ManagedGrafanas.get","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.getByResourceGroupWithResponse":"Microsoft.Dashboard.ManagedGrafanas.get","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.list":"Microsoft.Dashboard.ManagedGrafanas.list","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.listByResourceGroup":"Microsoft.Dashboard.ManagedGrafanas.listByResourceGroup","com.azure.resourcemanager.dashboard.fluent.GrafanasClient.update":"Microsoft.Dashboard.ManagedGrafanas.update","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient":"Microsoft.Dashboard.IntegrationFabrics","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginCreate":"Microsoft.Dashboard.IntegrationFabrics.create","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginDelete":"Microsoft.Dashboard.IntegrationFabrics.delete","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.beginUpdate":"Microsoft.Dashboard.IntegrationFabrics.update","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.create":"Microsoft.Dashboard.IntegrationFabrics.create","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.delete":"Microsoft.Dashboard.IntegrationFabrics.delete","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.get":"Microsoft.Dashboard.IntegrationFabrics.get","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.getWithResponse":"Microsoft.Dashboard.IntegrationFabrics.get","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.list":"Microsoft.Dashboard.IntegrationFabrics.list","com.azure.resourcemanager.dashboard.fluent.IntegrationFabricsClient.update":"Microsoft.Dashboard.IntegrationFabrics.update","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient":"Microsoft.Dashboard.ManagedDashboards","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.beginCreate":"Microsoft.Dashboard.ManagedDashboards.create","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.create":"Microsoft.Dashboard.ManagedDashboards.create","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.delete":"Microsoft.Dashboard.ManagedDashboards.delete","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.deleteWithResponse":"Microsoft.Dashboard.ManagedDashboards.delete","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.getByResourceGroup":"Microsoft.Dashboard.ManagedDashboards.get","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.getByResourceGroupWithResponse":"Microsoft.Dashboard.ManagedDashboards.get","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.list":"Microsoft.Dashboard.ManagedDashboards.listBySubscription","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.listByResourceGroup":"Microsoft.Dashboard.ManagedDashboards.list","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.update":"Microsoft.Dashboard.ManagedDashboards.update","com.azure.resourcemanager.dashboard.fluent.ManagedDashboardsClient.updateWithResponse":"Microsoft.Dashboard.ManagedDashboards.update","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginCreate":"Microsoft.Dashboard.ManagedPrivateEndpointModels.create","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginDelete":"Microsoft.Dashboard.ManagedPrivateEndpointModels.delete","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginRefresh":"Microsoft.Dashboard.ManagedGrafanas.refresh","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.beginUpdate":"Microsoft.Dashboard.ManagedPrivateEndpointModels.update","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.create":"Microsoft.Dashboard.ManagedPrivateEndpointModels.create","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.delete":"Microsoft.Dashboard.ManagedPrivateEndpointModels.delete","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.get":"Microsoft.Dashboard.ManagedPrivateEndpointModels.get","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.getWithResponse":"Microsoft.Dashboard.ManagedPrivateEndpointModels.get","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.list":"Microsoft.Dashboard.ManagedPrivateEndpointModels.list","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.refresh":"Microsoft.Dashboard.ManagedGrafanas.refresh","com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient.update":"Microsoft.Dashboard.ManagedPrivateEndpointModels.update","com.azure.resourcemanager.dashboard.fluent.OperationsClient":"Microsoft.Dashboard.Operations","com.azure.resourcemanager.dashboard.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient":"Microsoft.Dashboard.PrivateEndpointConnections","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.approve":"Microsoft.Dashboard.PrivateEndpointConnections.approve","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.beginApprove":"Microsoft.Dashboard.PrivateEndpointConnections.approve","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.Dashboard.PrivateEndpointConnections.delete","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.Dashboard.PrivateEndpointConnections.delete","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.Dashboard.PrivateEndpointConnections.get","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.Dashboard.PrivateEndpointConnections.get","com.azure.resourcemanager.dashboard.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.Dashboard.PrivateEndpointConnections.list","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient":"Microsoft.Dashboard.PrivateLinkResources","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.get":"Microsoft.Dashboard.PrivateLinkResources.get","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.Dashboard.PrivateLinkResources.get","com.azure.resourcemanager.dashboard.fluent.PrivateLinkResourcesClient.list":"Microsoft.Dashboard.PrivateLinkResources.list","com.azure.resourcemanager.dashboard.fluent.models.EnterpriseDetailsInner":"Microsoft.Dashboard.EnterpriseDetails","com.azure.resourcemanager.dashboard.fluent.models.GrafanaAvailablePluginListResponseInner":"Microsoft.Dashboard.GrafanaAvailablePluginListResponse","com.azure.resourcemanager.dashboard.fluent.models.IntegrationFabricInner":"Microsoft.Dashboard.IntegrationFabric","com.azure.resourcemanager.dashboard.fluent.models.ManagedDashboardInner":"Microsoft.Dashboard.ManagedDashboard","com.azure.resourcemanager.dashboard.fluent.models.ManagedDashboardProperties":"Microsoft.Dashboard.ManagedDashboardProperties","com.azure.resourcemanager.dashboard.fluent.models.ManagedGrafanaInner":"Microsoft.Dashboard.ManagedGrafana","com.azure.resourcemanager.dashboard.fluent.models.ManagedPrivateEndpointModelInner":"Microsoft.Dashboard.ManagedPrivateEndpointModel","com.azure.resourcemanager.dashboard.fluent.models.ManagedPrivateEndpointModelProperties":"Microsoft.Dashboard.ManagedPrivateEndpointModelProperties","com.azure.resourcemanager.dashboard.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.dashboard.fluent.models.PrivateEndpointConnectionInner":"Microsoft.Dashboard.PrivateEndpointConnection","com.azure.resourcemanager.dashboard.fluent.models.PrivateEndpointConnectionProperties":"Microsoft.Dashboard.PrivateEndpointConnectionProperties","com.azure.resourcemanager.dashboard.fluent.models.PrivateLinkResourceInner":"Microsoft.Dashboard.PrivateLinkResource","com.azure.resourcemanager.dashboard.fluent.models.PrivateLinkResourceProperties":"Microsoft.Dashboard.PrivateLinkResourceProperties","com.azure.resourcemanager.dashboard.implementation.DashboardManagementClientBuilder":"Microsoft.Dashboard","com.azure.resourcemanager.dashboard.implementation.models.IntegrationFabricListResponse":"Microsoft.Dashboard.IntegrationFabricListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedDashboardListResponse":"Microsoft.Dashboard.ManagedDashboardListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedGrafanaListResponse":"Microsoft.Dashboard.ManagedGrafanaListResponse","com.azure.resourcemanager.dashboard.implementation.models.ManagedPrivateEndpointModelListResponse":"Microsoft.Dashboard.ManagedPrivateEndpointModelListResponse","com.azure.resourcemanager.dashboard.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.dashboard.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dashboard.implementation.models.PrivateLinkResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dashboard.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.dashboard.models.ApiKey":"Microsoft.Dashboard.ApiKey","com.azure.resourcemanager.dashboard.models.AutoGeneratedDomainNameLabelScope":"Microsoft.Dashboard.AutoGeneratedDomainNameLabelScope","com.azure.resourcemanager.dashboard.models.AvailablePromotion":"Microsoft.Dashboard.AvailablePromotion","com.azure.resourcemanager.dashboard.models.AzureMonitorWorkspaceIntegration":"Microsoft.Dashboard.AzureMonitorWorkspaceIntegration","com.azure.resourcemanager.dashboard.models.DeterministicOutboundIp":"Microsoft.Dashboard.DeterministicOutboundIP","com.azure.resourcemanager.dashboard.models.EnterpriseConfigurations":"Microsoft.Dashboard.EnterpriseConfigurations","com.azure.resourcemanager.dashboard.models.GrafanaAvailablePlugin":"Microsoft.Dashboard.GrafanaAvailablePlugin","com.azure.resourcemanager.dashboard.models.GrafanaConfigurations":"Microsoft.Dashboard.GrafanaConfigurations","com.azure.resourcemanager.dashboard.models.GrafanaIntegrations":"Microsoft.Dashboard.GrafanaIntegrations","com.azure.resourcemanager.dashboard.models.GrafanaPlugin":"Microsoft.Dashboard.GrafanaPlugin","com.azure.resourcemanager.dashboard.models.IntegrationFabricProperties":"Microsoft.Dashboard.IntegrationFabricProperties","com.azure.resourcemanager.dashboard.models.IntegrationFabricPropertiesUpdateParameters":"Microsoft.Dashboard.IntegrationFabricPropertiesUpdateParameters","com.azure.resourcemanager.dashboard.models.IntegrationFabricUpdateParameters":"Microsoft.Dashboard.IntegrationFabricUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedDashboardUpdateParameters":"Microsoft.Dashboard.ManagedDashboardUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedGrafanaProperties":"Microsoft.Dashboard.ManagedGrafanaProperties","com.azure.resourcemanager.dashboard.models.ManagedGrafanaPropertiesUpdateParameters":"Microsoft.Dashboard.ManagedGrafanaPropertiesUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedGrafanaUpdateParameters":"Microsoft.Dashboard.ManagedGrafanaUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointConnectionState":"Microsoft.Dashboard.ManagedPrivateEndpointConnectionState","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointConnectionStatus":"Microsoft.Dashboard.ManagedPrivateEndpointConnectionStatus","com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointUpdateParameters":"Microsoft.Dashboard.ManagedPrivateEndpointUpdateParameters","com.azure.resourcemanager.dashboard.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.dashboard.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.dashboard.models.MarketplaceAutoRenew":"Microsoft.Dashboard.MarketplaceAutoRenew","com.azure.resourcemanager.dashboard.models.MarketplaceTrialQuota":"Microsoft.Dashboard.MarketplaceTrialQuota","com.azure.resourcemanager.dashboard.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.dashboard.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.dashboard.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.dashboard.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.dashboard.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.dashboard.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.dashboard.models.ProvisioningState":"Microsoft.Dashboard.ProvisioningState","com.azure.resourcemanager.dashboard.models.PublicNetworkAccess":"Microsoft.Dashboard.PublicNetworkAccess","com.azure.resourcemanager.dashboard.models.ResourceSku":"Microsoft.Dashboard.ResourceSku","com.azure.resourcemanager.dashboard.models.SaasSubscriptionDetails":"Microsoft.Dashboard.SaasSubscriptionDetails","com.azure.resourcemanager.dashboard.models.Security":"Microsoft.Dashboard.Security","com.azure.resourcemanager.dashboard.models.Smtp":"Microsoft.Dashboard.Smtp","com.azure.resourcemanager.dashboard.models.Snapshots":"Microsoft.Dashboard.Snapshots","com.azure.resourcemanager.dashboard.models.StartTlsPolicy":"Microsoft.Dashboard.StartTLSPolicy","com.azure.resourcemanager.dashboard.models.SubscriptionTerm":"Microsoft.Dashboard.SubscriptionTerm","com.azure.resourcemanager.dashboard.models.UnifiedAlertingScreenshots":"Microsoft.Dashboard.UnifiedAlertingScreenshots","com.azure.resourcemanager.dashboard.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.dashboard.models.Users":"Microsoft.Dashboard.Users","com.azure.resourcemanager.dashboard.models.ZoneRedundancy":"Microsoft.Dashboard.ZoneRedundancy"}} \ No newline at end of file diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/samples/java/com/azure/resourcemanager/dashboard/generated/GrafanaCreateSamples.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/samples/java/com/azure/resourcemanager/dashboard/generated/GrafanaCreateSamples.java index 59189120a551..df88caaf077d 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/samples/java/com/azure/resourcemanager/dashboard/generated/GrafanaCreateSamples.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/samples/java/com/azure/resourcemanager/dashboard/generated/GrafanaCreateSamples.java @@ -43,10 +43,9 @@ public final class GrafanaCreateSamples { public static void grafanaCreate(com.azure.resourcemanager.dashboard.DashboardManager manager) { manager.grafanas() .define("myWorkspace") - .withRegion("West US") .withExistingResourceGroup("myResourceGroup") + .withRegion("West US") .withTags(mapOf("Environment", "Dev")) - .withSku(new ResourceSku().withName("Standard")) .withProperties(new ManagedGrafanaProperties().withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withZoneRedundancy(ZoneRedundancy.ENABLED) .withApiKey(ApiKey.ENABLED) @@ -71,6 +70,7 @@ public static void grafanaCreate(com.azure.resourcemanager.dashboard.DashboardMa .withUnifiedAlertingScreenshots(new UnifiedAlertingScreenshots().withCaptureEnabled(false))) .withGrafanaPlugins(mapOf("sample-plugin-id", new GrafanaPlugin())) .withGrafanaMajorVersion("9")) + .withSku(new ResourceSku().withName("Standard")) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) .create(); } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/DashboardManagerTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/DashboardManagerTests.java index d950c2b3406a..85550a21f47d 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/DashboardManagerTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/DashboardManagerTests.java @@ -71,8 +71,8 @@ public void testCreateGrafana() { // @embedmeStart grafana = dashboardManager.grafanas() .define(grafanaName) - .withRegion(REGION) .withExistingResourceGroup(resourceGroupName) + .withRegion(REGION) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) .create(); // @embedmeEnd diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/AzureMonitorWorkspaceIntegrationTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/AzureMonitorWorkspaceIntegrationTests.java index e0c1c713a435..2bd8eda4516a 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/AzureMonitorWorkspaceIntegrationTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/AzureMonitorWorkspaceIntegrationTests.java @@ -12,16 +12,16 @@ public final class AzureMonitorWorkspaceIntegrationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureMonitorWorkspaceIntegration model - = BinaryData.fromString("{\"azureMonitorWorkspaceResourceId\":\"ftutqxlngxlefgu\"}") + = BinaryData.fromString("{\"azureMonitorWorkspaceResourceId\":\"vhkhixu\"}") .toObject(AzureMonitorWorkspaceIntegration.class); - Assertions.assertEquals("ftutqxlngxlefgu", model.azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("vhkhixu", model.azureMonitorWorkspaceResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureMonitorWorkspaceIntegration model - = new AzureMonitorWorkspaceIntegration().withAzureMonitorWorkspaceResourceId("ftutqxlngxlefgu"); + = new AzureMonitorWorkspaceIntegration().withAzureMonitorWorkspaceResourceId("vhkhixu"); model = BinaryData.fromObject(model).toObject(AzureMonitorWorkspaceIntegration.class); - Assertions.assertEquals("ftutqxlngxlefgu", model.azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("vhkhixu", model.azureMonitorWorkspaceResourceId()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseConfigurationsTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseConfigurationsTests.java index 1c88ba61f6b0..f2baff6f748a 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseConfigurationsTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseConfigurationsTests.java @@ -13,18 +13,18 @@ public final class EnterpriseConfigurationsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EnterpriseConfigurations model - = BinaryData.fromString("{\"marketplacePlanId\":\"xkrxdqmi\",\"marketplaceAutoRenew\":\"Disabled\"}") + = BinaryData.fromString("{\"marketplacePlanId\":\"dtopbob\",\"marketplaceAutoRenew\":\"Disabled\"}") .toObject(EnterpriseConfigurations.class); - Assertions.assertEquals("xkrxdqmi", model.marketplacePlanId()); + Assertions.assertEquals("dtopbob", model.marketplacePlanId()); Assertions.assertEquals(MarketplaceAutoRenew.DISABLED, model.marketplaceAutoRenew()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EnterpriseConfigurations model = new EnterpriseConfigurations().withMarketplacePlanId("xkrxdqmi") + EnterpriseConfigurations model = new EnterpriseConfigurations().withMarketplacePlanId("dtopbob") .withMarketplaceAutoRenew(MarketplaceAutoRenew.DISABLED); model = BinaryData.fromObject(model).toObject(EnterpriseConfigurations.class); - Assertions.assertEquals("xkrxdqmi", model.marketplacePlanId()); + Assertions.assertEquals("dtopbob", model.marketplacePlanId()); Assertions.assertEquals(MarketplaceAutoRenew.DISABLED, model.marketplaceAutoRenew()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseDetailsInnerTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseDetailsInnerTests.java index c8d5bce53492..b2e83833ac94 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseDetailsInnerTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/EnterpriseDetailsInnerTests.java @@ -14,21 +14,21 @@ public final class EnterpriseDetailsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EnterpriseDetailsInner model = BinaryData.fromString( - "{\"saasSubscriptionDetails\":{\"planId\":\"xyqj\",\"offerId\":\"cattpngjcrcczsq\",\"publisherId\":\"hvmdajvnysounq\",\"term\":{\"termUnit\":\"noae\",\"startDate\":\"2021-10-06T07:30:47Z\",\"endDate\":\"2021-12-02T06:25:29Z\"}},\"marketplaceTrialQuota\":{\"availablePromotion\":\"None\",\"grafanaResourceId\":\"pmopjmc\",\"trialStartAt\":\"2021-01-13T06:54:34Z\",\"trialEndAt\":\"2021-12-08T11:26:40Z\"}}") + "{\"saasSubscriptionDetails\":{\"planId\":\"whybcib\",\"offerId\":\"vdcsitynn\",\"publisherId\":\"mdectehfiqscjey\",\"term\":{\"termUnit\":\"ezrkgqhcjrefo\",\"startDate\":\"2021-06-07T02:58Z\",\"endDate\":\"2021-10-26T09:37:04Z\"}},\"marketplaceTrialQuota\":{\"availablePromotion\":\"FreeTrial\",\"grafanaResourceId\":\"yvxyqjp\",\"trialStartAt\":\"2021-02-23T18:47:42Z\",\"trialEndAt\":\"2021-11-05T17:27:55Z\"}}") .toObject(EnterpriseDetailsInner.class); - Assertions.assertEquals("xyqj", model.saasSubscriptionDetails().planId()); - Assertions.assertEquals("cattpngjcrcczsq", model.saasSubscriptionDetails().offerId()); - Assertions.assertEquals("hvmdajvnysounq", model.saasSubscriptionDetails().publisherId()); - Assertions.assertEquals("noae", model.saasSubscriptionDetails().term().termUnit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T07:30:47Z"), + Assertions.assertEquals("whybcib", model.saasSubscriptionDetails().planId()); + Assertions.assertEquals("vdcsitynn", model.saasSubscriptionDetails().offerId()); + Assertions.assertEquals("mdectehfiqscjey", model.saasSubscriptionDetails().publisherId()); + Assertions.assertEquals("ezrkgqhcjrefo", model.saasSubscriptionDetails().term().termUnit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T02:58Z"), model.saasSubscriptionDetails().term().startDate()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-02T06:25:29Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T09:37:04Z"), model.saasSubscriptionDetails().term().endDate()); - Assertions.assertEquals(AvailablePromotion.NONE, model.marketplaceTrialQuota().availablePromotion()); - Assertions.assertEquals("pmopjmc", model.marketplaceTrialQuota().grafanaResourceId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T06:54:34Z"), + Assertions.assertEquals(AvailablePromotion.FREE_TRIAL, model.marketplaceTrialQuota().availablePromotion()); + Assertions.assertEquals("yvxyqjp", model.marketplaceTrialQuota().grafanaResourceId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-23T18:47:42Z"), model.marketplaceTrialQuota().trialStartAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T11:26:40Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T17:27:55Z"), model.marketplaceTrialQuota().trialEndAt()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginListResponseInnerTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginListResponseInnerTests.java index e25be9b60a57..f6d8bdfdd36e 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginListResponseInnerTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginListResponseInnerTests.java @@ -12,8 +12,8 @@ public final class GrafanaAvailablePluginListResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GrafanaAvailablePluginListResponseInner model = BinaryData.fromString( - "{\"value\":[{\"pluginId\":\"kdvjsll\",\"name\":\"vvdfwatkpnpul\"},{\"pluginId\":\"xbczwtruwiqz\",\"name\":\"j\"},{\"pluginId\":\"ovm\",\"name\":\"kacspkw\"}],\"nextLink\":\"zdobpxjmflbvvnch\"}") + "{\"value\":[{\"pluginId\":\"zydagfuaxbezyiuo\",\"name\":\"twhrdxwzywqsm\"},{\"pluginId\":\"ureximoryocfs\",\"name\":\"s\"},{\"pluginId\":\"ddystkiiuxhqy\",\"name\":\"xorrqnb\"},{\"pluginId\":\"czvyifq\",\"name\":\"kdvjsll\"}],\"nextLink\":\"vvdfwatkpnpul\"}") .toObject(GrafanaAvailablePluginListResponseInner.class); - Assertions.assertEquals("zdobpxjmflbvvnch", model.nextLink()); + Assertions.assertEquals("vvdfwatkpnpul", model.nextLink()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginTests.java index e1cfb738add1..d8ae2b57ae4b 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaAvailablePluginTests.java @@ -10,7 +10,7 @@ public final class GrafanaAvailablePluginTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GrafanaAvailablePlugin model - = BinaryData.fromString("{\"pluginId\":\"cciw\",\"name\":\"juqk\"}").toObject(GrafanaAvailablePlugin.class); + GrafanaAvailablePlugin model = BinaryData.fromString("{\"pluginId\":\"xbczwtruwiqz\",\"name\":\"j\"}") + .toObject(GrafanaAvailablePlugin.class); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaIntegrationsTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaIntegrationsTests.java index c950046bd744..1daed75dd660 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaIntegrationsTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaIntegrationsTests.java @@ -14,19 +14,18 @@ public final class GrafanaIntegrationsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GrafanaIntegrations model = BinaryData - .fromString( - "{\"azureMonitorWorkspaceIntegrations\":[{\"azureMonitorWorkspaceResourceId\":\"yvvtpgvdfgio\"}]}") + .fromString("{\"azureMonitorWorkspaceIntegrations\":[{\"azureMonitorWorkspaceResourceId\":\"xmqci\"}]}") .toObject(GrafanaIntegrations.class); - Assertions.assertEquals("yvvtpgvdfgio", + Assertions.assertEquals("xmqci", model.azureMonitorWorkspaceIntegrations().get(0).azureMonitorWorkspaceResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { GrafanaIntegrations model = new GrafanaIntegrations().withAzureMonitorWorkspaceIntegrations( - Arrays.asList(new AzureMonitorWorkspaceIntegration().withAzureMonitorWorkspaceResourceId("yvvtpgvdfgio"))); + Arrays.asList(new AzureMonitorWorkspaceIntegration().withAzureMonitorWorkspaceResourceId("xmqci"))); model = BinaryData.fromObject(model).toObject(GrafanaIntegrations.class); - Assertions.assertEquals("yvvtpgvdfgio", + Assertions.assertEquals("xmqci", model.azureMonitorWorkspaceIntegrations().get(0).azureMonitorWorkspaceResourceId()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaPluginTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaPluginTests.java index 6651d7467b16..2cfbde30b7d8 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaPluginTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanaPluginTests.java @@ -10,7 +10,7 @@ public final class GrafanaPluginTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GrafanaPlugin model = BinaryData.fromString("{\"pluginId\":\"fsxlzevgbmqjqa\"}").toObject(GrafanaPlugin.class); + GrafanaPlugin model = BinaryData.fromString("{\"pluginId\":\"jybige\"}").toObject(GrafanaPlugin.class); } @org.junit.jupiter.api.Test diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasCheckEnterpriseDetailsWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasCheckEnterpriseDetailsWithResponseMockTests.java index 418494dee13f..89a707ac7e8f 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasCheckEnterpriseDetailsWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasCheckEnterpriseDetailsWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class GrafanasCheckEnterpriseDetailsWithResponseMockTests { @Test public void testCheckEnterpriseDetailsWithResponse() throws Exception { String responseStr - = "{\"saasSubscriptionDetails\":{\"planId\":\"lya\",\"offerId\":\"dckcbc\",\"publisherId\":\"jrjxgciqibrhosx\",\"term\":{\"termUnit\":\"rhzo\",\"startDate\":\"2021-01-19T18:37:38Z\",\"endDate\":\"2021-05-07T03:59:23Z\"}},\"marketplaceTrialQuota\":{\"availablePromotion\":\"None\",\"grafanaResourceId\":\"bahwfl\",\"trialStartAt\":\"2021-03-25T00:18:24Z\",\"trialEndAt\":\"2021-05-27T17:52:09Z\"}}"; + = "{\"saasSubscriptionDetails\":{\"planId\":\"gccymvaolpssl\",\"offerId\":\"fmmdnbbg\",\"publisherId\":\"pswiydmcwyh\",\"term\":{\"termUnit\":\"ss\",\"startDate\":\"2021-03-20T02:21:45Z\",\"endDate\":\"2021-10-15T22:28:47Z\"}},\"marketplaceTrialQuota\":{\"availablePromotion\":\"FreeTrial\",\"grafanaResourceId\":\"znud\",\"trialStartAt\":\"2021-05-14T14:21:36Z\",\"trialEndAt\":\"2021-09-27T09:43:19Z\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,22 +32,22 @@ public void testCheckEnterpriseDetailsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); EnterpriseDetails response = manager.grafanas() - .checkEnterpriseDetailsWithResponse("vmkcx", "zapvhelx", com.azure.core.util.Context.NONE) + .checkEnterpriseDetailsWithResponse("lbg", "cdui", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lya", response.saasSubscriptionDetails().planId()); - Assertions.assertEquals("dckcbc", response.saasSubscriptionDetails().offerId()); - Assertions.assertEquals("jrjxgciqibrhosx", response.saasSubscriptionDetails().publisherId()); - Assertions.assertEquals("rhzo", response.saasSubscriptionDetails().term().termUnit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-19T18:37:38Z"), + Assertions.assertEquals("gccymvaolpssl", response.saasSubscriptionDetails().planId()); + Assertions.assertEquals("fmmdnbbg", response.saasSubscriptionDetails().offerId()); + Assertions.assertEquals("pswiydmcwyh", response.saasSubscriptionDetails().publisherId()); + Assertions.assertEquals("ss", response.saasSubscriptionDetails().term().termUnit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-20T02:21:45Z"), response.saasSubscriptionDetails().term().startDate()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-07T03:59:23Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-15T22:28:47Z"), response.saasSubscriptionDetails().term().endDate()); - Assertions.assertEquals(AvailablePromotion.NONE, response.marketplaceTrialQuota().availablePromotion()); - Assertions.assertEquals("bahwfl", response.marketplaceTrialQuota().grafanaResourceId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-25T00:18:24Z"), + Assertions.assertEquals(AvailablePromotion.FREE_TRIAL, response.marketplaceTrialQuota().availablePromotion()); + Assertions.assertEquals("znud", response.marketplaceTrialQuota().grafanaResourceId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-14T14:21:36Z"), response.marketplaceTrialQuota().trialStartAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-27T17:52:09Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T09:43:19Z"), response.marketplaceTrialQuota().trialEndAt()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasDeleteMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasDeleteMockTests.java index d41d646b98fb..ebb798e9d4c9 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasDeleteMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.grafanas().delete("rpkhjwn", "yqsluic", com.azure.core.util.Context.NONE); + manager.grafanas().delete("vwpm", "taruoujmkcj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasFetchAvailablePluginsWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasFetchAvailablePluginsWithResponseMockTests.java index 05c6a23aab86..8363854fd3a1 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasFetchAvailablePluginsWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/GrafanasFetchAvailablePluginsWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class GrafanasFetchAvailablePluginsWithResponseMockTests { @Test public void testFetchAvailablePluginsWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"pluginId\":\"oenwashr\",\"name\":\"tkcnqxwb\"},{\"pluginId\":\"kulpiujwaasi\",\"name\":\"i\"},{\"pluginId\":\"byuqerpqlp\",\"name\":\"cciuqgbdbutau\"}],\"nextLink\":\"btkuwhh\"}"; + = "{\"value\":[{\"pluginId\":\"zdzucerscdntnevf\",\"name\":\"jmygtdsslswtmwer\"},{\"pluginId\":\"fzp\",\"name\":\"semwabnet\"},{\"pluginId\":\"hszhedplvwiwu\",\"name\":\"wmbesldnkw\"},{\"pluginId\":\"pp\",\"name\":\"lcxog\"}],\"nextLink\":\"konzmnsik\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testFetchAvailablePluginsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GrafanaAvailablePluginListResponse response = manager.grafanas() - .fetchAvailablePluginsWithResponse("mhrkwofyyvoqacp", "expbtg", com.azure.core.util.Context.NONE) + .fetchAvailablePluginsWithResponse("zbn", "blylpstdbh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("btkuwhh", response.nextLink()); + Assertions.assertEquals("konzmnsik", response.nextLink()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsCreateMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsCreateMockTests.java index 18c800ac625a..a77414fa110e 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsCreateMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsCreateMockTests.java @@ -25,7 +25,7 @@ public final class IntegrationFabricsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"targetResourceId\":\"bunrmfqjhhk\",\"dataSourceResourceId\":\"pvjymjhxxjyng\",\"scenarios\":[\"vkr\",\"swbxqz\"]},\"location\":\"zjf\",\"tags\":{\"dxxiv\":\"j\",\"aqtdoqmcbx\":\"tvtc\"},\"id\":\"wvxysl\",\"name\":\"bhsfxob\",\"type\":\"ytkblmpew\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"targetResourceId\":\"ow\",\"dataSourceResourceId\":\"przqlveu\",\"scenarios\":[\"pjmkhfxobbc\"]},\"location\":\"s\",\"tags\":{\"fgb\":\"riplrbpbewtg\",\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\",\"zg\":\"j\"},\"id\":\"yzm\",\"name\":\"txon\",\"type\":\"mtsavjcbpwxqp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,20 +35,20 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); IntegrationFabric response = manager.integrationFabrics() - .define("nalaulppg") - .withRegion("hxg") - .withExistingGrafana("exznelixhnr", "tfolhbnx") - .withTags(mapOf("kteo", "mgucna", "pfqbuaceopzf", "llwptfdy")) - .withProperties(new IntegrationFabricProperties().withTargetResourceId("apnyiropuhpig") - .withDataSourceResourceId("gylgqgitxmedjvcs") - .withScenarios(Arrays.asList("qwwncw"))) + .define("xcug") + .withRegion("ni") + .withExistingGrafana("urqhaka", "hashsfwxosow") + .withTags(mapOf("cg", "fbkp")) + .withProperties(new IntegrationFabricProperties().withTargetResourceId("xdje") + .withDataSourceResourceId("pucwwfvovbvme") + .withScenarios(Arrays.asList("ivyhzceuojgjrwju", "iotwmcdytdxwit", "nrjawgqwg"))) .create(); - Assertions.assertEquals("zjf", response.location()); - Assertions.assertEquals("j", response.tags().get("dxxiv")); - Assertions.assertEquals("bunrmfqjhhk", response.properties().targetResourceId()); - Assertions.assertEquals("pvjymjhxxjyng", response.properties().dataSourceResourceId()); - Assertions.assertEquals("vkr", response.properties().scenarios().get(0)); + Assertions.assertEquals("s", response.location()); + Assertions.assertEquals("riplrbpbewtg", response.tags().get("fgb")); + Assertions.assertEquals("ow", response.properties().targetResourceId()); + Assertions.assertEquals("przqlveu", response.properties().dataSourceResourceId()); + Assertions.assertEquals("pjmkhfxobbc", response.properties().scenarios().get(0)); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsGetWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsGetWithResponseMockTests.java index 35efff7c6e1a..2861ef2c80ad 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsGetWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IntegrationFabricsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Creating\",\"targetResourceId\":\"hfxobbcswsrtj\",\"dataSourceResourceId\":\"plrbpbewtghf\",\"scenarios\":[\"c\",\"wxzvlvqhjkb\",\"gibtnm\"]},\"location\":\"ebwwaloayqc\",\"tags\":{\"gmtsavjcbpwxqpsr\":\"tzjuzgwyzmhtxo\",\"mdyvxqtayriw\":\"nftguvriuhpr\"},\"id\":\"ro\",\"name\":\"qbex\",\"type\":\"mcqibycnojv\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"targetResourceId\":\"dhbt\",\"dataSourceResourceId\":\"phywpnvj\",\"scenarios\":[\"nermcl\",\"plpho\",\"uscrpabgyepsb\",\"tazqugxywpmueefj\"]},\"location\":\"fqkquj\",\"tags\":{\"xtccmg\":\"uyonobglaoc\",\"wfudwpzntxhdzhl\":\"udxytlmoyrx\",\"hckfrlhrx\":\"qj\",\"ca\":\"bkyvp\"},\"id\":\"uzbpzkafku\",\"name\":\"b\",\"type\":\"rnwb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); IntegrationFabric response = manager.integrationFabrics() - .getWithResponse("wzbtdhxu", "znbmpowuwprzq", "veual", com.azure.core.util.Context.NONE) + .getWithResponse("cykvceo", "eil", "vnotyfjfcnj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ebwwaloayqc", response.location()); - Assertions.assertEquals("tzjuzgwyzmhtxo", response.tags().get("gmtsavjcbpwxqpsr")); - Assertions.assertEquals("hfxobbcswsrtj", response.properties().targetResourceId()); - Assertions.assertEquals("plrbpbewtghf", response.properties().dataSourceResourceId()); - Assertions.assertEquals("c", response.properties().scenarios().get(0)); + Assertions.assertEquals("fqkquj", response.location()); + Assertions.assertEquals("uyonobglaoc", response.tags().get("xtccmg")); + Assertions.assertEquals("dhbt", response.properties().targetResourceId()); + Assertions.assertEquals("phywpnvj", response.properties().dataSourceResourceId()); + Assertions.assertEquals("nermcl", response.properties().scenarios().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsListMockTests.java index d7cec3d31847..9315b95146f8 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/IntegrationFabricsListMockTests.java @@ -22,7 +22,7 @@ public final class IntegrationFabricsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleted\",\"targetResourceId\":\"lxkvu\",\"dataSourceResourceId\":\"hzovawjvzunlut\",\"scenarios\":[\"prnxipeil\"]},\"location\":\"zuaejxd\",\"tags\":{\"dzumveekg\":\"skzbb\",\"bsjyofdx\":\"wozuhkf\",\"oekqvk\":\"uusdttouwa\",\"vbxwyjsflhh\":\"lns\"},\"id\":\"aalnjixi\",\"name\":\"xyawj\",\"type\":\"yaqcslyjpkiidz\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"targetResourceId\":\"kv\",\"dataSourceResourceId\":\"elmqk\",\"scenarios\":[\"hvljuahaquh\",\"dhmdua\",\"aex\"]},\"location\":\"vfadmws\",\"tags\":{\"gomz\":\"gvxp\"},\"id\":\"fmisg\",\"name\":\"bnbbeldawkz\",\"type\":\"ali\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.integrationFabrics().list("nmefqsgzvahapj", "zhpvgqzcjrvxd", com.azure.core.util.Context.NONE); + = manager.integrationFabrics().list("ehhseyvjusrts", "hspkdeemao", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zuaejxd", response.iterator().next().location()); - Assertions.assertEquals("skzbb", response.iterator().next().tags().get("dzumveekg")); - Assertions.assertEquals("lxkvu", response.iterator().next().properties().targetResourceId()); - Assertions.assertEquals("hzovawjvzunlut", response.iterator().next().properties().dataSourceResourceId()); - Assertions.assertEquals("prnxipeil", response.iterator().next().properties().scenarios().get(0)); + Assertions.assertEquals("vfadmws", response.iterator().next().location()); + Assertions.assertEquals("gvxp", response.iterator().next().tags().get("gomz")); + Assertions.assertEquals("kv", response.iterator().next().properties().targetResourceId()); + Assertions.assertEquals("elmqk", response.iterator().next().properties().dataSourceResourceId()); + Assertions.assertEquals("hvljuahaquh", response.iterator().next().properties().scenarios().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsCreateMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsCreateMockTests.java index 3a31c12b5e86..fb2d4c0afe76 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsCreateMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsCreateMockTests.java @@ -23,7 +23,7 @@ public final class ManagedDashboardsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"tbhjpglkfgohdneu\",\"tags\":{\"fikdowwqu\":\"phsdyhto\",\"zx\":\"v\",\"hcohfwdsjnk\":\"lvithhqzonosgg\",\"swacffgdkzz\":\"ljuti\"},\"id\":\"wkfvhqcrailvp\",\"name\":\"ppfufl\",\"type\":\"wdmhdlxyjrxs\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"qmcbxvwvxyslqbhs\",\"tags\":{\"lmpewwwfbkr\":\"blytk\"},\"id\":\"rn\",\"name\":\"vshqjohxcr\",\"type\":\"bfovasrruvwbhsq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedDashboard response = manager.managedDashboards() - .define("tibqdxbxwakb") - .withRegion("dlkzgxhuri") - .withExistingResourceGroup("gureodkwobdag") - .withTags(mapOf("bxmubyynt", "podxunkb", "tkoievseotgq", "lrb", "tmuwlauwzi", "l", "cjefuzmu", "xbmp")) + .define("opppcqeq") + .withRegion("ahzxctobgbk") + .withExistingResourceGroup("qrhhu") + .withTags(mapOf("grcfb", "izpost", "bpvjymjhx", "nrmfqjhhk", "n", "j", "ivkrtsw", "u")) .create(); - Assertions.assertEquals("tbhjpglkfgohdneu", response.location()); - Assertions.assertEquals("phsdyhto", response.tags().get("fikdowwqu")); + Assertions.assertEquals("qmcbxvwvxyslqbhs", response.location()); + Assertions.assertEquals("blytk", response.tags().get("lmpewwwfbkr")); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsDeleteByResourceGroupWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsDeleteByResourceGroupWithResponseMockTests.java index b861a3b4fa46..3a520a427bc1 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsDeleteByResourceGroupWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.managedDashboards() - .deleteByResourceGroupWithResponse("bgycduiertgccym", "aolps", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("bsjyofdx", "uusdttouwa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsGetByResourceGroupWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsGetByResourceGroupWithResponseMockTests.java index 6daacb22eccd..c94ba88644ee 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ManagedDashboardsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\"},\"location\":\"ruvw\",\"tags\":{\"pybsrfbjfdtw\":\"qfsubcgjbirx\",\"bexilzznfqqnv\":\"sotftpvj\",\"ujmkcjhwqy\":\"pmqtaru\",\"naenqpehindo\":\"jrybnwjewgdrjer\"},\"id\":\"gmifthnzd\",\"name\":\"dslgnayqigynduh\",\"type\":\"vhqlkthumaqo\"}"; + = "{\"properties\":{\"provisioningState\":\"Creating\"},\"location\":\"mcqibycnojv\",\"tags\":{\"qsgzvahapj\":\"e\",\"zlmwlxkvugfhz\":\"zhpvgqzcjrvxd\",\"hnnpr\":\"vawjvzunlu\",\"ultskzbbtdz\":\"xipeilpjzuaejx\"},\"id\":\"mv\",\"name\":\"ekg\",\"type\":\"wozuhkf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedDashboard response = manager.managedDashboards() - .getByResourceGroupWithResponse("wfbkrvrns", "shqjohxcrsbf", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rknftguvriuhprwm", "yvxqtayriwwroy", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ruvw", response.location()); - Assertions.assertEquals("qfsubcgjbirx", response.tags().get("pybsrfbjfdtw")); + Assertions.assertEquals("mcqibycnojv", response.location()); + Assertions.assertEquals("e", response.tags().get("qsgzvahapj")); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListByResourceGroupMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListByResourceGroupMockTests.java index 7530bebae1a0..38e1fbf7fb3e 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListByResourceGroupMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class ManagedDashboardsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\"},\"location\":\"glzpswiydm\",\"tags\":{\"vdfznudaodvxzb\":\"hzdxssadbzm\"},\"id\":\"cblylpstdbhhxsr\",\"name\":\"dzu\",\"type\":\"erscdntne\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\"},\"location\":\"vbxwyjsflhh\",\"tags\":{\"joya\":\"lnjixisxya\"},\"id\":\"cslyjpk\",\"name\":\"idzyexznelixhnr\",\"type\":\"tfolhbnx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedDashboards().listByResourceGroup("lqlfm", com.azure.core.util.Context.NONE); + = manager.managedDashboards().listByResourceGroup("oekqvk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("glzpswiydm", response.iterator().next().location()); - Assertions.assertEquals("hzdxssadbzm", response.iterator().next().tags().get("vdfznudaodvxzb")); + Assertions.assertEquals("vbxwyjsflhh", response.iterator().next().location()); + Assertions.assertEquals("lnjixisxya", response.iterator().next().tags().get("joya")); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListMockTests.java index 6dd2b32011b6..54528fcaed96 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedDashboardsListMockTests.java @@ -22,7 +22,7 @@ public final class ManagedDashboardsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\"},\"location\":\"mygtdssls\",\"tags\":{\"abnetshh\":\"weriofzpyqsem\",\"bmwmbesldnkw\":\"zhedplvwiw\",\"gaokonzmnsikv\":\"tppjflcx\"},\"id\":\"kqze\",\"name\":\"qkdltfz\",\"type\":\"mhhv\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"ulppggdtpnapnyir\",\"tags\":{\"gylgqgitxmedjvcs\":\"hpigv\",\"rmgucnap\":\"ynqwwncwzzhxgk\"},\"id\":\"t\",\"name\":\"oellwp\",\"type\":\"fdygpfqbuaceopz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,7 +33,7 @@ public void testList() throws Exception { PagedIterable response = manager.managedDashboards().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("mygtdssls", response.iterator().next().location()); - Assertions.assertEquals("weriofzpyqsem", response.iterator().next().tags().get("abnetshh")); + Assertions.assertEquals("ulppggdtpnapnyir", response.iterator().next().location()); + Assertions.assertEquals("hpigv", response.iterator().next().tags().get("gylgqgitxmedjvcs")); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointConnectionStateTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointConnectionStateTests.java index 5565e0d0c7fb..8a83bd1e4324 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointConnectionStateTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointConnectionStateTests.java @@ -11,7 +11,7 @@ public final class ManagedPrivateEndpointConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedPrivateEndpointConnectionState model - = BinaryData.fromString("{\"status\":\"Approved\",\"description\":\"uconuqszfkbey\"}") + = BinaryData.fromString("{\"status\":\"Pending\",\"description\":\"cwif\"}") .toObject(ManagedPrivateEndpointConnectionState.class); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelInnerTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelInnerTests.java index dc98ba6ab583..0dc9f8e6b9da 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelInnerTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelInnerTests.java @@ -15,35 +15,34 @@ public final class ManagedPrivateEndpointModelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedPrivateEndpointModelInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"privateLinkResourceId\":\"iwkuofos\",\"privateLinkResourceRegion\":\"hsauuimjmvxied\",\"groupIds\":[\"idyjrrfbyaosvexc\",\"onpc\"],\"requestMessage\":\"ocohslkevleg\",\"connectionState\":{\"status\":\"Disconnected\",\"description\":\"hfmvfaxkffe\"},\"privateLinkServiceUrl\":\"th\",\"privateLinkServicePrivateIP\":\"m\"},\"location\":\"yvshxmz\",\"tags\":{\"nspydptkoenkoukn\":\"zoggigrxwburvjxx\",\"ngkpocipazy\":\"udwtiukbl\",\"gukgjnpiucgygevq\":\"o\"},\"id\":\"ntypmrbpizcdrqj\",\"name\":\"dpydn\",\"type\":\"yhxdeoejzicwi\"}") + "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"yokacspkw\",\"privateLinkResourceRegion\":\"zdobpxjmflbvvnch\",\"groupIds\":[\"ciwwzjuqkhr\"],\"requestMessage\":\"jiwkuofoskghsau\",\"connectionState\":{\"status\":\"Approved\",\"description\":\"vxieduugidyj\"},\"privateLinkServiceUrl\":\"f\",\"privateLinkServicePrivateIP\":\"aos\"},\"location\":\"xc\",\"tags\":{\"vleggzfbuhfmvfax\":\"pclhocohslk\"},\"id\":\"ffeii\",\"name\":\"hl\",\"type\":\"m\"}") .toObject(ManagedPrivateEndpointModelInner.class); - Assertions.assertEquals("yvshxmz", model.location()); - Assertions.assertEquals("zoggigrxwburvjxx", model.tags().get("nspydptkoenkoukn")); - Assertions.assertEquals("iwkuofos", model.privateLinkResourceId()); - Assertions.assertEquals("hsauuimjmvxied", model.privateLinkResourceRegion()); - Assertions.assertEquals("idyjrrfbyaosvexc", model.groupIds().get(0)); - Assertions.assertEquals("ocohslkevleg", model.requestMessage()); - Assertions.assertEquals("th", model.privateLinkServiceUrl()); + Assertions.assertEquals("xc", model.location()); + Assertions.assertEquals("pclhocohslk", model.tags().get("vleggzfbuhfmvfax")); + Assertions.assertEquals("yokacspkw", model.privateLinkResourceId()); + Assertions.assertEquals("zdobpxjmflbvvnch", model.privateLinkResourceRegion()); + Assertions.assertEquals("ciwwzjuqkhr", model.groupIds().get(0)); + Assertions.assertEquals("jiwkuofoskghsau", model.requestMessage()); + Assertions.assertEquals("f", model.privateLinkServiceUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedPrivateEndpointModelInner model = new ManagedPrivateEndpointModelInner().withLocation("yvshxmz") - .withTags( - mapOf("nspydptkoenkoukn", "zoggigrxwburvjxx", "ngkpocipazy", "udwtiukbl", "gukgjnpiucgygevq", "o")) - .withPrivateLinkResourceId("iwkuofos") - .withPrivateLinkResourceRegion("hsauuimjmvxied") - .withGroupIds(Arrays.asList("idyjrrfbyaosvexc", "onpc")) - .withRequestMessage("ocohslkevleg") - .withPrivateLinkServiceUrl("th"); + ManagedPrivateEndpointModelInner model = new ManagedPrivateEndpointModelInner().withLocation("xc") + .withTags(mapOf("vleggzfbuhfmvfax", "pclhocohslk")) + .withPrivateLinkResourceId("yokacspkw") + .withPrivateLinkResourceRegion("zdobpxjmflbvvnch") + .withGroupIds(Arrays.asList("ciwwzjuqkhr")) + .withRequestMessage("jiwkuofoskghsau") + .withPrivateLinkServiceUrl("f"); model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointModelInner.class); - Assertions.assertEquals("yvshxmz", model.location()); - Assertions.assertEquals("zoggigrxwburvjxx", model.tags().get("nspydptkoenkoukn")); - Assertions.assertEquals("iwkuofos", model.privateLinkResourceId()); - Assertions.assertEquals("hsauuimjmvxied", model.privateLinkResourceRegion()); - Assertions.assertEquals("idyjrrfbyaosvexc", model.groupIds().get(0)); - Assertions.assertEquals("ocohslkevleg", model.requestMessage()); - Assertions.assertEquals("th", model.privateLinkServiceUrl()); + Assertions.assertEquals("xc", model.location()); + Assertions.assertEquals("pclhocohslk", model.tags().get("vleggzfbuhfmvfax")); + Assertions.assertEquals("yokacspkw", model.privateLinkResourceId()); + Assertions.assertEquals("zdobpxjmflbvvnch", model.privateLinkResourceRegion()); + Assertions.assertEquals("ciwwzjuqkhr", model.groupIds().get(0)); + Assertions.assertEquals("jiwkuofoskghsau", model.requestMessage()); + Assertions.assertEquals("f", model.privateLinkServiceUrl()); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelListResponseTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelListResponseTests.java index 91ac7173c20c..01f7d3e0e89c 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelListResponseTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelListResponseTests.java @@ -12,15 +12,15 @@ public final class ManagedPrivateEndpointModelListResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedPrivateEndpointModelListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateLinkResourceId\":\"ttxfvjr\",\"privateLinkResourceRegion\":\"rp\",\"groupIds\":[\"pcyvahfnljkyqx\",\"vuujq\",\"idokgjlj\"],\"requestMessage\":\"xgvcl\",\"connectionState\":{\"status\":\"Rejected\",\"description\":\"c\"},\"privateLinkServiceUrl\":\"kjeszz\",\"privateLinkServicePrivateIP\":\"ijhtxf\"},\"location\":\"xbf\",\"tags\":{\"odebfqkkrbmpu\":\"nehmpvecx\",\"wflzlfbxzpuzy\":\"gr\",\"y\":\"ispnqzahmgkbrp\"},\"id\":\"hibnuqqkpika\",\"name\":\"rgvtqag\",\"type\":\"buynhijggm\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"arbu\",\"privateLinkResourceRegion\":\"cvpnazzmhjrunmpx\",\"groupIds\":[\"bh\",\"bnlankxmyskpb\",\"enbtkcxywny\"],\"requestMessage\":\"rsyn\",\"connectionState\":{\"status\":\"Disconnected\",\"description\":\"by\"},\"privateLinkServiceUrl\":\"zfcl\",\"privateLinkServicePrivateIP\":\"axdbabph\"},\"location\":\"rqlfktsthsucocmn\",\"tags\":{\"bt\":\"zt\"},\"id\":\"wrqpue\",\"name\":\"ckzywbiexzfeyue\",\"type\":\"xibxujwbhqwalm\"},{\"properties\":{\"provisioningState\":\"Failed\",\"privateLinkResourceId\":\"aepdkzjanc\",\"privateLinkResourceRegion\":\"rhdwbavxbniw\",\"groupIds\":[\"wz\",\"s\"],\"requestMessage\":\"pgn\",\"connectionState\":{\"status\":\"Pending\",\"description\":\"pzxbz\"},\"privateLinkServiceUrl\":\"zabglcuhxwt\",\"privateLinkServicePrivateIP\":\"yqiklbbovplwzb\"},\"location\":\"gy\",\"tags\":{\"ss\":\"osvmk\",\"gmgsxnkjzkde\":\"qukkfp\",\"yighxpk\":\"lpvlopw\",\"baumnyqupedeoj\":\"wzbaiue\"},\"id\":\"a\",\"name\":\"ckhsmtxpsieb\",\"type\":\"fhvpesaps\"}],\"nextLink\":\"dqmh\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"privateLinkResourceId\":\"injep\",\"privateLinkResourceRegion\":\"tmryw\",\"groupIds\":[\"oqftiyqzrnkcq\",\"yx\",\"whzlsicohoq\",\"nwvlryavwhheunmm\"],\"requestMessage\":\"gyxzk\",\"connectionState\":{\"status\":\"Disconnected\",\"description\":\"koklya\"},\"privateLinkServiceUrl\":\"conuqszfkbeype\",\"privateLinkServicePrivateIP\":\"mjmwvvjektcx\"},\"location\":\"nhwlrsffrzpwvl\",\"tags\":{\"kt\":\"gbiqylihkaet\"},\"id\":\"fcivfsnkym\",\"name\":\"ctq\",\"type\":\"jf\"}],\"nextLink\":\"brjcxe\"}") .toObject(ManagedPrivateEndpointModelListResponse.class); - Assertions.assertEquals("xbf", model.value().get(0).location()); - Assertions.assertEquals("nehmpvecx", model.value().get(0).tags().get("odebfqkkrbmpu")); - Assertions.assertEquals("ttxfvjr", model.value().get(0).privateLinkResourceId()); - Assertions.assertEquals("rp", model.value().get(0).privateLinkResourceRegion()); - Assertions.assertEquals("pcyvahfnljkyqx", model.value().get(0).groupIds().get(0)); - Assertions.assertEquals("xgvcl", model.value().get(0).requestMessage()); - Assertions.assertEquals("kjeszz", model.value().get(0).privateLinkServiceUrl()); - Assertions.assertEquals("dqmh", model.nextLink()); + Assertions.assertEquals("nhwlrsffrzpwvl", model.value().get(0).location()); + Assertions.assertEquals("gbiqylihkaet", model.value().get(0).tags().get("kt")); + Assertions.assertEquals("injep", model.value().get(0).privateLinkResourceId()); + Assertions.assertEquals("tmryw", model.value().get(0).privateLinkResourceRegion()); + Assertions.assertEquals("oqftiyqzrnkcq", model.value().get(0).groupIds().get(0)); + Assertions.assertEquals("gyxzk", model.value().get(0).requestMessage()); + Assertions.assertEquals("conuqszfkbeype", model.value().get(0).privateLinkServiceUrl()); + Assertions.assertEquals("brjcxe", model.nextLink()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelPropertiesTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelPropertiesTests.java index 96a012a0c4b4..f9022220afb8 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelPropertiesTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointModelPropertiesTests.java @@ -13,28 +13,28 @@ public final class ManagedPrivateEndpointModelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedPrivateEndpointModelProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"privateLinkResourceId\":\"tgzfbishcbkh\",\"privateLinkResourceRegion\":\"deyeamdphagalpbu\",\"groupIds\":[\"ipwhonowk\",\"shwankixzbinje\",\"uttmrywnuzoqft\"],\"requestMessage\":\"qzrnkcqvyxlwhz\",\"connectionState\":{\"status\":\"Approved\",\"description\":\"hoqqnwvlr\"},\"privateLinkServiceUrl\":\"vwhheunmmqhgyx\",\"privateLinkServicePrivateIP\":\"onocukok\"}") + "{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"shxmzsbbzoggigrx\",\"privateLinkResourceRegion\":\"ur\",\"groupIds\":[\"xjnspy\",\"ptkoenkoukn\",\"udwtiukbl\"],\"requestMessage\":\"gkpocipazyxoe\",\"connectionState\":{\"status\":\"Pending\",\"description\":\"npiucgygevqznty\"},\"privateLinkServiceUrl\":\"rbpizc\",\"privateLinkServicePrivateIP\":\"qjsdpydnfyhxdeo\"}") .toObject(ManagedPrivateEndpointModelProperties.class); - Assertions.assertEquals("tgzfbishcbkh", model.privateLinkResourceId()); - Assertions.assertEquals("deyeamdphagalpbu", model.privateLinkResourceRegion()); - Assertions.assertEquals("ipwhonowk", model.groupIds().get(0)); - Assertions.assertEquals("qzrnkcqvyxlwhz", model.requestMessage()); - Assertions.assertEquals("vwhheunmmqhgyx", model.privateLinkServiceUrl()); + Assertions.assertEquals("shxmzsbbzoggigrx", model.privateLinkResourceId()); + Assertions.assertEquals("ur", model.privateLinkResourceRegion()); + Assertions.assertEquals("xjnspy", model.groupIds().get(0)); + Assertions.assertEquals("gkpocipazyxoe", model.requestMessage()); + Assertions.assertEquals("rbpizc", model.privateLinkServiceUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedPrivateEndpointModelProperties model - = new ManagedPrivateEndpointModelProperties().withPrivateLinkResourceId("tgzfbishcbkh") - .withPrivateLinkResourceRegion("deyeamdphagalpbu") - .withGroupIds(Arrays.asList("ipwhonowk", "shwankixzbinje", "uttmrywnuzoqft")) - .withRequestMessage("qzrnkcqvyxlwhz") - .withPrivateLinkServiceUrl("vwhheunmmqhgyx"); + = new ManagedPrivateEndpointModelProperties().withPrivateLinkResourceId("shxmzsbbzoggigrx") + .withPrivateLinkResourceRegion("ur") + .withGroupIds(Arrays.asList("xjnspy", "ptkoenkoukn", "udwtiukbl")) + .withRequestMessage("gkpocipazyxoe") + .withPrivateLinkServiceUrl("rbpizc"); model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointModelProperties.class); - Assertions.assertEquals("tgzfbishcbkh", model.privateLinkResourceId()); - Assertions.assertEquals("deyeamdphagalpbu", model.privateLinkResourceRegion()); - Assertions.assertEquals("ipwhonowk", model.groupIds().get(0)); - Assertions.assertEquals("qzrnkcqvyxlwhz", model.requestMessage()); - Assertions.assertEquals("vwhheunmmqhgyx", model.privateLinkServiceUrl()); + Assertions.assertEquals("shxmzsbbzoggigrx", model.privateLinkResourceId()); + Assertions.assertEquals("ur", model.privateLinkResourceRegion()); + Assertions.assertEquals("xjnspy", model.groupIds().get(0)); + Assertions.assertEquals("gkpocipazyxoe", model.requestMessage()); + Assertions.assertEquals("rbpizc", model.privateLinkServiceUrl()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointUpdateParametersTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointUpdateParametersTests.java index b78d1b84f8ef..4b01862c6361 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointUpdateParametersTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointUpdateParametersTests.java @@ -13,18 +13,18 @@ public final class ManagedPrivateEndpointUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ManagedPrivateEndpointUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"senhwlrs\":\"rmjmwvvjektc\",\"qylihkaetckt\":\"frzpwvlqdqgb\",\"ctq\":\"fcivfsnkym\",\"ebrjcxe\":\"jf\"}}") - .toObject(ManagedPrivateEndpointUpdateParameters.class); - Assertions.assertEquals("rmjmwvvjektc", model.tags().get("senhwlrs")); + ManagedPrivateEndpointUpdateParameters model + = BinaryData.fromString("{\"tags\":{\"jdeyeamdpha\":\"tgzfbishcbkh\",\"wkgshwa\":\"alpbuxwgipwhon\"}}") + .toObject(ManagedPrivateEndpointUpdateParameters.class); + Assertions.assertEquals("tgzfbishcbkh", model.tags().get("jdeyeamdpha")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedPrivateEndpointUpdateParameters model = new ManagedPrivateEndpointUpdateParameters().withTags( - mapOf("senhwlrs", "rmjmwvvjektc", "qylihkaetckt", "frzpwvlqdqgb", "ctq", "fcivfsnkym", "ebrjcxe", "jf")); + ManagedPrivateEndpointUpdateParameters model = new ManagedPrivateEndpointUpdateParameters() + .withTags(mapOf("jdeyeamdpha", "tgzfbishcbkh", "wkgshwa", "alpbuxwgipwhon")); model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointUpdateParameters.class); - Assertions.assertEquals("rmjmwvvjektc", model.tags().get("senhwlrs")); + Assertions.assertEquals("tgzfbishcbkh", model.tags().get("jdeyeamdpha")); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsCreateMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsCreateMockTests.java index cf2c2134b4ef..902d680dd9e3 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsCreateMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsCreateMockTests.java @@ -24,7 +24,7 @@ public final class ManagedPrivateEndpointsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"rtuzqogs\",\"privateLinkResourceRegion\":\"nevfdnw\",\"groupIds\":[\"ewzsyyceuzsoib\",\"ud\"],\"requestMessage\":\"rx\",\"connectionState\":{\"status\":\"Pending\",\"description\":\"vaytdwkqbrq\"},\"privateLinkServiceUrl\":\"paxh\",\"privateLinkServicePrivateIP\":\"iilivpdtiirqtd\"},\"location\":\"axoruzfgsquy\",\"tags\":{\"tramxjez\":\"xxle\",\"tdooaoj\":\"lwnwxuqlcvydyp\"},\"id\":\"niodkooeb\",\"name\":\"nuj\",\"type\":\"emmsbvdkc\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"suwsyrsnds\",\"privateLinkResourceRegion\":\"g\",\"groupIds\":[\"vraeaeneq\",\"zar\"],\"requestMessage\":\"lquuijfqkacewii\",\"connectionState\":{\"status\":\"Approved\",\"description\":\"ji\"},\"privateLinkServiceUrl\":\"wifto\",\"privateLinkServicePrivateIP\":\"kvpuvksgplsaknyn\"},\"location\":\"ynl\",\"tags\":{\"ihleos\":\"uopxodlqiyntor\",\"yzrpzbchckqqzq\":\"swsrms\",\"ysuiizynkedya\":\"ox\",\"pyy\":\"rwyhqmibzyhwitsm\"},\"id\":\"pcdpumnz\",\"name\":\"mwzn\",\"type\":\"abikns\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedPrivateEndpointModel response = manager.managedPrivateEndpoints() - .define("sphyoulpjrvxa") - .withRegion("wlycoduhpkxkg") - .withExistingGrafana("abfatkl", "dxbjhwuaanozj") - .withTags(mapOf("n", "re", "ubeddg", "jxqugjhky")) - .withPrivateLinkResourceId("mjwosytx") - .withPrivateLinkResourceRegion("cskfcktqumiekk") - .withGroupIds(Arrays.asList("ikh", "yf")) - .withRequestMessage("dgqggebdu") - .withPrivateLinkServiceUrl("oadsuvar") + .define("qyib") + .withRegion("pqlpq") + .withExistingGrafana("i", "m") + .withTags(mapOf("btkuwhh", "iuqgbdbutauv", "koymkcd", "hykojoxafnndlpic")) + .withPrivateLinkResourceId("uszdtmhrkwof") + .withPrivateLinkResourceRegion("voqacpiexpbt") + .withGroupIds(Arrays.asList("bwoenwashrt")) + .withRequestMessage("kcnqxwbpo") + .withPrivateLinkServiceUrl("sipqii") .create(); - Assertions.assertEquals("axoruzfgsquy", response.location()); - Assertions.assertEquals("xxle", response.tags().get("tramxjez")); - Assertions.assertEquals("rtuzqogs", response.privateLinkResourceId()); - Assertions.assertEquals("nevfdnw", response.privateLinkResourceRegion()); - Assertions.assertEquals("ewzsyyceuzsoib", response.groupIds().get(0)); - Assertions.assertEquals("rx", response.requestMessage()); - Assertions.assertEquals("paxh", response.privateLinkServiceUrl()); + Assertions.assertEquals("ynl", response.location()); + Assertions.assertEquals("uopxodlqiyntor", response.tags().get("ihleos")); + Assertions.assertEquals("suwsyrsnds", response.privateLinkResourceId()); + Assertions.assertEquals("g", response.privateLinkResourceRegion()); + Assertions.assertEquals("vraeaeneq", response.groupIds().get(0)); + Assertions.assertEquals("lquuijfqkacewii", response.requestMessage()); + Assertions.assertEquals("wifto", response.privateLinkServiceUrl()); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsDeleteMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsDeleteMockTests.java index ce8d5d683b38..34a8efb7fbbd 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsDeleteMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.managedPrivateEndpoints().delete("u", "zikywgg", "kallatmel", com.azure.core.util.Context.NONE); + manager.managedPrivateEndpoints() + .delete("obzdopcjwvnhdl", "wmgxcxrsl", "mutwuoe", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java index daef91c5f919..54a64e342434 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ManagedPrivateEndpointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"puvks\",\"privateLinkResourceRegion\":\"lsa\",\"groupIds\":[\"n\"],\"requestMessage\":\"ynl\",\"connectionState\":{\"status\":\"Disconnected\",\"description\":\"pxodlqiyntorzih\"},\"privateLinkServiceUrl\":\"osjswsr\",\"privateLinkServicePrivateIP\":\"lyzrpzbchckqqzqi\"},\"location\":\"iysui\",\"tags\":{\"yhwitsmypyynpcdp\":\"nkedyatrwyhqmib\",\"nsorgjhxbldt\":\"mnzgmwznmabi\",\"kotl\":\"wwrlkdmtncv\",\"gsyocogj\":\"xdy\"},\"id\":\"tdtbnnhadooc\",\"name\":\"kvci\",\"type\":\"hnvpamqgxq\"}"; + = "{\"properties\":{\"provisioningState\":\"Creating\",\"privateLinkResourceId\":\"tdum\",\"privateLinkResourceRegion\":\"p\",\"groupIds\":[\"bmnzbtbhjpgl\",\"fgohdneuelfphs\",\"yhtozfikdowwqu\",\"v\"],\"requestMessage\":\"xclvit\",\"connectionState\":{\"status\":\"Approved\",\"description\":\"nosggbhcoh\"},\"privateLinkServiceUrl\":\"dsjnka\",\"privateLinkServicePrivateIP\":\"utiiswacf\"},\"location\":\"dkzzewkfvhqcrail\",\"tags\":{\"wdmhdlxyjrxs\":\"ppfufl\"},\"id\":\"gafcnihgwqapnedg\",\"name\":\"bcvkcvqvpkeq\",\"type\":\"cvdrhvoodsot\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedPrivateEndpointModel response = manager.managedPrivateEndpoints() - .getWithResponse("wlquuijfqkace", "iipfpubj", "bwwift", com.azure.core.util.Context.NONE) + .getWithResponse("wlrbqtkoievseo", "gqrlltmuwla", "wzizxbmpgcjefuzm", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iysui", response.location()); - Assertions.assertEquals("nkedyatrwyhqmib", response.tags().get("yhwitsmypyynpcdp")); - Assertions.assertEquals("puvks", response.privateLinkResourceId()); - Assertions.assertEquals("lsa", response.privateLinkResourceRegion()); - Assertions.assertEquals("n", response.groupIds().get(0)); - Assertions.assertEquals("ynl", response.requestMessage()); - Assertions.assertEquals("osjswsr", response.privateLinkServiceUrl()); + Assertions.assertEquals("dkzzewkfvhqcrail", response.location()); + Assertions.assertEquals("ppfufl", response.tags().get("wdmhdlxyjrxs")); + Assertions.assertEquals("tdum", response.privateLinkResourceId()); + Assertions.assertEquals("p", response.privateLinkResourceRegion()); + Assertions.assertEquals("bmnzbtbhjpgl", response.groupIds().get(0)); + Assertions.assertEquals("xclvit", response.requestMessage()); + Assertions.assertEquals("dsjnka", response.privateLinkServiceUrl()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsListMockTests.java index b3e341ec034a..f30942638b61 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsListMockTests.java @@ -22,7 +22,7 @@ public final class ManagedPrivateEndpointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateLinkResourceId\":\"nxxmueedndrdv\",\"privateLinkResourceRegion\":\"kwqqtchealmf\",\"groupIds\":[\"aayg\"],\"requestMessage\":\"wvgpiohg\",\"connectionState\":{\"status\":\"Approved\",\"description\":\"udxepxgyqagv\"},\"privateLinkServiceUrl\":\"mnpkukghimdblxg\",\"privateLinkServicePrivateIP\":\"mfnjh\"},\"location\":\"xw\",\"tags\":{\"yfkzik\":\"kkfoqr\"},\"id\":\"jawneaiv\",\"name\":\"wczelpci\",\"type\":\"elsfeaen\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"privateLinkResourceId\":\"zzlvmbmpaxmodfv\",\"privateLinkResourceRegion\":\"fy\",\"groupIds\":[\"pfvmwyhrfou\",\"ft\"],\"requestMessage\":\"kcpwiy\",\"connectionState\":{\"status\":\"Disconnected\",\"description\":\"nubexk\"},\"privateLinkServiceUrl\":\"ksmond\",\"privateLinkServicePrivateIP\":\"quxvypomgkop\"},\"location\":\"hojvpajqgxysmocm\",\"tags\":{\"apvhelxprgly\":\"qvmkcxo\"},\"id\":\"tddckcb\",\"name\":\"uejrjxgc\",\"type\":\"qibrhosxsdqrhzoy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedPrivateEndpoints().list("uipiccjzk", "ivgvvcna", com.azure.core.util.Context.NONE); + = manager.managedPrivateEndpoints().list("rpkhjwn", "yqsluic", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xw", response.iterator().next().location()); - Assertions.assertEquals("kkfoqr", response.iterator().next().tags().get("yfkzik")); - Assertions.assertEquals("nxxmueedndrdv", response.iterator().next().privateLinkResourceId()); - Assertions.assertEquals("kwqqtchealmf", response.iterator().next().privateLinkResourceRegion()); - Assertions.assertEquals("aayg", response.iterator().next().groupIds().get(0)); - Assertions.assertEquals("wvgpiohg", response.iterator().next().requestMessage()); - Assertions.assertEquals("mnpkukghimdblxg", response.iterator().next().privateLinkServiceUrl()); + Assertions.assertEquals("hojvpajqgxysmocm", response.iterator().next().location()); + Assertions.assertEquals("qvmkcxo", response.iterator().next().tags().get("apvhelxprgly")); + Assertions.assertEquals("zzlvmbmpaxmodfv", response.iterator().next().privateLinkResourceId()); + Assertions.assertEquals("fy", response.iterator().next().privateLinkResourceRegion()); + Assertions.assertEquals("pfvmwyhrfou", response.iterator().next().groupIds().get(0)); + Assertions.assertEquals("kcpwiy", response.iterator().next().requestMessage()); + Assertions.assertEquals("ksmond", response.iterator().next().privateLinkServiceUrl()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsRefreshMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsRefreshMockTests.java index 5559e13d379b..328023ba81c2 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsRefreshMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedPrivateEndpointsRefreshMockTests.java @@ -27,7 +27,7 @@ public void testRefresh() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.managedPrivateEndpoints().refresh("dgvraeaeneq", "zar", com.azure.core.util.Context.NONE); + manager.managedPrivateEndpoints().refresh("gxhuriplbp", "dxunkbebxmubyyn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedServiceIdentityTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedServiceIdentityTests.java index 384a04583dae..35fac1d1d54f 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedServiceIdentityTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ManagedServiceIdentityTests.java @@ -16,18 +16,17 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"y\",\"tenantId\":\"ivkwlzuvccfwnfnb\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"feallnwsu\":{\"principalId\":\"nlebxetqgtzxd\",\"clientId\":\"qbqqwxr\"},\"ooch\":{\"principalId\":\"snjampmng\",\"clientId\":\"scxaq\"}}}") + "{\"principalId\":\"lcuiywgqywgndr\",\"tenantId\":\"nhzgpphrcgyn\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"abcypmivk\":{\"principalId\":\"cfvmmco\",\"clientId\":\"sxlzevgbmqj\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("feallnwsu", new UserAssignedIdentity(), "ooch", new UserAssignedIdentity())); + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("abcypmivk", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/MarketplaceTrialQuotaTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/MarketplaceTrialQuotaTests.java index f16c720fb053..04789fbc16ca 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/MarketplaceTrialQuotaTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/MarketplaceTrialQuotaTests.java @@ -14,11 +14,11 @@ public final class MarketplaceTrialQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceTrialQuota model = BinaryData.fromString( - "{\"availablePromotion\":\"None\",\"grafanaResourceId\":\"hqyudxorrqnbpoc\",\"trialStartAt\":\"2021-10-04T17:32:47Z\",\"trialEndAt\":\"2021-01-21T05:29:12Z\"}") + "{\"availablePromotion\":\"None\",\"grafanaResourceId\":\"thfuiuaodsfcpkvx\",\"trialStartAt\":\"2021-07-31T05:00:25Z\",\"trialEndAt\":\"2021-06-07T12:26:40Z\"}") .toObject(MarketplaceTrialQuota.class); Assertions.assertEquals(AvailablePromotion.NONE, model.availablePromotion()); - Assertions.assertEquals("hqyudxorrqnbpoc", model.grafanaResourceId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T17:32:47Z"), model.trialStartAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T05:29:12Z"), model.trialEndAt()); + Assertions.assertEquals("thfuiuaodsfcpkvx", model.grafanaResourceId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T05:00:25Z"), model.trialStartAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T12:26:40Z"), model.trialEndAt()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/OperationsListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/OperationsListMockTests.java index c370eebbdac5..49fd98ea7292 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/OperationsListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"dhtldwkyz\",\"isDataAction\":false,\"display\":{\"provider\":\"ncwscwsvlxoto\",\"resource\":\"wrupqsxvnmicykvc\",\"operation\":\"vei\",\"description\":\"vnotyfjfcnj\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"uwutttxfvjrbi\",\"isDataAction\":true,\"display\":{\"provider\":\"pcyvahfnljkyqx\",\"resource\":\"uujqgidokgjljyo\",\"operation\":\"vcltbgsncgh\",\"description\":\"esz\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 79c4605d93fc..0db73a642900 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"hoxus\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"bgyepsbj\",\"actionsRequired\":\"zq\"},\"groupIds\":[\"ywpmueefjzwfqkq\",\"jidsuyonobglaoc\",\"xtccmg\",\"udxytlmoyrx\"],\"provisioningState\":\"Creating\"},\"id\":\"dw\",\"name\":\"zntxhdz\",\"type\":\"lrqjbhckfr\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"zpuzycisp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"hmgkbrpyy\",\"actionsRequired\":\"ibnuqqkpik\"},\"groupIds\":[\"gvtqagnbuynh\",\"jggmebfsiarbu\"],\"provisioningState\":\"Failed\"},\"id\":\"pnazzm\",\"name\":\"jrunmpxtt\",\"type\":\"bh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("dhbt", "kphywpnvjto", "nermcl", com.azure.core.util.Context.NONE) + .getWithResponse("htxfvgxbfsmxnehm", "vecxgodebfqkk", "bmpukgriwflz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("bgyepsbj", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("zq", response.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("ywpmueefjzwfqkq", response.groupIds().get(0)); + Assertions.assertEquals("hmgkbrpyy", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ibnuqqkpik", response.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("gvtqagnbuynh", response.groupIds().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsListMockTests.java index e6e19bba3172..1950484f312c 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateEndpointConnectionsListMockTests.java @@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"kuwbcrnwb\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"seyvj\",\"actionsRequired\":\"rts\"},\"groupIds\":[\"pkdeemaofmxagkvt\",\"elmqk\"],\"provisioningState\":\"Deleting\"},\"id\":\"vljua\",\"name\":\"aquhcdhm\",\"type\":\"ualaexqpvfadmw\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"yn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ybyxc\",\"actionsRequired\":\"clha\"},\"groupIds\":[\"babphlwrqlfk\",\"sthsu\"],\"provisioningState\":\"Deleting\"},\"id\":\"nyyazttbtwwrqpue\",\"name\":\"ckzywbiexzfeyue\",\"type\":\"xibxujwbhqwalm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.privateEndpointConnections().list("hrxsbk", "vpycanuzbp", com.azure.core.util.Context.NONE); + PagedIterable response = manager.privateEndpointConnections() + .list("bnlankxmyskpb", "enbtkcxywny", com.azure.core.util.Context.NONE); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("seyvj", response.iterator().next().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("rts", + Assertions.assertEquals("ybyxc", response.iterator().next().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("clha", response.iterator().next().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("pkdeemaofmxagkvt", response.iterator().next().groupIds().get(0)); + Assertions.assertEquals("babphlwrqlfk", response.iterator().next().groupIds().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesGetWithResponseMockTests.java index 882273a1e258..a8aa5562240e 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesGetWithResponseMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Deleted\",\"groupId\":\"e\",\"requiredMembers\":[\"wkz\"],\"requiredZoneNames\":[\"io\",\"rqhakauha\",\"hsfwxosowzxcug\"]},\"id\":\"jooxdjebw\",\"name\":\"ucww\",\"type\":\"vo\"}"; + = "{\"properties\":{\"provisioningState\":\"Deleting\",\"groupId\":\"bpg\",\"requiredMembers\":[\"txhp\",\"xbzpfzab\"],\"requiredZoneNames\":[\"uhxwtctyqiklbbov\"]},\"id\":\"wzbhvgyugu\",\"name\":\"svmkfssxquk\",\"type\":\"fpl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateLinkResource response = manager.privateLinkResources() - .getWithResponse("rcrgvx", "vgomz", "fmisg", com.azure.core.util.Context.NONE) + .getWithResponse("zyoxaepdkzjan", "ux", "hdwbavxbniwdjs", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("io", response.requiredZoneNames().get(0)); + Assertions.assertEquals("uhxwtctyqiklbbov", response.requiredZoneNames().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesListMockTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesListMockTests.java index 51e81a82b778..97c41d663417 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesListMockTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/PrivateLinkResourcesListMockTests.java @@ -22,7 +22,7 @@ public final class PrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"groupId\":\"twm\",\"requiredMembers\":[\"tdx\",\"it\"],\"requiredZoneNames\":[\"jawgqwg\"]},\"id\":\"ni\",\"name\":\"kxfbkpycgklwndn\",\"type\":\"jdauwhvy\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"groupId\":\"wiyighxpkdw\",\"requiredMembers\":[\"iuebbaumny\",\"upedeojnabckhs\",\"txp\",\"ie\"],\"requiredZoneNames\":[\"hvpesapskrdqm\",\"jjdhtld\",\"kyzxuutk\"]},\"id\":\"ws\",\"name\":\"wsvlxotogtwrupqs\",\"type\":\"vnm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.privateLinkResources().list("bvmeuecivy", "zceuojgjrw", com.azure.core.util.Context.NONE); + = manager.privateLinkResources().list("mg", "xnkjzkdesl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jawgqwg", response.iterator().next().requiredZoneNames().get(0)); + Assertions.assertEquals("hvpesapskrdqm", response.iterator().next().requiredZoneNames().get(0)); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ResourceSkuTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ResourceSkuTests.java index 3d037f5dc799..7c912c64f13d 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ResourceSkuTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/ResourceSkuTests.java @@ -11,14 +11,14 @@ public final class ResourceSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceSku model = BinaryData.fromString("{\"name\":\"wpyeicxmqciwqvh\"}").toObject(ResourceSku.class); - Assertions.assertEquals("wpyeicxmqciwqvh", model.name()); + ResourceSku model = BinaryData.fromString("{\"name\":\"oqfbowskanyk\"}").toObject(ResourceSku.class); + Assertions.assertEquals("oqfbowskanyk", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceSku model = new ResourceSku().withName("wpyeicxmqciwqvh"); + ResourceSku model = new ResourceSku().withName("oqfbowskanyk"); model = BinaryData.fromObject(model).toObject(ResourceSku.class); - Assertions.assertEquals("wpyeicxmqciwqvh", model.name()); + Assertions.assertEquals("oqfbowskanyk", model.name()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SaasSubscriptionDetailsTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SaasSubscriptionDetailsTests.java index ea55313d5e5d..6b5ced59cf8b 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SaasSubscriptionDetailsTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SaasSubscriptionDetailsTests.java @@ -13,13 +13,13 @@ public final class SaasSubscriptionDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SaasSubscriptionDetails model = BinaryData.fromString( - "{\"planId\":\"thfuiuaodsfcpkvx\",\"offerId\":\"puozmyzydag\",\"publisherId\":\"axbezyiuo\",\"term\":{\"termUnit\":\"whrdxwzywqsmbsu\",\"startDate\":\"2021-04-26T13:01:12Z\",\"endDate\":\"2021-01-22T07:51:44Z\"}}") + "{\"planId\":\"ngj\",\"offerId\":\"cczsq\",\"publisherId\":\"hvmdajvnysounq\",\"term\":{\"termUnit\":\"noae\",\"startDate\":\"2021-10-06T07:30:47Z\",\"endDate\":\"2021-12-02T06:25:29Z\"}}") .toObject(SaasSubscriptionDetails.class); - Assertions.assertEquals("thfuiuaodsfcpkvx", model.planId()); - Assertions.assertEquals("puozmyzydag", model.offerId()); - Assertions.assertEquals("axbezyiuo", model.publisherId()); - Assertions.assertEquals("whrdxwzywqsmbsu", model.term().termUnit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-26T13:01:12Z"), model.term().startDate()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T07:51:44Z"), model.term().endDate()); + Assertions.assertEquals("ngj", model.planId()); + Assertions.assertEquals("cczsq", model.offerId()); + Assertions.assertEquals("hvmdajvnysounq", model.publisherId()); + Assertions.assertEquals("noae", model.term().termUnit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T07:30:47Z"), model.term().startDate()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-02T06:25:29Z"), model.term().endDate()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SecurityTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SecurityTests.java index fa90daded200..474decf2b512 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SecurityTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SecurityTests.java @@ -11,14 +11,14 @@ public final class SecurityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Security model = BinaryData.fromString("{\"csrfAlwaysCheck\":false}").toObject(Security.class); - Assertions.assertFalse(model.csrfAlwaysCheck()); + Security model = BinaryData.fromString("{\"csrfAlwaysCheck\":true}").toObject(Security.class); + Assertions.assertTrue(model.csrfAlwaysCheck()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Security model = new Security().withCsrfAlwaysCheck(false); + Security model = new Security().withCsrfAlwaysCheck(true); model = BinaryData.fromObject(model).toObject(Security.class); - Assertions.assertFalse(model.csrfAlwaysCheck()); + Assertions.assertTrue(model.csrfAlwaysCheck()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SubscriptionTermTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SubscriptionTermTests.java index 11780ae3b870..4832e1afd2e7 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SubscriptionTermTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/SubscriptionTermTests.java @@ -13,10 +13,10 @@ public final class SubscriptionTermTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubscriptionTerm model = BinaryData.fromString( - "{\"termUnit\":\"ryocfsfksymdd\",\"startDate\":\"2021-10-14T00:14:42Z\",\"endDate\":\"2021-06-14T21:05:42Z\"}") + "{\"termUnit\":\"ltrpmopj\",\"startDate\":\"2021-03-14T07:19:34Z\",\"endDate\":\"2021-01-13T06:54:34Z\"}") .toObject(SubscriptionTerm.class); - Assertions.assertEquals("ryocfsfksymdd", model.termUnit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-14T00:14:42Z"), model.startDate()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-14T21:05:42Z"), model.endDate()); + Assertions.assertEquals("ltrpmopj", model.termUnit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-14T07:19:34Z"), model.startDate()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T06:54:34Z"), model.endDate()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UserAssignedIdentityTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UserAssignedIdentityTests.java index 507d4d34509d..ecd2a592bc50 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UserAssignedIdentityTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/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\":\"onq\",\"clientId\":\"kvlrxnj\"}") - .toObject(UserAssignedIdentity.class); + UserAssignedIdentity model + = BinaryData.fromString("{\"principalId\":\"zuvccfwnfnbacfio\",\"clientId\":\"ebxetqgtzxdp\"}") + .toObject(UserAssignedIdentity.class); } @org.junit.jupiter.api.Test diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UsersTests.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UsersTests.java index e2e69dacf940..b163dada5fbf 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UsersTests.java +++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/test/java/com/azure/resourcemanager/dashboard/generated/UsersTests.java @@ -12,16 +12,16 @@ public final class UsersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Users model - = BinaryData.fromString("{\"viewersCanEdit\":false,\"editorsCanAdmin\":false}").toObject(Users.class); + = BinaryData.fromString("{\"viewersCanEdit\":false,\"editorsCanAdmin\":true}").toObject(Users.class); Assertions.assertFalse(model.viewersCanEdit()); - Assertions.assertFalse(model.editorsCanAdmin()); + Assertions.assertTrue(model.editorsCanAdmin()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Users model = new Users().withViewersCanEdit(false).withEditorsCanAdmin(false); + Users model = new Users().withViewersCanEdit(false).withEditorsCanAdmin(true); model = BinaryData.fromObject(model).toObject(Users.class); Assertions.assertFalse(model.viewersCanEdit()); - Assertions.assertFalse(model.editorsCanAdmin()); + Assertions.assertTrue(model.editorsCanAdmin()); } } diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/tsp-location.yaml b/sdk/dashboard/azure-resourcemanager-dashboard/tsp-location.yaml index eb94f06aa926..14102d97171a 100644 --- a/sdk/dashboard/azure-resourcemanager-dashboard/tsp-location.yaml +++ b/sdk/dashboard/azure-resourcemanager-dashboard/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/dashboard/Dashboard.Management -commit: 4c09d8bbeea862f6a84a75f703c3a30ed48fc5cc +commit: 737d276c61674f351c2d8ff06c69341ee0f7a598 repo: Azure/azure-rest-api-specs additionalDirectories: