deleteAsync(
+ String resourceGroupName, String workspaceName, String managedPrivateEndpointName, Context context) {
+ return beginDeleteAsync(resourceGroupName, workspaceName, managedPrivateEndpointName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a managed private endpoint for a 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 managedPrivateEndpointName The managed private endpoint name of Azure Managed Grafana.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String workspaceName, String managedPrivateEndpointName) {
+ deleteAsync(resourceGroupName, workspaceName, managedPrivateEndpointName).block();
+ }
+
+ /**
+ * Delete a managed private endpoint for a 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 managedPrivateEndpointName The managed private endpoint name of Azure Managed Grafana.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String workspaceName, String managedPrivateEndpointName, Context context) {
+ deleteAsync(resourceGroupName, workspaceName, managedPrivateEndpointName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink 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 list of managed private endpoints of a grafana resource along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink 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 list of managed private endpoints of a grafana resource along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedPrivateEndpointsImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedPrivateEndpointsImpl.java
new file mode 100644
index 000000000000..3524c3a49253
--- /dev/null
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/ManagedPrivateEndpointsImpl.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dashboard.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dashboard.fluent.ManagedPrivateEndpointsClient;
+import com.azure.resourcemanager.dashboard.fluent.models.ManagedPrivateEndpointModelInner;
+import com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpointModel;
+import com.azure.resourcemanager.dashboard.models.ManagedPrivateEndpoints;
+
+public final class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
+ private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointsImpl.class);
+
+ private final ManagedPrivateEndpointsClient innerClient;
+
+ private final com.azure.resourcemanager.dashboard.DashboardManager serviceManager;
+
+ public ManagedPrivateEndpointsImpl(
+ ManagedPrivateEndpointsClient innerClient,
+ com.azure.resourcemanager.dashboard.DashboardManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, workspaceName);
+ return Utils.mapPage(inner, inner1 -> new ManagedPrivateEndpointModelImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String resourceGroupName, String workspaceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, workspaceName, context);
+ return Utils.mapPage(inner, inner1 -> new ManagedPrivateEndpointModelImpl(inner1, this.manager()));
+ }
+
+ public void refresh(String resourceGroupName, String workspaceName) {
+ this.serviceClient().refresh(resourceGroupName, workspaceName);
+ }
+
+ public void refresh(String resourceGroupName, String workspaceName, Context context) {
+ this.serviceClient().refresh(resourceGroupName, workspaceName, context);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String managedPrivateEndpointName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, workspaceName, managedPrivateEndpointName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ManagedPrivateEndpointModelImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ManagedPrivateEndpointModel get(
+ String resourceGroupName, String workspaceName, String managedPrivateEndpointName) {
+ ManagedPrivateEndpointModelInner inner =
+ this.serviceClient().get(resourceGroupName, workspaceName, managedPrivateEndpointName);
+ if (inner != null) {
+ return new ManagedPrivateEndpointModelImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String workspaceName, String managedPrivateEndpointName) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, managedPrivateEndpointName);
+ }
+
+ public void delete(
+ String resourceGroupName, String workspaceName, String managedPrivateEndpointName, Context context) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, managedPrivateEndpointName, context);
+ }
+
+ public ManagedPrivateEndpointModel getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "grafana");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'grafana'.", id)));
+ }
+ String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints");
+ if (managedPrivateEndpointName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.",
+ id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, workspaceName, managedPrivateEndpointName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "grafana");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'grafana'.", id)));
+ }
+ String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints");
+ if (managedPrivateEndpointName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, workspaceName, managedPrivateEndpointName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "grafana");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'grafana'.", id)));
+ }
+ String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints");
+ if (managedPrivateEndpointName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.",
+ id)));
+ }
+ this.delete(resourceGroupName, workspaceName, managedPrivateEndpointName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "grafana");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'grafana'.", id)));
+ }
+ String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints");
+ if (managedPrivateEndpointName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedPrivateEndpoints'.",
+ id)));
+ }
+ this.delete(resourceGroupName, workspaceName, managedPrivateEndpointName, context);
+ }
+
+ private ManagedPrivateEndpointsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.dashboard.DashboardManager manager() {
+ return this.serviceManager;
+ }
+
+ public ManagedPrivateEndpointModelImpl define(String name) {
+ return new ManagedPrivateEndpointModelImpl(name, this.manager());
+ }
+}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/OperationsClientImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/OperationsClientImpl.java
index 84715c67e26f..095dc8cc68a6 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/OperationsClientImpl.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/OperationsClientImpl.java
@@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "DashboardManagementC")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.Dashboard/operations")
@ExpectedResponses({200})
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsClientImpl.java
index c33bdfd48d52..c8192f15aa84 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -65,11 +65,10 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
*/
@Host("{$host}")
@ServiceInterface(name = "DashboardManagementC")
- private interface PrivateEndpointConnectionsService {
+ public interface PrivateEndpointConnectionsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -84,8 +83,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> approve(
@@ -101,8 +99,7 @@ Mono>> approve(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -117,8 +114,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateEndpointConnections")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -275,15 +271,16 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The workspace name of Azure Managed Grafana.
* @param privateEndpointConnectionName The private endpoint connection name of Azure Managed Grafana.
+ * @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 private endpoint connections.
+ * @return private endpoint connections along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner get(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
- return getAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block();
}
/**
@@ -292,16 +289,16 @@ public PrivateEndpointConnectionInner get(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The workspace name of Azure Managed Grafana.
* @param privateEndpointConnectionName The private endpoint connection name of Azure Managed Grafana.
- * @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 private endpoint connections along with {@link Response}.
+ * @return private endpoint connections.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block();
+ public PrivateEndpointConnectionInner get(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ return getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE)
+ .getValue();
}
/**
@@ -463,6 +460,33 @@ private PollerFlux, PrivateEndpointCo
this.client.getContext());
}
+ /**
+ * Manual approve private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The workspace name of Azure Managed Grafana.
+ * @param privateEndpointConnectionName The private endpoint connection name of Azure Managed Grafana.
+ * @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 Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, PrivateEndpointConnectionInner> beginApproveAsync(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ final PrivateEndpointConnectionInner body = null;
+ Mono>> mono =
+ approveWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ PrivateEndpointConnectionInner.class,
+ PrivateEndpointConnectionInner.class,
+ this.client.getContext());
+ }
+
/**
* Manual approve private endpoint connection.
*
@@ -502,7 +526,6 @@ private PollerFlux, PrivateEndpointCo
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The workspace name of Azure Managed Grafana.
* @param privateEndpointConnectionName The private endpoint connection name of Azure Managed Grafana.
- * @param body The Private Endpoint Connection resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -510,11 +533,11 @@ private PollerFlux, PrivateEndpointCo
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PrivateEndpointConnectionInner> beginApprove(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner body) {
- return beginApproveAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body).getSyncPoller();
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ final PrivateEndpointConnectionInner body = null;
+ return this
+ .beginApproveAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body)
+ .getSyncPoller();
}
/**
@@ -537,7 +560,8 @@ public SyncPoller, PrivateEndpointCon
String privateEndpointConnectionName,
PrivateEndpointConnectionInner body,
Context context) {
- return beginApproveAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body, context)
+ return this
+ .beginApproveAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body, context)
.getSyncPoller();
}
@@ -609,27 +633,6 @@ private Mono approveAsync(
.flatMap(this.client::getLroFinalResultOrError);
}
- /**
- * Manual approve private endpoint connection.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The workspace name of Azure Managed Grafana.
- * @param privateEndpointConnectionName The private endpoint connection name of Azure Managed Grafana.
- * @param body The Private Endpoint Connection resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner approve(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner body) {
- return approveAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, body).block();
- }
-
/**
* Manual approve private endpoint connection.
*
@@ -840,7 +843,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
- return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).getSyncPoller();
}
/**
@@ -858,7 +861,8 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
- return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context)
+ return this
+ .beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context)
.getSyncPoller();
}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsImpl.java
index 50228131b8ae..d2c9cffd3cdc 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsImpl.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateEndpointConnectionsImpl.java
@@ -28,17 +28,6 @@ public PrivateEndpointConnectionsImpl(
this.serviceManager = serviceManager;
}
- public PrivateEndpointConnection get(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
- PrivateEndpointConnectionInner inner =
- this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName);
- if (inner != null) {
- return new PrivateEndpointConnectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
Response inner =
@@ -56,6 +45,17 @@ public Response getWithResponse(
}
}
+ public PrivateEndpointConnection get(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionInner inner =
+ this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName);
+ if (inner != null) {
+ return new PrivateEndpointConnectionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
this.serviceClient().delete(resourceGroupName, workspaceName, privateEndpointConnectionName);
}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesClientImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesClientImpl.java
index 1c6415a013b9..82c8a51b75db 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesClientImpl.java
@@ -56,11 +56,10 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
*/
@Host("{$host}")
@ServiceInterface(name = "DashboardManagementC")
- private interface PrivateLinkResourcesService {
+ public interface PrivateLinkResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateLinkResources")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -74,8 +73,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"
- + "/{workspaceName}/privateLinkResources/{privateLinkResourceName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -415,15 +413,16 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The workspace name of Azure Managed Grafana.
* @param privateLinkResourceName The privateLinkResourceName 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 specific private link resource information for this grafana resource.
+ * @return specific private link resource information for this grafana resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateLinkResourceInner get(
- String resourceGroupName, String workspaceName, String privateLinkResourceName) {
- return getAsync(resourceGroupName, workspaceName, privateLinkResourceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName, context).block();
}
/**
@@ -432,16 +431,15 @@ public PrivateLinkResourceInner get(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The workspace name of Azure Managed Grafana.
* @param privateLinkResourceName The privateLinkResourceName 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 specific private link resource information for this grafana resource along with {@link Response}.
+ * @return specific private link resource information for this grafana resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName, context).block();
+ public PrivateLinkResourceInner get(
+ String resourceGroupName, String workspaceName, String privateLinkResourceName) {
+ return getWithResponse(resourceGroupName, workspaceName, privateLinkResourceName, Context.NONE).getValue();
}
/**
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesImpl.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesImpl.java
index b2d8aeaf854c..23f5967b0c7d 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesImpl.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/PrivateLinkResourcesImpl.java
@@ -38,16 +38,6 @@ public PagedIterable list(String resourceGroupName, String
return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
- public PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName) {
- PrivateLinkResourceInner inner =
- this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName);
- if (inner != null) {
- return new PrivateLinkResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) {
Response inner =
@@ -63,6 +53,16 @@ public Response getWithResponse(
}
}
+ public PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName) {
+ PrivateLinkResourceInner inner =
+ this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName);
+ if (inner != null) {
+ return new PrivateLinkResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private PrivateLinkResourcesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/Utils.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/Utils.java
index a1247617ced4..d534468bd849 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/Utils.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/implementation/Utils.java
@@ -20,6 +20,9 @@
import reactor.core.publisher.Flux;
final class Utils {
+ private Utils() {
+ }
+
static String getValueFromIdByName(String id, String name) {
if (id == null) {
return null;
@@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
segments.add(idSegment);
idItrReverted.forEachRemaining(segments::add);
Collections.reverse(segments);
- if (segments.size() > 0 && segments.get(0).isEmpty()) {
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
segments.remove(0);
}
return String.join("/", segments);
@@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
}
static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
- return new PagedIterableImpl(pageIterable, mapper);
+ return new PagedIterableImpl<>(pageIterable, mapper);
}
private static final class PagedIterableImpl extends PagedIterable {
@@ -133,30 +136,27 @@ public Stream> streamByPage(String continuationToken, int prefe
@Override
public Iterator iterator() {
- return new IteratorImpl(pagedIterable.iterator(), mapper);
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
}
@Override
public Iterable> iterableByPage() {
- return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(continuationToken), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
}
@Override
public Iterable> iterableByPage(int preferredPageSize) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
}
}
@@ -198,7 +198,7 @@ private IterableImpl(Iterable iterable, Function mapper) {
@Override
public Iterator iterator() {
- return new IteratorImpl(iterable.iterator(), mapper);
+ return new IteratorImpl<>(iterable.iterator(), mapper);
}
}
}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ActionType.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ActionType.java
index 27d34144b041..a717504a7c68 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ActionType.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ActionType.java
@@ -13,6 +13,15 @@ public final class ActionType extends ExpandableStringEnum {
/** Static value Internal for ActionType. */
public static final ActionType INTERNAL = fromString("Internal");
+ /**
+ * Creates a new instance of ActionType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionType() {
+ }
+
/**
* Creates or finds a ActionType from its string representation.
*
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ApiKey.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ApiKey.java
index 73a3d6824bb4..e038c6ed3eba 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ApiKey.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/ApiKey.java
@@ -16,6 +16,15 @@ public final class ApiKey extends ExpandableStringEnum {
/** Static value Enabled for ApiKey. */
public static final ApiKey ENABLED = fromString("Enabled");
+ /**
+ * Creates a new instance of ApiKey value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ApiKey() {
+ }
+
/**
* Creates or finds a ApiKey from its string representation.
*
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AutoGeneratedDomainNameLabelScope.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AutoGeneratedDomainNameLabelScope.java
index 0e4d1c1077c9..3c8d9970a434 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AutoGeneratedDomainNameLabelScope.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AutoGeneratedDomainNameLabelScope.java
@@ -13,6 +13,15 @@ public final class AutoGeneratedDomainNameLabelScope extends ExpandableStringEnu
/** Static value TenantReuse for AutoGeneratedDomainNameLabelScope. */
public static final AutoGeneratedDomainNameLabelScope TENANT_REUSE = fromString("TenantReuse");
+ /**
+ * Creates a new instance of AutoGeneratedDomainNameLabelScope value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AutoGeneratedDomainNameLabelScope() {
+ }
+
/**
* Creates or finds a AutoGeneratedDomainNameLabelScope from its string representation.
*
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AvailablePromotion.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AvailablePromotion.java
new file mode 100644
index 000000000000..ac8d51eabb27
--- /dev/null
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AvailablePromotion.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dashboard.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for AvailablePromotion. */
+public final class AvailablePromotion extends ExpandableStringEnum {
+ /** Static value None for AvailablePromotion. */
+ public static final AvailablePromotion NONE = fromString("None");
+
+ /** Static value FreeTrial for AvailablePromotion. */
+ public static final AvailablePromotion FREE_TRIAL = fromString("FreeTrial");
+
+ /**
+ * Creates a new instance of AvailablePromotion value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AvailablePromotion() {
+ }
+
+ /**
+ * Creates or finds a AvailablePromotion from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AvailablePromotion.
+ */
+ @JsonCreator
+ public static AvailablePromotion fromString(String name) {
+ return fromString(name, AvailablePromotion.class);
+ }
+
+ /**
+ * Gets known AvailablePromotion values.
+ *
+ * @return known AvailablePromotion values.
+ */
+ public static Collection values() {
+ return values(AvailablePromotion.class);
+ }
+}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AzureMonitorWorkspaceIntegration.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AzureMonitorWorkspaceIntegration.java
index 3e2c3f87c585..bc9c886d551c 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AzureMonitorWorkspaceIntegration.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/AzureMonitorWorkspaceIntegration.java
@@ -16,6 +16,10 @@ public final class AzureMonitorWorkspaceIntegration {
@JsonProperty(value = "azureMonitorWorkspaceResourceId")
private String azureMonitorWorkspaceResourceId;
+ /** Creates an instance of AzureMonitorWorkspaceIntegration class. */
+ public AzureMonitorWorkspaceIntegration() {
+ }
+
/**
* Get the azureMonitorWorkspaceResourceId property: The resource Id of the connected Azure Monitor Workspace.
*
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/DeterministicOutboundIp.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/DeterministicOutboundIp.java
index a59266be3f57..c67041d9cd32 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/DeterministicOutboundIp.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/DeterministicOutboundIp.java
@@ -16,6 +16,15 @@ public final class DeterministicOutboundIp extends ExpandableStringEnum value();
+
+ /**
+ * Gets the nextLink property: The nextLink property.
+ *
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.dashboard.fluent.models.GrafanaAvailablePluginListResponseInner object.
+ *
+ * @return the inner object.
+ */
+ GrafanaAvailablePluginListResponseInner innerModel();
+}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaConfigurations.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaConfigurations.java
new file mode 100644
index 000000000000..69a9a7249bf4
--- /dev/null
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaConfigurations.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dashboard.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Server configurations of a Grafana instance. */
+@Fluent
+public final class GrafanaConfigurations {
+ /*
+ * Email server settings.
+ * https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
+ */
+ @JsonProperty(value = "smtp")
+ private Smtp smtp;
+
+ /** Creates an instance of GrafanaConfigurations class. */
+ public GrafanaConfigurations() {
+ }
+
+ /**
+ * Get the smtp property: Email server settings.
+ * https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp.
+ *
+ * @return the smtp value.
+ */
+ public Smtp smtp() {
+ return this.smtp;
+ }
+
+ /**
+ * Set the smtp property: Email server settings.
+ * https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp.
+ *
+ * @param smtp the smtp value to set.
+ * @return the GrafanaConfigurations object itself.
+ */
+ public GrafanaConfigurations withSmtp(Smtp smtp) {
+ this.smtp = smtp;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (smtp() != null) {
+ smtp().validate();
+ }
+ }
+}
diff --git a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaIntegrations.java b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaIntegrations.java
index 846cb1b8f30f..c6741ce268a9 100644
--- a/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaIntegrations.java
+++ b/sdk/dashboard/azure-resourcemanager-dashboard/src/main/java/com/azure/resourcemanager/dashboard/models/GrafanaIntegrations.java
@@ -20,6 +20,10 @@ public final class GrafanaIntegrations {
@JsonProperty(value = "azureMonitorWorkspaceIntegrations")
private List