getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String devBoxDefinitionName,
+ Context context) {
+ return getErrorDetailsWithResponseAsync(
+ resourceGroupName, devCenterName, catalogName, devBoxDefinitionName, context)
+ .block();
+ }
+
+ /**
+ * Gets Catalog Devbox Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param devBoxDefinitionName The name of the Dev Box definition.
+ * @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 catalog Devbox Definition error details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CatalogResourceValidationErrorDetailsInner getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String devBoxDefinitionName) {
+ return getErrorDetailsWithResponse(
+ resourceGroupName, devCenterName, catalogName, devBoxDefinitionName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * 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 results of the Dev Box definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(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.listByCatalogNext(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 results of the Dev Box definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(
+ 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
+ .listByCatalogNext(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/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogDevBoxDefinitionsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogDevBoxDefinitionsImpl.java
new file mode 100644
index 0000000000000..2802914bb1108
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogDevBoxDefinitionsImpl.java
@@ -0,0 +1,119 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.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.devcenter.fluent.CatalogDevBoxDefinitionsClient;
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.fluent.models.DevBoxDefinitionInner;
+import com.azure.resourcemanager.devcenter.models.CatalogDevBoxDefinitions;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationErrorDetails;
+import com.azure.resourcemanager.devcenter.models.DevBoxDefinition;
+
+public final class CatalogDevBoxDefinitionsImpl implements CatalogDevBoxDefinitions {
+ private static final ClientLogger LOGGER = new ClientLogger(CatalogDevBoxDefinitionsImpl.class);
+
+ private final CatalogDevBoxDefinitionsClient innerClient;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ public CatalogDevBoxDefinitionsImpl(
+ CatalogDevBoxDefinitionsClient innerClient,
+ com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName);
+ return Utils.mapPage(inner, inner1 -> new DevBoxDefinitionImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName, top, context);
+ return Utils.mapPage(inner, inner1 -> new DevBoxDefinitionImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String devBoxDefinitionName,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getWithResponse(resourceGroupName, devCenterName, catalogName, devBoxDefinitionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DevBoxDefinitionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DevBoxDefinition get(
+ String resourceGroupName, String devCenterName, String catalogName, String devBoxDefinitionName) {
+ DevBoxDefinitionInner inner =
+ this.serviceClient().get(resourceGroupName, devCenterName, catalogName, devBoxDefinitionName);
+ if (inner != null) {
+ return new DevBoxDefinitionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String devBoxDefinitionName,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getErrorDetailsWithResponse(
+ resourceGroupName, devCenterName, catalogName, devBoxDefinitionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CatalogResourceValidationErrorDetailsImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String devBoxDefinitionName) {
+ CatalogResourceValidationErrorDetailsInner inner =
+ this.serviceClient().getErrorDetails(resourceGroupName, devCenterName, catalogName, devBoxDefinitionName);
+ if (inner != null) {
+ return new CatalogResourceValidationErrorDetailsImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private CatalogDevBoxDefinitionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogImpl.java
index 5e38688fc9cdd..45ae701be4db9 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogImpl.java
@@ -4,14 +4,18 @@
package com.azure.resourcemanager.devcenter.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.CatalogInner;
import com.azure.resourcemanager.devcenter.models.Catalog;
+import com.azure.resourcemanager.devcenter.models.CatalogConnectionState;
import com.azure.resourcemanager.devcenter.models.CatalogSyncState;
import com.azure.resourcemanager.devcenter.models.CatalogUpdate;
import com.azure.resourcemanager.devcenter.models.GitCatalog;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
+import com.azure.resourcemanager.devcenter.models.SyncErrorDetails;
+import com.azure.resourcemanager.devcenter.models.SyncStats;
import java.time.OffsetDateTime;
import java.util.Map;
@@ -44,6 +48,18 @@ public CatalogSyncState syncState() {
return this.innerModel().syncState();
}
+ public SyncStats lastSyncStats() {
+ return this.innerModel().lastSyncStats();
+ }
+
+ public CatalogConnectionState connectionState() {
+ return this.innerModel().connectionState();
+ }
+
+ public OffsetDateTime lastConnectionTime() {
+ return this.innerModel().lastConnectionTime();
+ }
+
public OffsetDateTime lastSyncTime() {
return this.innerModel().lastSyncTime();
}
@@ -157,6 +173,16 @@ public Catalog refresh(Context context) {
return this;
}
+ public Response getSyncErrorDetailsWithResponse(Context context) {
+ return serviceManager
+ .catalogs()
+ .getSyncErrorDetailsWithResponse(resourceGroupName, devCenterName, catalogName, context);
+ }
+
+ public SyncErrorDetails getSyncErrorDetails() {
+ return serviceManager.catalogs().getSyncErrorDetails(resourceGroupName, devCenterName, catalogName);
+ }
+
public void sync() {
serviceManager.catalogs().sync(resourceGroupName, devCenterName, catalogName);
}
@@ -165,6 +191,14 @@ public void sync(Context context) {
serviceManager.catalogs().sync(resourceGroupName, devCenterName, catalogName, context);
}
+ public void connect() {
+ serviceManager.catalogs().connect(resourceGroupName, devCenterName, catalogName);
+ }
+
+ public void connect(Context context) {
+ serviceManager.catalogs().connect(resourceGroupName, devCenterName, catalogName, context);
+ }
+
public CatalogImpl withGitHub(GitCatalog gitHub) {
if (isInCreateMode()) {
this.innerModel().withGitHub(gitHub);
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogResourceValidationErrorDetailsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogResourceValidationErrorDetailsImpl.java
new file mode 100644
index 0000000000000..69cd1aef986e9
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogResourceValidationErrorDetailsImpl.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.models.CatalogErrorDetails;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationErrorDetails;
+import java.util.Collections;
+import java.util.List;
+
+public final class CatalogResourceValidationErrorDetailsImpl implements CatalogResourceValidationErrorDetails {
+ private CatalogResourceValidationErrorDetailsInner innerObject;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ CatalogResourceValidationErrorDetailsImpl(
+ CatalogResourceValidationErrorDetailsInner innerObject,
+ com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List errors() {
+ List inner = this.innerModel().errors();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CatalogResourceValidationErrorDetailsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsClientImpl.java
index 6a1e9b1af7d03..13502e097ed3a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsClientImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsClientImpl.java
@@ -35,6 +35,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.devcenter.fluent.CatalogsClient;
import com.azure.resourcemanager.devcenter.fluent.models.CatalogInner;
+import com.azure.resourcemanager.devcenter.fluent.models.SyncErrorDetailsInner;
import com.azure.resourcemanager.devcenter.models.CatalogListResult;
import com.azure.resourcemanager.devcenter.models.CatalogUpdate;
import java.nio.ByteBuffer;
@@ -143,6 +144,21 @@ Mono>> delete(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getSyncErrorDetails(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync")
@@ -158,6 +174,21 @@ Mono>> sync(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect")
+ @ExpectedResponses({202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> connect(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -1347,6 +1378,165 @@ public void delete(String resourceGroupName, String devCenterName, String catalo
deleteAsync(resourceGroupName, devCenterName, catalogName, context).block();
}
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSyncErrorDetailsWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getSyncErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSyncErrorDetailsWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getSyncErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getSyncErrorDetailsAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ return getSyncErrorDetailsWithResponseAsync(resourceGroupName, devCenterName, catalogName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSyncErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ return getSyncErrorDetailsWithResponseAsync(resourceGroupName, devCenterName, catalogName, context).block();
+ }
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncErrorDetailsInner getSyncErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ return getSyncErrorDetailsWithResponse(resourceGroupName, devCenterName, catalogName, Context.NONE).getValue();
+ }
+
/**
* Syncs templates for a template source.
*
@@ -1598,6 +1788,258 @@ public void sync(String resourceGroupName, String devCenterName, String catalogN
syncAsync(resourceGroupName, devCenterName, catalogName, context).block();
}
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> connectWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .connect(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> connectWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .connect(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ accept,
+ context);
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginConnectAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ Mono>> mono = connectWithResponseAsync(resourceGroupName, devCenterName, catalogName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginConnectAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ connectWithResponseAsync(resourceGroupName, devCenterName, catalogName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginConnect(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ return this.beginConnectAsync(resourceGroupName, devCenterName, catalogName).getSyncPoller();
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginConnect(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ return this.beginConnectAsync(resourceGroupName, devCenterName, catalogName, context).getSyncPoller();
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono connectAsync(String resourceGroupName, String devCenterName, String catalogName) {
+ return beginConnectAsync(resourceGroupName, devCenterName, catalogName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono connectAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ return beginConnectAsync(resourceGroupName, devCenterName, catalogName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 connect(String resourceGroupName, String devCenterName, String catalogName) {
+ connectAsync(resourceGroupName, devCenterName, catalogName).block();
+ }
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 connect(String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ connectAsync(resourceGroupName, devCenterName, catalogName, context).block();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsImpl.java
index 454e64fb4c8e0..198675f61f447 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CatalogsImpl.java
@@ -11,8 +11,10 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.devcenter.fluent.CatalogsClient;
import com.azure.resourcemanager.devcenter.fluent.models.CatalogInner;
+import com.azure.resourcemanager.devcenter.fluent.models.SyncErrorDetailsInner;
import com.azure.resourcemanager.devcenter.models.Catalog;
import com.azure.resourcemanager.devcenter.models.Catalogs;
+import com.azure.resourcemanager.devcenter.models.SyncErrorDetails;
public final class CatalogsImpl implements Catalogs {
private static final ClientLogger LOGGER = new ClientLogger(CatalogsImpl.class);
@@ -71,6 +73,33 @@ public void delete(String resourceGroupName, String devCenterName, String catalo
this.serviceClient().delete(resourceGroupName, devCenterName, catalogName, context);
}
+ public Response getSyncErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getSyncErrorDetailsWithResponse(resourceGroupName, devCenterName, catalogName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new SyncErrorDetailsImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public SyncErrorDetails getSyncErrorDetails(String resourceGroupName, String devCenterName, String catalogName) {
+ SyncErrorDetailsInner inner =
+ this.serviceClient().getSyncErrorDetails(resourceGroupName, devCenterName, catalogName);
+ if (inner != null) {
+ return new SyncErrorDetailsImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void sync(String resourceGroupName, String devCenterName, String catalogName) {
this.serviceClient().sync(resourceGroupName, devCenterName, catalogName);
}
@@ -79,6 +108,14 @@ public void sync(String resourceGroupName, String devCenterName, String catalogN
this.serviceClient().sync(resourceGroupName, devCenterName, catalogName, context);
}
+ public void connect(String resourceGroupName, String devCenterName, String catalogName) {
+ this.serviceClient().connect(resourceGroupName, devCenterName, catalogName);
+ }
+
+ public void connect(String resourceGroupName, String devCenterName, String catalogName, Context context) {
+ this.serviceClient().connect(resourceGroupName, devCenterName, catalogName, context);
+ }
+
public Catalog getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTaskImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTaskImpl.java
new file mode 100644
index 0000000000000..6d95f81c93843
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTaskImpl.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationStatus;
+import com.azure.resourcemanager.devcenter.models.CustomizationTask;
+import com.azure.resourcemanager.devcenter.models.CustomizationTaskInput;
+import java.util.Collections;
+import java.util.Map;
+
+public final class CustomizationTaskImpl implements CustomizationTask {
+ private CustomizationTaskInner innerObject;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ CustomizationTaskImpl(
+ CustomizationTaskInner innerObject, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Map inputs() {
+ Map inner = this.innerModel().inputs();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public Integer timeout() {
+ return this.innerModel().timeout();
+ }
+
+ public CatalogResourceValidationStatus validationStatus() {
+ return this.innerModel().validationStatus();
+ }
+
+ public CustomizationTaskInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksClientImpl.java
new file mode 100644
index 0000000000000..5a2503b8805fb
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksClientImpl.java
@@ -0,0 +1,763 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.devcenter.fluent.CustomizationTasksClient;
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner;
+import com.azure.resourcemanager.devcenter.models.CustomizationTaskListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in CustomizationTasksClient. */
+public final class CustomizationTasksClientImpl implements CustomizationTasksClient {
+ /** The proxy service used to perform REST calls. */
+ private final CustomizationTasksService service;
+
+ /** The service client containing this operation class. */
+ private final DevCenterManagementClientImpl client;
+
+ /**
+ * Initializes an instance of CustomizationTasksClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CustomizationTasksClientImpl(DevCenterManagementClientImpl client) {
+ this.service =
+ RestProxy.create(CustomizationTasksService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DevCenterManagementClientCustomizationTasks to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DevCenterManagementC")
+ public interface CustomizationTasksService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByCatalog(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @PathParam("taskName") String taskName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getErrorDetails(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @PathParam("taskName") String taskName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByCatalogNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogSinglePageAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByCatalog(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ top,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogSinglePageAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByCatalog(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ top,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top) {
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the Task list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top, context),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the Task list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ final Integer top = null;
+ return new PagedIterable<>(listByCatalogAsync(resourceGroupName, devCenterName, catalogName, top));
+ }
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ return new PagedIterable<>(listByCatalogAsync(resourceGroupName, devCenterName, catalogName, top, context));
+ }
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (taskName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ taskName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (taskName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ taskName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ return getWithResponseAsync(resourceGroupName, devCenterName, catalogName, taskName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ return getWithResponseAsync(resourceGroupName, devCenterName, catalogName, taskName, context).block();
+ }
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomizationTaskInner get(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ return getWithResponse(resourceGroupName, devCenterName, catalogName, taskName, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getErrorDetailsWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (taskName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ taskName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getErrorDetailsWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (taskName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter taskName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ taskName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getErrorDetailsAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ return getErrorDetailsWithResponseAsync(resourceGroupName, devCenterName, catalogName, taskName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ return getErrorDetailsWithResponseAsync(resourceGroupName, devCenterName, catalogName, taskName, context)
+ .block();
+ }
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CatalogResourceValidationErrorDetailsInner getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ return getErrorDetailsWithResponse(resourceGroupName, devCenterName, catalogName, taskName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * 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 results of the Task list operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(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.listByCatalogNext(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 results of the Task list operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(
+ 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
+ .listByCatalogNext(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/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksImpl.java
new file mode 100644
index 0000000000000..81753e8d85739
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/CustomizationTasksImpl.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.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.devcenter.fluent.CustomizationTasksClient;
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationErrorDetails;
+import com.azure.resourcemanager.devcenter.models.CustomizationTask;
+import com.azure.resourcemanager.devcenter.models.CustomizationTasks;
+
+public final class CustomizationTasksImpl implements CustomizationTasks {
+ private static final ClientLogger LOGGER = new ClientLogger(CustomizationTasksImpl.class);
+
+ private final CustomizationTasksClient innerClient;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ public CustomizationTasksImpl(
+ CustomizationTasksClient innerClient, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName);
+ return Utils.mapPage(inner, inner1 -> new CustomizationTaskImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName, top, context);
+ return Utils.mapPage(inner, inner1 -> new CustomizationTaskImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, devCenterName, catalogName, taskName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CustomizationTaskImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CustomizationTask get(String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ CustomizationTaskInner inner =
+ this.serviceClient().get(resourceGroupName, devCenterName, catalogName, taskName);
+ if (inner != null) {
+ return new CustomizationTaskImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getErrorDetailsWithResponse(resourceGroupName, devCenterName, catalogName, taskName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CatalogResourceValidationErrorDetailsImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName) {
+ CatalogResourceValidationErrorDetailsInner inner =
+ this.serviceClient().getErrorDetails(resourceGroupName, devCenterName, catalogName, taskName);
+ if (inner != null) {
+ return new CatalogResourceValidationErrorDetailsImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private CustomizationTasksClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevBoxDefinitionImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevBoxDefinitionImpl.java
index 3f30f83ecab61..c496aa92d8a57 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevBoxDefinitionImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevBoxDefinitionImpl.java
@@ -8,6 +8,7 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.DevBoxDefinitionInner;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationStatus;
import com.azure.resourcemanager.devcenter.models.DevBoxDefinition;
import com.azure.resourcemanager.devcenter.models.DevBoxDefinitionUpdate;
import com.azure.resourcemanager.devcenter.models.HibernateSupport;
@@ -66,6 +67,10 @@ public ImageValidationErrorDetails imageValidationErrorDetails() {
return this.innerModel().imageValidationErrorDetails();
}
+ public CatalogResourceValidationStatus validationStatus() {
+ return this.innerModel().validationStatus();
+ }
+
public ImageReference activeImageReference() {
return this.innerModel().activeImageReference();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterImpl.java
index 8fd8d74ec937e..cbc901cb92b27 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterImpl.java
@@ -10,6 +10,7 @@
import com.azure.resourcemanager.devcenter.fluent.models.DevCenterInner;
import com.azure.resourcemanager.devcenter.models.DevCenter;
import com.azure.resourcemanager.devcenter.models.DevCenterUpdate;
+import com.azure.resourcemanager.devcenter.models.Encryption;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
import java.util.Collections;
@@ -61,6 +62,10 @@ public String devCenterUri() {
return this.innerModel().devCenterUri();
}
+ public Encryption encryption() {
+ return this.innerModel().encryption();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -196,6 +201,16 @@ public DevCenterImpl withIdentity(ManagedServiceIdentity identity) {
}
}
+ public DevCenterImpl withEncryption(Encryption encryption) {
+ if (isInCreateMode()) {
+ this.innerModel().withEncryption(encryption);
+ return this;
+ } else {
+ this.updateBody.withEncryption(encryption);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientBuilder.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientBuilder.java
index 2f9b7b63c9eac..b195beab84cdc 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientBuilder.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientBuilder.java
@@ -137,7 +137,7 @@ public DevCenterManagementClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
- subscriptionId,
+ this.subscriptionId,
localEndpoint);
return client;
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientImpl.java
index 881ddc224b04e..9c210c7e26cda 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/DevCenterManagementClientImpl.java
@@ -23,11 +23,14 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.devcenter.fluent.AttachedNetworksClient;
+import com.azure.resourcemanager.devcenter.fluent.CatalogDevBoxDefinitionsClient;
import com.azure.resourcemanager.devcenter.fluent.CatalogsClient;
import com.azure.resourcemanager.devcenter.fluent.CheckNameAvailabilitiesClient;
+import com.azure.resourcemanager.devcenter.fluent.CustomizationTasksClient;
import com.azure.resourcemanager.devcenter.fluent.DevBoxDefinitionsClient;
import com.azure.resourcemanager.devcenter.fluent.DevCenterManagementClient;
import com.azure.resourcemanager.devcenter.fluent.DevCentersClient;
+import com.azure.resourcemanager.devcenter.fluent.EnvironmentDefinitionsClient;
import com.azure.resourcemanager.devcenter.fluent.EnvironmentTypesClient;
import com.azure.resourcemanager.devcenter.fluent.GalleriesClient;
import com.azure.resourcemanager.devcenter.fluent.ImageVersionsClient;
@@ -306,6 +309,42 @@ public CheckNameAvailabilitiesClient getCheckNameAvailabilities() {
return this.checkNameAvailabilities;
}
+ /** The CatalogDevBoxDefinitionsClient object to access its operations. */
+ private final CatalogDevBoxDefinitionsClient catalogDevBoxDefinitions;
+
+ /**
+ * Gets the CatalogDevBoxDefinitionsClient object to access its operations.
+ *
+ * @return the CatalogDevBoxDefinitionsClient object.
+ */
+ public CatalogDevBoxDefinitionsClient getCatalogDevBoxDefinitions() {
+ return this.catalogDevBoxDefinitions;
+ }
+
+ /** The CustomizationTasksClient object to access its operations. */
+ private final CustomizationTasksClient customizationTasks;
+
+ /**
+ * Gets the CustomizationTasksClient object to access its operations.
+ *
+ * @return the CustomizationTasksClient object.
+ */
+ public CustomizationTasksClient getCustomizationTasks() {
+ return this.customizationTasks;
+ }
+
+ /** The EnvironmentDefinitionsClient object to access its operations. */
+ private final EnvironmentDefinitionsClient environmentDefinitions;
+
+ /**
+ * Gets the EnvironmentDefinitionsClient object to access its operations.
+ *
+ * @return the EnvironmentDefinitionsClient object.
+ */
+ public EnvironmentDefinitionsClient getEnvironmentDefinitions() {
+ return this.environmentDefinitions;
+ }
+
/** The SkusClient object to access its operations. */
private final SkusClient skus;
@@ -376,7 +415,7 @@ public NetworkConnectionsClient getNetworkConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-04-01";
+ this.apiVersion = "2023-08-01-preview";
this.devCenters = new DevCentersClientImpl(this);
this.projects = new ProjectsClientImpl(this);
this.attachedNetworks = new AttachedNetworksClientImpl(this);
@@ -392,6 +431,9 @@ public NetworkConnectionsClient getNetworkConnections() {
this.operationStatuses = new OperationStatusesClientImpl(this);
this.usages = new UsagesClientImpl(this);
this.checkNameAvailabilities = new CheckNameAvailabilitiesClientImpl(this);
+ this.catalogDevBoxDefinitions = new CatalogDevBoxDefinitionsClientImpl(this);
+ this.customizationTasks = new CustomizationTasksClientImpl(this);
+ this.environmentDefinitions = new EnvironmentDefinitionsClientImpl(this);
this.skus = new SkusClientImpl(this);
this.pools = new PoolsClientImpl(this);
this.schedules = new SchedulesClientImpl(this);
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionImpl.java
new file mode 100644
index 0000000000000..34aef70d75dca
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionImpl.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationStatus;
+import com.azure.resourcemanager.devcenter.models.EnvironmentDefinition;
+import com.azure.resourcemanager.devcenter.models.EnvironmentDefinitionParameter;
+import java.util.Collections;
+import java.util.List;
+
+public final class EnvironmentDefinitionImpl implements EnvironmentDefinition {
+ private EnvironmentDefinitionInner innerObject;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ EnvironmentDefinitionImpl(
+ EnvironmentDefinitionInner innerObject, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public List parameters() {
+ List inner = this.innerModel().parameters();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String templatePath() {
+ return this.innerModel().templatePath();
+ }
+
+ public CatalogResourceValidationStatus validationStatus() {
+ return this.innerModel().validationStatus();
+ }
+
+ public EnvironmentDefinitionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsClientImpl.java
new file mode 100644
index 0000000000000..ce412f5a366d5
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsClientImpl.java
@@ -0,0 +1,801 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.devcenter.fluent.EnvironmentDefinitionsClient;
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner;
+import com.azure.resourcemanager.devcenter.models.EnvironmentDefinitionListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in EnvironmentDefinitionsClient. */
+public final class EnvironmentDefinitionsClientImpl implements EnvironmentDefinitionsClient {
+ /** The proxy service used to perform REST calls. */
+ private final EnvironmentDefinitionsService service;
+
+ /** The service client containing this operation class. */
+ private final DevCenterManagementClientImpl client;
+
+ /**
+ * Initializes an instance of EnvironmentDefinitionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ EnvironmentDefinitionsClientImpl(DevCenterManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(EnvironmentDefinitionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DevCenterManagementClientEnvironmentDefinitions to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DevCenterManagementC")
+ public interface EnvironmentDefinitionsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByCatalog(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @PathParam("environmentDefinitionName") String environmentDefinitionName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getErrorDetails(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("devCenterName") String devCenterName,
+ @PathParam("catalogName") String catalogName,
+ @PathParam("environmentDefinitionName") String environmentDefinitionName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByCatalogNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogSinglePageAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByCatalog(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ top,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogSinglePageAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByCatalog(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ top,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top) {
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByCatalogAsync(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listByCatalogSinglePageAsync(resourceGroupName, devCenterName, catalogName, top, context),
+ nextLink -> listByCatalogNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ final Integer top = null;
+ return new PagedIterable<>(listByCatalogAsync(resourceGroupName, devCenterName, catalogName, top));
+ }
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ return new PagedIterable<>(listByCatalogAsync(resourceGroupName, devCenterName, catalogName, top, context));
+ }
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (environmentDefinitionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter environmentDefinitionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ environmentDefinitionName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (environmentDefinitionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter environmentDefinitionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ environmentDefinitionName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ return getWithResponseAsync(resourceGroupName, devCenterName, catalogName, environmentDefinitionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ return getWithResponseAsync(resourceGroupName, devCenterName, catalogName, environmentDefinitionName, context)
+ .block();
+ }
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EnvironmentDefinitionInner get(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ return getWithResponse(resourceGroupName, devCenterName, catalogName, environmentDefinitionName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getErrorDetailsWithResponseAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (environmentDefinitionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter environmentDefinitionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ environmentDefinitionName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getErrorDetailsWithResponseAsync(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (devCenterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter devCenterName is required and cannot be null."));
+ }
+ if (catalogName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter catalogName is required and cannot be null."));
+ }
+ if (environmentDefinitionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter environmentDefinitionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getErrorDetails(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ devCenterName,
+ catalogName,
+ environmentDefinitionName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getErrorDetailsAsync(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ return getErrorDetailsWithResponseAsync(
+ resourceGroupName, devCenterName, catalogName, environmentDefinitionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ return getErrorDetailsWithResponseAsync(
+ resourceGroupName, devCenterName, catalogName, environmentDefinitionName, context)
+ .block();
+ }
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CatalogResourceValidationErrorDetailsInner getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ return getErrorDetailsWithResponse(
+ resourceGroupName, devCenterName, catalogName, environmentDefinitionName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * 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 results of the environment definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(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.listByCatalogNext(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 results of the environment definition list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByCatalogNextSinglePageAsync(
+ 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
+ .listByCatalogNext(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/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsImpl.java
new file mode 100644
index 0000000000000..1699f344e333f
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/EnvironmentDefinitionsImpl.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.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.devcenter.fluent.EnvironmentDefinitionsClient;
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner;
+import com.azure.resourcemanager.devcenter.models.CatalogResourceValidationErrorDetails;
+import com.azure.resourcemanager.devcenter.models.EnvironmentDefinition;
+import com.azure.resourcemanager.devcenter.models.EnvironmentDefinitions;
+
+public final class EnvironmentDefinitionsImpl implements EnvironmentDefinitions {
+ private static final ClientLogger LOGGER = new ClientLogger(EnvironmentDefinitionsImpl.class);
+
+ private final EnvironmentDefinitionsClient innerClient;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ public EnvironmentDefinitionsImpl(
+ EnvironmentDefinitionsClient innerClient, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName);
+ return Utils.mapPage(inner, inner1 -> new EnvironmentDefinitionImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByCatalog(resourceGroupName, devCenterName, catalogName, top, context);
+ return Utils.mapPage(inner, inner1 -> new EnvironmentDefinitionImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getWithResponse(resourceGroupName, devCenterName, catalogName, environmentDefinitionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new EnvironmentDefinitionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public EnvironmentDefinition get(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ EnvironmentDefinitionInner inner =
+ this.serviceClient().get(resourceGroupName, devCenterName, catalogName, environmentDefinitionName);
+ if (inner != null) {
+ return new EnvironmentDefinitionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getErrorDetailsWithResponse(
+ resourceGroupName, devCenterName, catalogName, environmentDefinitionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CatalogResourceValidationErrorDetailsImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName) {
+ CatalogResourceValidationErrorDetailsInner inner =
+ this
+ .serviceClient()
+ .getErrorDetails(resourceGroupName, devCenterName, catalogName, environmentDefinitionName);
+ if (inner != null) {
+ return new CatalogResourceValidationErrorDetailsImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private EnvironmentDefinitionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
index 3ae57248240ba..b0c5e80861175 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.devcenter.models.Pool;
import com.azure.resourcemanager.devcenter.models.PoolUpdate;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
+import com.azure.resourcemanager.devcenter.models.SingleSignOnStatus;
import com.azure.resourcemanager.devcenter.models.StopOnDisconnectConfiguration;
import java.util.Collections;
import java.util.List;
@@ -67,6 +68,10 @@ public List healthStatusDetails() {
}
}
+ public Integer devBoxCount() {
+ return this.innerModel().devBoxCount();
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
@@ -91,6 +96,10 @@ public StopOnDisconnectConfiguration stopOnDisconnect() {
return this.innerModel().stopOnDisconnect();
}
+ public SingleSignOnStatus singleSignOnStatus() {
+ return this.innerModel().singleSignOnStatus();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -278,6 +287,16 @@ public PoolImpl withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconn
}
}
+ public PoolImpl withSingleSignOnStatus(SingleSignOnStatus singleSignOnStatus) {
+ if (isInCreateMode()) {
+ this.innerModel().withSingleSignOnStatus(singleSignOnStatus);
+ return this;
+ } else {
+ this.updateBody.withSingleSignOnStatus(singleSignOnStatus);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SyncErrorDetailsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SyncErrorDetailsImpl.java
new file mode 100644
index 0000000000000..048baf3cf97c2
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SyncErrorDetailsImpl.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.resourcemanager.devcenter.fluent.models.SyncErrorDetailsInner;
+import com.azure.resourcemanager.devcenter.models.CatalogConflictError;
+import com.azure.resourcemanager.devcenter.models.CatalogErrorDetails;
+import com.azure.resourcemanager.devcenter.models.CatalogSyncError;
+import com.azure.resourcemanager.devcenter.models.SyncErrorDetails;
+import java.util.Collections;
+import java.util.List;
+
+public final class SyncErrorDetailsImpl implements SyncErrorDetails {
+ private SyncErrorDetailsInner innerObject;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ SyncErrorDetailsImpl(
+ SyncErrorDetailsInner innerObject, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public CatalogErrorDetails operationError() {
+ return this.innerModel().operationError();
+ }
+
+ public List conflicts() {
+ List inner = this.innerModel().conflicts();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List errors() {
+ List inner = this.innerModel().errors();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public SyncErrorDetailsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/AttachedNetworkConnection.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/AttachedNetworkConnection.java
index 80bb52d7e6979..776a897dee6f5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/AttachedNetworkConnection.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/AttachedNetworkConnection.java
@@ -93,11 +93,13 @@ public interface AttachedNetworkConnection {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The AttachedNetworkConnection definition stages. */
interface DefinitionStages {
/** The first stage of the AttachedNetworkConnection definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the AttachedNetworkConnection definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -109,6 +111,7 @@ interface WithParentResource {
*/
WithCreate withExistingDevcenter(String resourceGroupName, String devCenterName);
}
+
/**
* The stage of the AttachedNetworkConnection 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.
@@ -129,6 +132,7 @@ interface WithCreate extends DefinitionStages.WithNetworkConnectionId {
*/
AttachedNetworkConnection create(Context context);
}
+
/** The stage of the AttachedNetworkConnection definition allowing to specify networkConnectionId. */
interface WithNetworkConnectionId {
/**
@@ -140,6 +144,7 @@ interface WithNetworkConnectionId {
WithCreate withNetworkConnectionId(String networkConnectionId);
}
}
+
/**
* Begins update for the AttachedNetworkConnection resource.
*
@@ -164,9 +169,11 @@ interface Update {
*/
AttachedNetworkConnection apply(Context context);
}
+
/** The AttachedNetworkConnection update stages. */
interface UpdateStages {
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalog.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalog.java
index 384cb91ee31da..c47e8b5a7cffa 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalog.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalog.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.devcenter.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.CatalogInner;
@@ -54,6 +55,27 @@ public interface Catalog {
*/
CatalogSyncState syncState();
+ /**
+ * Gets the lastSyncStats property: Stats of the latest synchronization.
+ *
+ * @return the lastSyncStats value.
+ */
+ SyncStats lastSyncStats();
+
+ /**
+ * Gets the connectionState property: The connection state of the catalog.
+ *
+ * @return the connectionState value.
+ */
+ CatalogConnectionState connectionState();
+
+ /**
+ * Gets the lastConnectionTime property: When the catalog was last connected.
+ *
+ * @return the lastConnectionTime value.
+ */
+ OffsetDateTime lastConnectionTime();
+
/**
* Gets the lastSyncTime property: When the catalog was last synced.
*
@@ -93,11 +115,13 @@ public interface Catalog {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The Catalog definition stages. */
interface DefinitionStages {
/** The first stage of the Catalog definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the Catalog definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -109,6 +133,7 @@ interface WithParentResource {
*/
WithCreate withExistingDevcenter(String resourceGroupName, String devCenterName);
}
+
/**
* The stage of the Catalog 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.
@@ -129,6 +154,7 @@ interface WithCreate extends DefinitionStages.WithGitHub, DefinitionStages.WithA
*/
Catalog create(Context context);
}
+
/** The stage of the Catalog definition allowing to specify gitHub. */
interface WithGitHub {
/**
@@ -139,6 +165,7 @@ interface WithGitHub {
*/
WithCreate withGitHub(GitCatalog gitHub);
}
+
/** The stage of the Catalog definition allowing to specify adoGit. */
interface WithAdoGit {
/**
@@ -150,6 +177,7 @@ interface WithAdoGit {
WithCreate withAdoGit(GitCatalog adoGit);
}
}
+
/**
* Begins update for the Catalog resource.
*
@@ -174,6 +202,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithGitHub, UpdateS
*/
Catalog apply(Context context);
}
+
/** The Catalog update stages. */
interface UpdateStages {
/** The stage of the Catalog update allowing to specify tags. */
@@ -186,6 +215,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Catalog update allowing to specify gitHub. */
interface WithGitHub {
/**
@@ -196,6 +226,7 @@ interface WithGitHub {
*/
Update withGitHub(GitCatalog gitHub);
}
+
/** The stage of the Catalog update allowing to specify adoGit. */
interface WithAdoGit {
/**
@@ -207,6 +238,7 @@ interface WithAdoGit {
Update withAdoGit(GitCatalog adoGit);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
@@ -222,6 +254,26 @@ interface WithAdoGit {
*/
Catalog refresh(Context context);
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @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 catalog synchronization error details along with {@link Response}.
+ */
+ Response getSyncErrorDetailsWithResponse(Context context);
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @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 catalog synchronization error details.
+ */
+ SyncErrorDetails getSyncErrorDetails();
+
/**
* Syncs templates for a template source.
*
@@ -239,4 +291,22 @@ interface WithAdoGit {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void sync(Context context);
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void connect();
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void connect(Context context);
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConflictError.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConflictError.java
new file mode 100644
index 0000000000000..90f1ca62c8b0b
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConflictError.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An individual conflict error. */
+@Immutable
+public final class CatalogConflictError {
+ /*
+ * The path of the file that has a conflicting name.
+ */
+ @JsonProperty(value = "path", access = JsonProperty.Access.WRITE_ONLY)
+ private String path;
+
+ /*
+ * Name of the conflicting catalog item.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /** Creates an instance of CatalogConflictError class. */
+ public CatalogConflictError() {
+ }
+
+ /**
+ * Get the path property: The path of the file that has a conflicting name.
+ *
+ * @return the path value.
+ */
+ public String path() {
+ return this.path;
+ }
+
+ /**
+ * Get the name property: Name of the conflicting catalog item.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConnectionState.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConnectionState.java
new file mode 100644
index 0000000000000..e407465c160d6
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogConnectionState.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.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** The connection state of the catalog. */
+public final class CatalogConnectionState extends ExpandableStringEnum {
+ /** Static value Connected for CatalogConnectionState. */
+ public static final CatalogConnectionState CONNECTED = fromString("Connected");
+
+ /** Static value Disconnected for CatalogConnectionState. */
+ public static final CatalogConnectionState DISCONNECTED = fromString("Disconnected");
+
+ /**
+ * Creates a new instance of CatalogConnectionState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CatalogConnectionState() {
+ }
+
+ /**
+ * Creates or finds a CatalogConnectionState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CatalogConnectionState.
+ */
+ @JsonCreator
+ public static CatalogConnectionState fromString(String name) {
+ return fromString(name, CatalogConnectionState.class);
+ }
+
+ /**
+ * Gets known CatalogConnectionState values.
+ *
+ * @return known CatalogConnectionState values.
+ */
+ public static Collection values() {
+ return values(CatalogConnectionState.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogDevBoxDefinitions.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogDevBoxDefinitions.java
new file mode 100644
index 0000000000000..535c5ca65e33c
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogDevBoxDefinitions.java
@@ -0,0 +1,111 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of CatalogDevBoxDefinitions. */
+public interface CatalogDevBoxDefinitions {
+ /**
+ * List Dev Box definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the Dev Box definition list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(String resourceGroupName, String devCenterName, String catalogName);
+
+ /**
+ * List Dev Box definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Dev Box definition list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context);
+
+ /**
+ * Gets a Dev Box definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param devBoxDefinitionName The name of the Dev Box definition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Dev Box definition from the catalog along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String devBoxDefinitionName,
+ Context context);
+
+ /**
+ * Gets a Dev Box definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param devBoxDefinitionName The name of the Dev Box definition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Dev Box definition from the catalog.
+ */
+ DevBoxDefinition get(
+ String resourceGroupName, String devCenterName, String catalogName, String devBoxDefinitionName);
+
+ /**
+ * Gets Catalog Devbox Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param devBoxDefinitionName The name of the Dev Box definition.
+ * @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 catalog Devbox Definition error details along with {@link Response}.
+ */
+ Response getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String devBoxDefinitionName,
+ Context context);
+
+ /**
+ * Gets Catalog Devbox Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param devBoxDefinitionName The name of the Dev Box definition.
+ * @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 catalog Devbox Definition error details.
+ */
+ CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String devBoxDefinitionName);
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogErrorDetails.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogErrorDetails.java
new file mode 100644
index 0000000000000..290efeacc8e34
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogErrorDetails.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Catalog error details. */
+@Fluent
+public final class CatalogErrorDetails {
+ /*
+ * An identifier for the error.
+ */
+ @JsonProperty(value = "code")
+ private String code;
+
+ /*
+ * A message describing the error.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /** Creates an instance of CatalogErrorDetails class. */
+ public CatalogErrorDetails() {
+ }
+
+ /**
+ * Get the code property: An identifier for the error.
+ *
+ * @return the code value.
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Set the code property: An identifier for the error.
+ *
+ * @param code the code value to set.
+ * @return the CatalogErrorDetails object itself.
+ */
+ public CatalogErrorDetails withCode(String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Get the message property: A message describing the error.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: A message describing the error.
+ *
+ * @param message the message value to set.
+ * @return the CatalogErrorDetails object itself.
+ */
+ public CatalogErrorDetails withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationErrorDetails.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationErrorDetails.java
new file mode 100644
index 0000000000000..70e076d89ad64
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationErrorDetails.java
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner;
+import java.util.List;
+
+/** An immutable client-side representation of CatalogResourceValidationErrorDetails. */
+public interface CatalogResourceValidationErrorDetails {
+ /**
+ * Gets the errors property: Errors associated with resources synchronized from the catalog.
+ *
+ * @return the errors value.
+ */
+ List errors();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.CatalogResourceValidationErrorDetailsInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ CatalogResourceValidationErrorDetailsInner innerModel();
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationStatus.java
new file mode 100644
index 0000000000000..eff9011398f75
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogResourceValidationStatus.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Catalog resource validation status. */
+public final class CatalogResourceValidationStatus extends ExpandableStringEnum {
+ /** Static value Unknown for CatalogResourceValidationStatus. */
+ public static final CatalogResourceValidationStatus UNKNOWN = fromString("Unknown");
+
+ /** Static value Pending for CatalogResourceValidationStatus. */
+ public static final CatalogResourceValidationStatus PENDING = fromString("Pending");
+
+ /** Static value Succeeded for CatalogResourceValidationStatus. */
+ public static final CatalogResourceValidationStatus SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for CatalogResourceValidationStatus. */
+ public static final CatalogResourceValidationStatus FAILED = fromString("Failed");
+
+ /**
+ * Creates a new instance of CatalogResourceValidationStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CatalogResourceValidationStatus() {
+ }
+
+ /**
+ * Creates or finds a CatalogResourceValidationStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CatalogResourceValidationStatus.
+ */
+ @JsonCreator
+ public static CatalogResourceValidationStatus fromString(String name) {
+ return fromString(name, CatalogResourceValidationStatus.class);
+ }
+
+ /**
+ * Gets known CatalogResourceValidationStatus values.
+ *
+ * @return known CatalogResourceValidationStatus values.
+ */
+ public static Collection values() {
+ return values(CatalogResourceValidationStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncError.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncError.java
new file mode 100644
index 0000000000000..b87a0916f30bd
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncError.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** An individual synchronization error. */
+@Immutable
+public final class CatalogSyncError {
+ /*
+ * The path of the file the error is associated with.
+ */
+ @JsonProperty(value = "path", access = JsonProperty.Access.WRITE_ONLY)
+ private String path;
+
+ /*
+ * Errors associated with the file.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private List errorDetails;
+
+ /** Creates an instance of CatalogSyncError class. */
+ public CatalogSyncError() {
+ }
+
+ /**
+ * Get the path property: The path of the file the error is associated with.
+ *
+ * @return the path value.
+ */
+ public String path() {
+ return this.path;
+ }
+
+ /**
+ * Get the errorDetails property: Errors associated with the file.
+ *
+ * @return the errorDetails value.
+ */
+ public List errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (errorDetails() != null) {
+ errorDetails().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalogs.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalogs.java
index d4ecc9f0db196..34df484bb6ab5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalogs.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Catalogs.java
@@ -90,6 +90,34 @@ Response getWithResponse(
*/
void delete(String resourceGroupName, String devCenterName, String catalogName, Context context);
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details along with {@link Response}.
+ */
+ Response getSyncErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, Context context);
+
+ /**
+ * Gets catalog synchronization error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 catalog synchronization error details.
+ */
+ SyncErrorDetails getSyncErrorDetails(String resourceGroupName, String devCenterName, String catalogName);
+
/**
* Syncs templates for a template source.
*
@@ -115,6 +143,31 @@ Response getWithResponse(
*/
void sync(String resourceGroupName, String devCenterName, String catalogName, Context context);
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void connect(String resourceGroupName, String devCenterName, String catalogName);
+
+ /**
+ * Connects a catalog to enable syncing.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void connect(String resourceGroupName, String devCenterName, String catalogName, Context context);
+
/**
* Gets a catalog.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryption.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryption.java
new file mode 100644
index 0000000000000..b786b7db78ba8
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryption.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** All Customer-managed key encryption properties for the resource. */
+@Fluent
+public final class CustomerManagedKeyEncryption {
+ /*
+ * All identity configuration for Customer-managed key settings defining which identity should be used to auth to
+ * Key Vault.
+ */
+ @JsonProperty(value = "keyEncryptionKeyIdentity")
+ private CustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity;
+
+ /*
+ * key encryption key Url, versioned or non-versioned. Ex:
+ * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or
+ * https://contosovault.vault.azure.net/keys/contosokek.
+ */
+ @JsonProperty(value = "keyEncryptionKeyUrl")
+ private String keyEncryptionKeyUrl;
+
+ /** Creates an instance of CustomerManagedKeyEncryption class. */
+ public CustomerManagedKeyEncryption() {
+ }
+
+ /**
+ * Get the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining
+ * which identity should be used to auth to Key Vault.
+ *
+ * @return the keyEncryptionKeyIdentity value.
+ */
+ public CustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity() {
+ return this.keyEncryptionKeyIdentity;
+ }
+
+ /**
+ * Set the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining
+ * which identity should be used to auth to Key Vault.
+ *
+ * @param keyEncryptionKeyIdentity the keyEncryptionKeyIdentity value to set.
+ * @return the CustomerManagedKeyEncryption object itself.
+ */
+ public CustomerManagedKeyEncryption withKeyEncryptionKeyIdentity(
+ CustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity) {
+ this.keyEncryptionKeyIdentity = keyEncryptionKeyIdentity;
+ return this;
+ }
+
+ /**
+ * Get the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex:
+ * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or
+ * https://contosovault.vault.azure.net/keys/contosokek.
+ *
+ * @return the keyEncryptionKeyUrl value.
+ */
+ public String keyEncryptionKeyUrl() {
+ return this.keyEncryptionKeyUrl;
+ }
+
+ /**
+ * Set the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex:
+ * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or
+ * https://contosovault.vault.azure.net/keys/contosokek.
+ *
+ * @param keyEncryptionKeyUrl the keyEncryptionKeyUrl value to set.
+ * @return the CustomerManagedKeyEncryption object itself.
+ */
+ public CustomerManagedKeyEncryption withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl) {
+ this.keyEncryptionKeyUrl = keyEncryptionKeyUrl;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyEncryptionKeyIdentity() != null) {
+ keyEncryptionKeyIdentity().validate();
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryptionKeyIdentity.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryptionKeyIdentity.java
new file mode 100644
index 0000000000000..a5aa0665b0ef9
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomerManagedKeyEncryptionKeyIdentity.java
@@ -0,0 +1,125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/**
+ * All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key
+ * Vault.
+ */
+@Fluent
+public final class CustomerManagedKeyEncryptionKeyIdentity {
+ /*
+ * Values can be systemAssignedIdentity or userAssignedIdentity
+ */
+ @JsonProperty(value = "identityType")
+ private IdentityType identityType;
+
+ /*
+ * user assigned identity to use for accessing key encryption key Url. Ex:
+ * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and delegatedResourceIdentity.
+ */
+ @JsonProperty(value = "userAssignedIdentityResourceId")
+ private String userAssignedIdentityResourceId;
+
+ /*
+ * delegated identity to use for accessing key encryption key Url. Ex:
+ * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and userAssignedIdentity - internal use only.
+ */
+ @JsonProperty(value = "delegatedIdentityClientId")
+ private UUID delegatedIdentityClientId;
+
+ /** Creates an instance of CustomerManagedKeyEncryptionKeyIdentity class. */
+ public CustomerManagedKeyEncryptionKeyIdentity() {
+ }
+
+ /**
+ * Get the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.
+ *
+ * @return the identityType value.
+ */
+ public IdentityType identityType() {
+ return this.identityType;
+ }
+
+ /**
+ * Set the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.
+ *
+ * @param identityType the identityType value to set.
+ * @return the CustomerManagedKeyEncryptionKeyIdentity object itself.
+ */
+ public CustomerManagedKeyEncryptionKeyIdentity withIdentityType(IdentityType identityType) {
+ this.identityType = identityType;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key
+ * Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource
+ * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and delegatedResourceIdentity.
+ *
+ * @return the userAssignedIdentityResourceId value.
+ */
+ public String userAssignedIdentityResourceId() {
+ return this.userAssignedIdentityResourceId;
+ }
+
+ /**
+ * Set the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key
+ * Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource
+ * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and delegatedResourceIdentity.
+ *
+ * @param userAssignedIdentityResourceId the userAssignedIdentityResourceId value to set.
+ * @return the CustomerManagedKeyEncryptionKeyIdentity object itself.
+ */
+ public CustomerManagedKeyEncryptionKeyIdentity withUserAssignedIdentityResourceId(
+ String userAssignedIdentityResourceId) {
+ this.userAssignedIdentityResourceId = userAssignedIdentityResourceId;
+ return this;
+ }
+
+ /**
+ * Get the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex:
+ * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource
+ * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and userAssignedIdentity - internal use only.
+ *
+ * @return the delegatedIdentityClientId value.
+ */
+ public UUID delegatedIdentityClientId() {
+ return this.delegatedIdentityClientId;
+ }
+
+ /**
+ * Set the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex:
+ * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource
+ * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType
+ * systemAssignedIdentity and userAssignedIdentity - internal use only.
+ *
+ * @param delegatedIdentityClientId the delegatedIdentityClientId value to set.
+ * @return the CustomerManagedKeyEncryptionKeyIdentity object itself.
+ */
+ public CustomerManagedKeyEncryptionKeyIdentity withDelegatedIdentityClientId(UUID delegatedIdentityClientId) {
+ this.delegatedIdentityClientId = delegatedIdentityClientId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTask.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTask.java
new file mode 100644
index 0000000000000..0cc8d3b0c4c1b
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTask.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner;
+import java.util.Map;
+
+/** An immutable client-side representation of CustomizationTask. */
+public interface CustomizationTask {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the inputs property: Inputs to the task.
+ *
+ * @return the inputs value.
+ */
+ Map inputs();
+
+ /**
+ * Gets the timeout property: The default timeout for the task.
+ *
+ * @return the timeout value.
+ */
+ Integer timeout();
+
+ /**
+ * Gets the validationStatus property: Validation status for the Task.
+ *
+ * @return the validationStatus value.
+ */
+ CatalogResourceValidationStatus validationStatus();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner object.
+ *
+ * @return the inner object.
+ */
+ CustomizationTaskInner innerModel();
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInput.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInput.java
new file mode 100644
index 0000000000000..39d2f75341223
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInput.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Input for a Task. */
+@Immutable
+public final class CustomizationTaskInput {
+ /*
+ * Description of the input.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * Type of the input.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private CustomizationTaskInputType type;
+
+ /*
+ * Whether or not the input is required.
+ */
+ @JsonProperty(value = "required", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean required;
+
+ /** Creates an instance of CustomizationTaskInput class. */
+ public CustomizationTaskInput() {
+ }
+
+ /**
+ * Get the description property: Description of the input.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: Type of the input.
+ *
+ * @return the type value.
+ */
+ public CustomizationTaskInputType type() {
+ return this.type;
+ }
+
+ /**
+ * Get the required property: Whether or not the input is required.
+ *
+ * @return the required value.
+ */
+ public Boolean required() {
+ return this.required;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInputType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInputType.java
new file mode 100644
index 0000000000000..b520c96a85519
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskInputType.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Type of the input. */
+public final class CustomizationTaskInputType extends ExpandableStringEnum {
+ /** Static value string for CustomizationTaskInputType. */
+ public static final CustomizationTaskInputType STRING = fromString("string");
+
+ /** Static value number for CustomizationTaskInputType. */
+ public static final CustomizationTaskInputType NUMBER = fromString("number");
+
+ /** Static value boolean for CustomizationTaskInputType. */
+ public static final CustomizationTaskInputType BOOLEAN = fromString("boolean");
+
+ /**
+ * Creates a new instance of CustomizationTaskInputType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CustomizationTaskInputType() {
+ }
+
+ /**
+ * Creates or finds a CustomizationTaskInputType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CustomizationTaskInputType.
+ */
+ @JsonCreator
+ public static CustomizationTaskInputType fromString(String name) {
+ return fromString(name, CustomizationTaskInputType.class);
+ }
+
+ /**
+ * Gets known CustomizationTaskInputType values.
+ *
+ * @return known CustomizationTaskInputType values.
+ */
+ public static Collection values() {
+ return values(CustomizationTaskInputType.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskListResult.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskListResult.java
new file mode 100644
index 0000000000000..a78fbb5107820
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTaskListResult.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.devcenter.fluent.models.CustomizationTaskInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Results of the Task list operation. */
+@Immutable
+public final class CustomizationTaskListResult {
+ /*
+ * Current page of results.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * URL to get the next set of results if there are any.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of CustomizationTaskListResult class. */
+ public CustomizationTaskListResult() {
+ }
+
+ /**
+ * Get the value property: Current page of results.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of results if there are any.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTasks.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTasks.java
new file mode 100644
index 0000000000000..7d85ed1bd3df0
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CustomizationTasks.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of CustomizationTasks. */
+public interface CustomizationTasks {
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the Task list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(String resourceGroupName, String devCenterName, String catalogName);
+
+ /**
+ * List Tasks in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the Task list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context);
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context);
+
+ /**
+ * Gets a Task from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Task from the catalog.
+ */
+ CustomizationTask get(String resourceGroupName, String devCenterName, String catalogName, String taskName);
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details along with {@link Response}.
+ */
+ Response getErrorDetailsWithResponse(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName, Context context);
+
+ /**
+ * Gets Customization Task error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param taskName The name of the Task.
+ * @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 customization Task error details.
+ */
+ CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String taskName);
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevBoxDefinition.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevBoxDefinition.java
index d9b2b6e55b3f4..be1f3eeffd7d2 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevBoxDefinition.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevBoxDefinition.java
@@ -76,6 +76,13 @@ public interface DevBoxDefinition {
*/
ImageValidationErrorDetails imageValidationErrorDetails();
+ /**
+ * Gets the validationStatus property: Validation status for the Dev Box Definition.
+ *
+ * @return the validationStatus value.
+ */
+ CatalogResourceValidationStatus validationStatus();
+
/**
* Gets the activeImageReference property: Image reference information for the currently active image (only
* populated during updates).
@@ -150,11 +157,13 @@ interface Definition
DefinitionStages.WithParentResource,
DefinitionStages.WithCreate {
}
+
/** The DevBoxDefinition definition stages. */
interface DefinitionStages {
/** The first stage of the DevBoxDefinition definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the DevBoxDefinition definition allowing to specify location. */
interface WithLocation {
/**
@@ -173,6 +182,7 @@ interface WithLocation {
*/
WithParentResource withRegion(String location);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -184,6 +194,7 @@ interface WithParentResource {
*/
WithCreate withExistingDevcenter(String resourceGroupName, String devCenterName);
}
+
/**
* The stage of the DevBoxDefinition 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.
@@ -209,6 +220,7 @@ interface WithCreate
*/
DevBoxDefinition create(Context context);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify tags. */
interface WithTags {
/**
@@ -219,6 +231,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify imageReference. */
interface WithImageReference {
/**
@@ -229,6 +242,7 @@ interface WithImageReference {
*/
WithCreate withImageReference(ImageReference imageReference);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify sku. */
interface WithSku {
/**
@@ -239,6 +253,7 @@ interface WithSku {
*/
WithCreate withSku(Sku sku);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify osStorageType. */
interface WithOsStorageType {
/**
@@ -251,6 +266,7 @@ interface WithOsStorageType {
*/
WithCreate withOsStorageType(String osStorageType);
}
+
/** The stage of the DevBoxDefinition definition allowing to specify hibernateSupport. */
interface WithHibernateSupport {
/**
@@ -266,6 +282,7 @@ interface WithHibernateSupport {
WithCreate withHibernateSupport(HibernateSupport hibernateSupport);
}
}
+
/**
* Begins update for the DevBoxDefinition resource.
*
@@ -295,6 +312,7 @@ interface Update
*/
DevBoxDefinition apply(Context context);
}
+
/** The DevBoxDefinition update stages. */
interface UpdateStages {
/** The stage of the DevBoxDefinition update allowing to specify tags. */
@@ -307,6 +325,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the DevBoxDefinition update allowing to specify imageReference. */
interface WithImageReference {
/**
@@ -317,6 +336,7 @@ interface WithImageReference {
*/
Update withImageReference(ImageReference imageReference);
}
+
/** The stage of the DevBoxDefinition update allowing to specify sku. */
interface WithSku {
/**
@@ -327,6 +347,7 @@ interface WithSku {
*/
Update withSku(Sku sku);
}
+
/** The stage of the DevBoxDefinition update allowing to specify osStorageType. */
interface WithOsStorageType {
/**
@@ -339,6 +360,7 @@ interface WithOsStorageType {
*/
Update withOsStorageType(String osStorageType);
}
+
/** The stage of the DevBoxDefinition update allowing to specify hibernateSupport. */
interface WithHibernateSupport {
/**
@@ -354,6 +376,7 @@ interface WithHibernateSupport {
Update withHibernateSupport(HibernateSupport hibernateSupport);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenter.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenter.java
index 0696bc228711d..8a86378c79df3 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenter.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenter.java
@@ -75,6 +75,14 @@ public interface DevCenter {
*/
String devCenterUri();
+ /**
+ * Gets the encryption property: Encryption settings to be used for server-side encryption for proprietary content
+ * (such as catalogs, logs, customizations).
+ *
+ * @return the encryption value.
+ */
+ Encryption encryption();
+
/**
* Gets the region of the resource.
*
@@ -110,11 +118,13 @@ interface Definition
DefinitionStages.WithResourceGroup,
DefinitionStages.WithCreate {
}
+
/** The DevCenter definition stages. */
interface DefinitionStages {
/** The first stage of the DevCenter definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the DevCenter definition allowing to specify location. */
interface WithLocation {
/**
@@ -133,6 +143,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the DevCenter definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -143,11 +154,13 @@ interface WithResourceGroup {
*/
WithCreate withExistingResourceGroup(String resourceGroupName);
}
+
/**
* The stage of the DevCenter 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.WithIdentity {
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithEncryption {
/**
* Executes the create request.
*
@@ -163,6 +176,7 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIde
*/
DevCenter create(Context context);
}
+
/** The stage of the DevCenter definition allowing to specify tags. */
interface WithTags {
/**
@@ -173,6 +187,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the DevCenter definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -183,7 +198,21 @@ interface WithIdentity {
*/
WithCreate withIdentity(ManagedServiceIdentity identity);
}
+
+ /** The stage of the DevCenter definition allowing to specify encryption. */
+ interface WithEncryption {
+ /**
+ * Specifies the encryption property: Encryption settings to be used for server-side encryption for
+ * proprietary content (such as catalogs, logs, customizations)..
+ *
+ * @param encryption Encryption settings to be used for server-side encryption for proprietary content (such
+ * as catalogs, logs, customizations).
+ * @return the next definition stage.
+ */
+ WithCreate withEncryption(Encryption encryption);
+ }
}
+
/**
* Begins update for the DevCenter resource.
*
@@ -192,7 +221,7 @@ interface WithIdentity {
DevCenter.Update update();
/** The template for DevCenter update. */
- interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity {
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithEncryption {
/**
* Executes the update request.
*
@@ -208,6 +237,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity {
*/
DevCenter apply(Context context);
}
+
/** The DevCenter update stages. */
interface UpdateStages {
/** The stage of the DevCenter update allowing to specify tags. */
@@ -220,6 +250,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the DevCenter update allowing to specify identity. */
interface WithIdentity {
/**
@@ -230,7 +261,21 @@ interface WithIdentity {
*/
Update withIdentity(ManagedServiceIdentity identity);
}
+
+ /** The stage of the DevCenter update allowing to specify encryption. */
+ interface WithEncryption {
+ /**
+ * Specifies the encryption property: Encryption settings to be used for server-side encryption for
+ * proprietary content (such as catalogs, logs, customizations)..
+ *
+ * @param encryption Encryption settings to be used for server-side encryption for proprietary content (such
+ * as catalogs, logs, customizations).
+ * @return the next definition stage.
+ */
+ Update withEncryption(Encryption encryption);
+ }
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenterUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenterUpdate.java
index 3a37528032b6d..528c112b39e6a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenterUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/DevCenterUpdate.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.devcenter.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.devcenter.fluent.models.DevCenterUpdateProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -17,6 +18,12 @@ public final class DevCenterUpdate extends TrackedResourceUpdate {
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
+ /*
+ * Properties of a Dev Center to be updated.
+ */
+ @JsonProperty(value = "properties")
+ private DevCenterUpdateProperties innerProperties;
+
/** Creates an instance of DevCenterUpdate class. */
public DevCenterUpdate() {
}
@@ -41,6 +48,15 @@ public DevCenterUpdate withIdentity(ManagedServiceIdentity identity) {
return this;
}
+ /**
+ * Get the innerProperties property: Properties of a Dev Center to be updated.
+ *
+ * @return the innerProperties value.
+ */
+ private DevCenterUpdateProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/** {@inheritDoc} */
@Override
public DevCenterUpdate withTags(Map tags) {
@@ -55,6 +71,31 @@ public DevCenterUpdate withLocation(String location) {
return this;
}
+ /**
+ * Get the encryption property: Encryption settings to be used for server-side encryption for proprietary content
+ * (such as catalogs, logs, customizations).
+ *
+ * @return the encryption value.
+ */
+ public Encryption encryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
+ }
+
+ /**
+ * Set the encryption property: Encryption settings to be used for server-side encryption for proprietary content
+ * (such as catalogs, logs, customizations).
+ *
+ * @param encryption the encryption value to set.
+ * @return the DevCenterUpdate object itself.
+ */
+ public DevCenterUpdate withEncryption(Encryption encryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DevCenterUpdateProperties();
+ }
+ this.innerProperties().withEncryption(encryption);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -66,5 +107,8 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Encryption.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Encryption.java
new file mode 100644
index 0000000000000..b46696fb25255
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Encryption.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Encryption model. */
+@Fluent
+public final class Encryption {
+ /*
+ * All Customer-managed key encryption properties for the resource.
+ */
+ @JsonProperty(value = "customerManagedKeyEncryption")
+ private CustomerManagedKeyEncryption customerManagedKeyEncryption;
+
+ /** Creates an instance of Encryption class. */
+ public Encryption() {
+ }
+
+ /**
+ * Get the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.
+ *
+ * @return the customerManagedKeyEncryption value.
+ */
+ public CustomerManagedKeyEncryption customerManagedKeyEncryption() {
+ return this.customerManagedKeyEncryption;
+ }
+
+ /**
+ * Set the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.
+ *
+ * @param customerManagedKeyEncryption the customerManagedKeyEncryption value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withCustomerManagedKeyEncryption(CustomerManagedKeyEncryption customerManagedKeyEncryption) {
+ this.customerManagedKeyEncryption = customerManagedKeyEncryption;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (customerManagedKeyEncryption() != null) {
+ customerManagedKeyEncryption().validate();
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinition.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinition.java
new file mode 100644
index 0000000000000..5719ba1773604
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinition.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner;
+import java.util.List;
+
+/** An immutable client-side representation of EnvironmentDefinition. */
+public interface EnvironmentDefinition {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the description property: A short description of the environment definition.
+ *
+ * @return the description value.
+ */
+ String description();
+
+ /**
+ * Gets the parameters property: Input parameters passed to an environment.
+ *
+ * @return the parameters value.
+ */
+ List parameters();
+
+ /**
+ * Gets the templatePath property: Path to the Environment Definition entrypoint file.
+ *
+ * @return the templatePath value.
+ */
+ String templatePath();
+
+ /**
+ * Gets the validationStatus property: Validation status for the environment definition.
+ *
+ * @return the validationStatus value.
+ */
+ CatalogResourceValidationStatus validationStatus();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner object.
+ *
+ * @return the inner object.
+ */
+ EnvironmentDefinitionInner innerModel();
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionListResult.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionListResult.java
new file mode 100644
index 0000000000000..8aa1c432b86c3
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionListResult.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentDefinitionInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Results of the environment definition list operation. */
+@Immutable
+public final class EnvironmentDefinitionListResult {
+ /*
+ * Current page of results.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * URL to get the next set of results if there are any.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of EnvironmentDefinitionListResult class. */
+ public EnvironmentDefinitionListResult() {
+ }
+
+ /**
+ * Get the value property: Current page of results.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of results if there are any.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionParameter.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionParameter.java
new file mode 100644
index 0000000000000..2719e2de791dc
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitionParameter.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of an Environment Definition parameter. */
+@Immutable
+public final class EnvironmentDefinitionParameter {
+ /*
+ * Unique ID of the parameter
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * Display name of the parameter
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Description of the parameter
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * A string of one of the basic JSON types (number, integer, array, object, boolean, string)
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private ParameterType type;
+
+ /*
+ * Whether or not this parameter is read-only. If true, default should have a value.
+ */
+ @JsonProperty(value = "readOnly", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean readOnly;
+
+ /*
+ * Whether or not this parameter is required
+ */
+ @JsonProperty(value = "required", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean required;
+
+ /** Creates an instance of EnvironmentDefinitionParameter class. */
+ public EnvironmentDefinitionParameter() {
+ }
+
+ /**
+ * Get the id property: Unique ID of the parameter.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: Display name of the parameter.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the description property: Description of the parameter.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: A string of one of the basic JSON types (number, integer, array, object, boolean, string).
+ *
+ * @return the type value.
+ */
+ public ParameterType type() {
+ return this.type;
+ }
+
+ /**
+ * Get the readOnly property: Whether or not this parameter is read-only. If true, default should have a value.
+ *
+ * @return the readOnly value.
+ */
+ public Boolean readOnly() {
+ return this.readOnly;
+ }
+
+ /**
+ * Get the required property: Whether or not this parameter is required.
+ *
+ * @return the required value.
+ */
+ public Boolean required() {
+ return this.required;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitions.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitions.java
new file mode 100644
index 0000000000000..a32fcb78116e4
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentDefinitions.java
@@ -0,0 +1,112 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of EnvironmentDefinitions. */
+public interface EnvironmentDefinitions {
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName);
+
+ /**
+ * List environment definitions in the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @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 results of the environment definition list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByCatalog(
+ String resourceGroupName, String devCenterName, String catalogName, Integer top, Context context);
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context);
+
+ /**
+ * Gets an environment definition from the catalog.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 an environment definition from the catalog.
+ */
+ EnvironmentDefinition get(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName);
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details along with {@link Response}.
+ */
+ Response getErrorDetailsWithResponse(
+ String resourceGroupName,
+ String devCenterName,
+ String catalogName,
+ String environmentDefinitionName,
+ Context context);
+
+ /**
+ * Gets Environment Definition error details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param devCenterName The name of the devcenter.
+ * @param catalogName The name of the Catalog.
+ * @param environmentDefinitionName The name of the Environment Definition.
+ * @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 environment Definition error details.
+ */
+ CatalogResourceValidationErrorDetails getErrorDetails(
+ String resourceGroupName, String devCenterName, String catalogName, String environmentDefinitionName);
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentType.java
index 541312d3751fc..f47ac6ab45360 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentType.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentType.java
@@ -71,11 +71,13 @@ public interface EnvironmentType {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The EnvironmentType definition stages. */
interface DefinitionStages {
/** The first stage of the EnvironmentType definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the EnvironmentType definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -87,6 +89,7 @@ interface WithParentResource {
*/
WithCreate withExistingDevcenter(String resourceGroupName, String devCenterName);
}
+
/**
* The stage of the EnvironmentType 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.
@@ -107,6 +110,7 @@ interface WithCreate extends DefinitionStages.WithTags {
*/
EnvironmentType create(Context context);
}
+
/** The stage of the EnvironmentType definition allowing to specify tags. */
interface WithTags {
/**
@@ -118,6 +122,7 @@ interface WithTags {
WithCreate withTags(Map tags);
}
}
+
/**
* Begins update for the EnvironmentType resource.
*
@@ -142,6 +147,7 @@ interface Update extends UpdateStages.WithTags {
*/
EnvironmentType apply(Context context);
}
+
/** The EnvironmentType update stages. */
interface UpdateStages {
/** The stage of the EnvironmentType update allowing to specify tags. */
@@ -155,6 +161,7 @@ interface WithTags {
Update withTags(Map tags);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Gallery.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Gallery.java
index ee5313e551669..25db14c28a353 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Gallery.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Gallery.java
@@ -70,11 +70,13 @@ public interface Gallery {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The Gallery definition stages. */
interface DefinitionStages {
/** The first stage of the Gallery definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the Gallery definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -86,6 +88,7 @@ interface WithParentResource {
*/
WithCreate withExistingDevcenter(String resourceGroupName, String devCenterName);
}
+
/**
* The stage of the Gallery 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.
@@ -106,6 +109,7 @@ interface WithCreate extends DefinitionStages.WithGalleryResourceId {
*/
Gallery create(Context context);
}
+
/** The stage of the Gallery definition allowing to specify galleryResourceId. */
interface WithGalleryResourceId {
/**
@@ -117,6 +121,7 @@ interface WithGalleryResourceId {
WithCreate withGalleryResourceId(String galleryResourceId);
}
}
+
/**
* Begins update for the Gallery resource.
*
@@ -141,9 +146,11 @@ interface Update {
*/
Gallery apply(Context context);
}
+
/** The Gallery update stages. */
interface UpdateStages {
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/IdentityType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/IdentityType.java
new file mode 100644
index 0000000000000..05d948c352d40
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/IdentityType.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Values can be systemAssignedIdentity or userAssignedIdentity. */
+public final class IdentityType extends ExpandableStringEnum {
+ /** Static value systemAssignedIdentity for IdentityType. */
+ public static final IdentityType SYSTEM_ASSIGNED_IDENTITY = fromString("systemAssignedIdentity");
+
+ /** Static value userAssignedIdentity for IdentityType. */
+ public static final IdentityType USER_ASSIGNED_IDENTITY = fromString("userAssignedIdentity");
+
+ /** Static value delegatedResourceIdentity for IdentityType. */
+ public static final IdentityType DELEGATED_RESOURCE_IDENTITY = fromString("delegatedResourceIdentity");
+
+ /**
+ * Creates a new instance of IdentityType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public IdentityType() {
+ }
+
+ /**
+ * Creates or finds a IdentityType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding IdentityType.
+ */
+ @JsonCreator
+ public static IdentityType fromString(String name) {
+ return fromString(name, IdentityType.class);
+ }
+
+ /**
+ * Gets known IdentityType values.
+ *
+ * @return known IdentityType values.
+ */
+ public static Collection values() {
+ return values(IdentityType.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
index 84a67cdd92ab0..05bb6977ca92d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
@@ -8,7 +8,10 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for LocalAdminStatus. */
+/**
+ * Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators
+ * on the Dev Box.
+ */
public final class LocalAdminStatus extends ExpandableStringEnum {
/** Static value Disabled for LocalAdminStatus. */
public static final LocalAdminStatus DISABLED = fromString("Disabled");
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/NetworkConnection.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/NetworkConnection.java
index 24746c375e2c2..3858098c75952 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/NetworkConnection.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/NetworkConnection.java
@@ -154,11 +154,13 @@ interface Definition
DefinitionStages.WithResourceGroup,
DefinitionStages.WithCreate {
}
+
/** The NetworkConnection definition stages. */
interface DefinitionStages {
/** The first stage of the NetworkConnection definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the NetworkConnection definition allowing to specify location. */
interface WithLocation {
/**
@@ -177,6 +179,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the NetworkConnection definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -187,6 +190,7 @@ interface WithResourceGroup {
*/
WithCreate withExistingResourceGroup(String resourceGroupName);
}
+
/**
* The stage of the NetworkConnection 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.
@@ -215,6 +219,7 @@ interface WithCreate
*/
NetworkConnection create(Context context);
}
+
/** The stage of the NetworkConnection definition allowing to specify tags. */
interface WithTags {
/**
@@ -225,6 +230,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the NetworkConnection definition allowing to specify networkingResourceGroupName. */
interface WithNetworkingResourceGroupName {
/**
@@ -236,6 +242,7 @@ interface WithNetworkingResourceGroupName {
*/
WithCreate withNetworkingResourceGroupName(String networkingResourceGroupName);
}
+
/** The stage of the NetworkConnection definition allowing to specify domainJoinType. */
interface WithDomainJoinType {
/**
@@ -246,6 +253,7 @@ interface WithDomainJoinType {
*/
WithCreate withDomainJoinType(DomainJoinType domainJoinType);
}
+
/** The stage of the NetworkConnection definition allowing to specify subnetId. */
interface WithSubnetId {
/**
@@ -256,6 +264,7 @@ interface WithSubnetId {
*/
WithCreate withSubnetId(String subnetId);
}
+
/** The stage of the NetworkConnection definition allowing to specify domainName. */
interface WithDomainName {
/**
@@ -266,6 +275,7 @@ interface WithDomainName {
*/
WithCreate withDomainName(String domainName);
}
+
/** The stage of the NetworkConnection definition allowing to specify organizationUnit. */
interface WithOrganizationUnit {
/**
@@ -276,6 +286,7 @@ interface WithOrganizationUnit {
*/
WithCreate withOrganizationUnit(String organizationUnit);
}
+
/** The stage of the NetworkConnection definition allowing to specify domainUsername. */
interface WithDomainUsername {
/**
@@ -289,6 +300,7 @@ interface WithDomainUsername {
*/
WithCreate withDomainUsername(String domainUsername);
}
+
/** The stage of the NetworkConnection definition allowing to specify domainPassword. */
interface WithDomainPassword {
/**
@@ -300,6 +312,7 @@ interface WithDomainPassword {
WithCreate withDomainPassword(String domainPassword);
}
}
+
/**
* Begins update for the NetworkConnection resource.
*
@@ -330,6 +343,7 @@ interface Update
*/
NetworkConnection apply(Context context);
}
+
/** The NetworkConnection update stages. */
interface UpdateStages {
/** The stage of the NetworkConnection update allowing to specify tags. */
@@ -342,6 +356,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the NetworkConnection update allowing to specify subnetId. */
interface WithSubnetId {
/**
@@ -352,6 +367,7 @@ interface WithSubnetId {
*/
Update withSubnetId(String subnetId);
}
+
/** The stage of the NetworkConnection update allowing to specify domainName. */
interface WithDomainName {
/**
@@ -362,6 +378,7 @@ interface WithDomainName {
*/
Update withDomainName(String domainName);
}
+
/** The stage of the NetworkConnection update allowing to specify organizationUnit. */
interface WithOrganizationUnit {
/**
@@ -372,6 +389,7 @@ interface WithOrganizationUnit {
*/
Update withOrganizationUnit(String organizationUnit);
}
+
/** The stage of the NetworkConnection update allowing to specify domainUsername. */
interface WithDomainUsername {
/**
@@ -385,6 +403,7 @@ interface WithDomainUsername {
*/
Update withDomainUsername(String domainUsername);
}
+
/** The stage of the NetworkConnection update allowing to specify domainPassword. */
interface WithDomainPassword {
/**
@@ -396,6 +415,7 @@ interface WithDomainPassword {
Update withDomainPassword(String domainPassword);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ParameterType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ParameterType.java
new file mode 100644
index 0000000000000..b10731051ae3c
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ParameterType.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** The type of data a parameter accepts. */
+public final class ParameterType extends ExpandableStringEnum {
+ /** Static value array for ParameterType. */
+ public static final ParameterType ARRAY = fromString("array");
+
+ /** Static value boolean for ParameterType. */
+ public static final ParameterType BOOLEAN = fromString("boolean");
+
+ /** Static value integer for ParameterType. */
+ public static final ParameterType INTEGER = fromString("integer");
+
+ /** Static value number for ParameterType. */
+ public static final ParameterType NUMBER = fromString("number");
+
+ /** Static value object for ParameterType. */
+ public static final ParameterType OBJECT = fromString("object");
+
+ /** Static value string for ParameterType. */
+ public static final ParameterType STRING = fromString("string");
+
+ /**
+ * Creates a new instance of ParameterType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ParameterType() {
+ }
+
+ /**
+ * Creates or finds a ParameterType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ParameterType.
+ */
+ @JsonCreator
+ public static ParameterType fromString(String name) {
+ return fromString(name, ParameterType.class);
+ }
+
+ /**
+ * Gets known ParameterType values.
+ *
+ * @return known ParameterType values.
+ */
+ public static Collection values() {
+ return values(ParameterType.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
index 6d73afd35564b..7e00ff1f167d7 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
@@ -71,6 +71,13 @@ public interface Pool {
*/
List healthStatusDetails();
+ /**
+ * Gets the devBoxCount property: Indicates the number of provisioned Dev Boxes in this pool.
+ *
+ * @return the devBoxCount value.
+ */
+ Integer devBoxCount();
+
/**
* Gets the provisioningState property: The provisioning state of the resource.
*
@@ -115,6 +122,14 @@ public interface Pool {
*/
StopOnDisconnectConfiguration stopOnDisconnect();
+ /**
+ * Gets the singleSignOnStatus property: Indicates whether Dev Boxes in this pool are created with single sign on
+ * enabled. The also requires that single sign on be enabled on the tenant.
+ *
+ * @return the singleSignOnStatus value.
+ */
+ SingleSignOnStatus singleSignOnStatus();
+
/**
* Gets the region of the resource.
*
@@ -150,11 +165,13 @@ interface Definition
DefinitionStages.WithParentResource,
DefinitionStages.WithCreate {
}
+
/** The Pool definition stages. */
interface DefinitionStages {
/** The first stage of the Pool definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the Pool definition allowing to specify location. */
interface WithLocation {
/**
@@ -173,6 +190,7 @@ interface WithLocation {
*/
WithParentResource withRegion(String location);
}
+
/** The stage of the Pool definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -184,6 +202,7 @@ interface WithParentResource {
*/
WithCreate withExistingProject(String resourceGroupName, String projectName);
}
+
/**
* The stage of the Pool 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.
@@ -194,7 +213,8 @@ interface WithCreate
DefinitionStages.WithNetworkConnectionName,
DefinitionStages.WithLicenseType,
DefinitionStages.WithLocalAdministrator,
- DefinitionStages.WithStopOnDisconnect {
+ DefinitionStages.WithStopOnDisconnect,
+ DefinitionStages.WithSingleSignOnStatus {
/**
* Executes the create request.
*
@@ -210,6 +230,7 @@ interface WithCreate
*/
Pool create(Context context);
}
+
/** The stage of the Pool definition allowing to specify tags. */
interface WithTags {
/**
@@ -220,6 +241,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the Pool definition allowing to specify devBoxDefinitionName. */
interface WithDevBoxDefinitionName {
/**
@@ -230,6 +252,7 @@ interface WithDevBoxDefinitionName {
*/
WithCreate withDevBoxDefinitionName(String devBoxDefinitionName);
}
+
/** The stage of the Pool definition allowing to specify networkConnectionName. */
interface WithNetworkConnectionName {
/**
@@ -241,6 +264,7 @@ interface WithNetworkConnectionName {
*/
WithCreate withNetworkConnectionName(String networkConnectionName);
}
+
/** The stage of the Pool definition allowing to specify licenseType. */
interface WithLicenseType {
/**
@@ -253,6 +277,7 @@ interface WithLicenseType {
*/
WithCreate withLicenseType(LicenseType licenseType);
}
+
/** The stage of the Pool definition allowing to specify localAdministrator. */
interface WithLocalAdministrator {
/**
@@ -265,6 +290,7 @@ interface WithLocalAdministrator {
*/
WithCreate withLocalAdministrator(LocalAdminStatus localAdministrator);
}
+
/** The stage of the Pool definition allowing to specify stopOnDisconnect. */
interface WithStopOnDisconnect {
/**
@@ -276,7 +302,21 @@ interface WithStopOnDisconnect {
*/
WithCreate withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect);
}
+
+ /** The stage of the Pool definition allowing to specify singleSignOnStatus. */
+ interface WithSingleSignOnStatus {
+ /**
+ * Specifies the singleSignOnStatus property: Indicates whether Dev Boxes in this pool are created with
+ * single sign on enabled. The also requires that single sign on be enabled on the tenant..
+ *
+ * @param singleSignOnStatus Indicates whether Dev Boxes in this pool are created with single sign on
+ * enabled. The also requires that single sign on be enabled on the tenant.
+ * @return the next definition stage.
+ */
+ WithCreate withSingleSignOnStatus(SingleSignOnStatus singleSignOnStatus);
+ }
}
+
/**
* Begins update for the Pool resource.
*
@@ -291,7 +331,8 @@ interface Update
UpdateStages.WithNetworkConnectionName,
UpdateStages.WithLicenseType,
UpdateStages.WithLocalAdministrator,
- UpdateStages.WithStopOnDisconnect {
+ UpdateStages.WithStopOnDisconnect,
+ UpdateStages.WithSingleSignOnStatus {
/**
* Executes the update request.
*
@@ -307,6 +348,7 @@ interface Update
*/
Pool apply(Context context);
}
+
/** The Pool update stages. */
interface UpdateStages {
/** The stage of the Pool update allowing to specify tags. */
@@ -319,6 +361,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Pool update allowing to specify devBoxDefinitionName. */
interface WithDevBoxDefinitionName {
/**
@@ -329,6 +372,7 @@ interface WithDevBoxDefinitionName {
*/
Update withDevBoxDefinitionName(String devBoxDefinitionName);
}
+
/** The stage of the Pool update allowing to specify networkConnectionName. */
interface WithNetworkConnectionName {
/**
@@ -340,6 +384,7 @@ interface WithNetworkConnectionName {
*/
Update withNetworkConnectionName(String networkConnectionName);
}
+
/** The stage of the Pool update allowing to specify licenseType. */
interface WithLicenseType {
/**
@@ -352,6 +397,7 @@ interface WithLicenseType {
*/
Update withLicenseType(LicenseType licenseType);
}
+
/** The stage of the Pool update allowing to specify localAdministrator. */
interface WithLocalAdministrator {
/**
@@ -364,6 +410,7 @@ interface WithLocalAdministrator {
*/
Update withLocalAdministrator(LocalAdminStatus localAdministrator);
}
+
/** The stage of the Pool update allowing to specify stopOnDisconnect. */
interface WithStopOnDisconnect {
/**
@@ -375,7 +422,21 @@ interface WithStopOnDisconnect {
*/
Update withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect);
}
+
+ /** The stage of the Pool update allowing to specify singleSignOnStatus. */
+ interface WithSingleSignOnStatus {
+ /**
+ * Specifies the singleSignOnStatus property: Indicates whether Dev Boxes in this pool are created with
+ * single sign on enabled. The also requires that single sign on be enabled on the tenant..
+ *
+ * @param singleSignOnStatus Indicates whether Dev Boxes in this pool are created with single sign on
+ * enabled. The also requires that single sign on be enabled on the tenant.
+ * @return the next definition stage.
+ */
+ Update withSingleSignOnStatus(SingleSignOnStatus singleSignOnStatus);
+ }
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
index 468422a3aeb7e..88080aad7d85a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
@@ -164,6 +164,31 @@ public PoolUpdate withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisco
return this;
}
+ /**
+ * Get the singleSignOnStatus property: Indicates whether Dev Boxes in this pool are created with single sign on
+ * enabled. The also requires that single sign on be enabled on the tenant.
+ *
+ * @return the singleSignOnStatus value.
+ */
+ public SingleSignOnStatus singleSignOnStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().singleSignOnStatus();
+ }
+
+ /**
+ * Set the singleSignOnStatus property: Indicates whether Dev Boxes in this pool are created with single sign on
+ * enabled. The also requires that single sign on be enabled on the tenant.
+ *
+ * @param singleSignOnStatus the singleSignOnStatus value to set.
+ * @return the PoolUpdate object itself.
+ */
+ public PoolUpdate withSingleSignOnStatus(SingleSignOnStatus singleSignOnStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PoolUpdateProperties();
+ }
+ this.innerProperties().withSingleSignOnStatus(singleSignOnStatus);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
index 8d03287c45b3b..aa07bfe851e79 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
@@ -125,11 +125,13 @@ interface Definition
DefinitionStages.WithResourceGroup,
DefinitionStages.WithCreate {
}
+
/** The Project definition stages. */
interface DefinitionStages {
/** The first stage of the Project definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the Project definition allowing to specify location. */
interface WithLocation {
/**
@@ -148,6 +150,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the Project definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -158,6 +161,7 @@ interface WithResourceGroup {
*/
WithCreate withExistingResourceGroup(String resourceGroupName);
}
+
/**
* The stage of the Project 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.
@@ -182,6 +186,7 @@ interface WithCreate
*/
Project create(Context context);
}
+
/** The stage of the Project definition allowing to specify tags. */
interface WithTags {
/**
@@ -192,6 +197,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the Project definition allowing to specify devCenterId. */
interface WithDevCenterId {
/**
@@ -202,6 +208,7 @@ interface WithDevCenterId {
*/
WithCreate withDevCenterId(String devCenterId);
}
+
/** The stage of the Project definition allowing to specify description. */
interface WithDescription {
/**
@@ -212,6 +219,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the Project definition allowing to specify maxDevBoxesPerUser. */
interface WithMaxDevBoxesPerUser {
/**
@@ -226,6 +234,7 @@ interface WithMaxDevBoxesPerUser {
WithCreate withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser);
}
}
+
/**
* Begins update for the Project resource.
*
@@ -254,6 +263,7 @@ interface Update
*/
Project apply(Context context);
}
+
/** The Project update stages. */
interface UpdateStages {
/** The stage of the Project update allowing to specify tags. */
@@ -266,6 +276,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Project update allowing to specify devCenterId. */
interface WithDevCenterId {
/**
@@ -276,6 +287,7 @@ interface WithDevCenterId {
*/
Update withDevCenterId(String devCenterId);
}
+
/** The stage of the Project update allowing to specify description. */
interface WithDescription {
/**
@@ -286,6 +298,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the Project update allowing to specify maxDevBoxesPerUser. */
interface WithMaxDevBoxesPerUser {
/**
@@ -300,6 +313,7 @@ interface WithMaxDevBoxesPerUser {
Update withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
index 13035c09bd079..5334b655da165 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
@@ -131,11 +131,13 @@ public interface ProjectEnvironmentType {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The ProjectEnvironmentType definition stages. */
interface DefinitionStages {
/** The first stage of the ProjectEnvironmentType definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -147,6 +149,7 @@ interface WithParentResource {
*/
WithCreate withExistingProject(String resourceGroupName, String projectName);
}
+
/**
* The stage of the ProjectEnvironmentType 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.
@@ -174,6 +177,7 @@ interface WithCreate
*/
ProjectEnvironmentType create(Context context);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify location. */
interface WithLocation {
/**
@@ -192,6 +196,7 @@ interface WithLocation {
*/
WithCreate withRegion(String location);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify tags. */
interface WithTags {
/**
@@ -202,6 +207,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -212,6 +218,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ManagedServiceIdentity identity);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify deploymentTargetId. */
interface WithDeploymentTargetId {
/**
@@ -224,6 +231,7 @@ interface WithDeploymentTargetId {
*/
WithCreate withDeploymentTargetId(String deploymentTargetId);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify status. */
interface WithStatus {
/**
@@ -234,6 +242,7 @@ interface WithStatus {
*/
WithCreate withStatus(EnvironmentTypeEnableStatus status);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify creatorRoleAssignment. */
interface WithCreatorRoleAssignment {
/**
@@ -247,6 +256,7 @@ interface WithCreatorRoleAssignment {
WithCreate withCreatorRoleAssignment(
ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment);
}
+
/** The stage of the ProjectEnvironmentType definition allowing to specify userRoleAssignments. */
interface WithUserRoleAssignments {
/**
@@ -260,6 +270,7 @@ interface WithUserRoleAssignments {
WithCreate withUserRoleAssignments(Map userRoleAssignments);
}
}
+
/**
* Begins update for the ProjectEnvironmentType resource.
*
@@ -290,6 +301,7 @@ interface Update
*/
ProjectEnvironmentType apply(Context context);
}
+
/** The ProjectEnvironmentType update stages. */
interface UpdateStages {
/** The stage of the ProjectEnvironmentType update allowing to specify tags. */
@@ -302,6 +314,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the ProjectEnvironmentType update allowing to specify identity. */
interface WithIdentity {
/**
@@ -312,6 +325,7 @@ interface WithIdentity {
*/
Update withIdentity(ManagedServiceIdentity identity);
}
+
/** The stage of the ProjectEnvironmentType update allowing to specify deploymentTargetId. */
interface WithDeploymentTargetId {
/**
@@ -324,6 +338,7 @@ interface WithDeploymentTargetId {
*/
Update withDeploymentTargetId(String deploymentTargetId);
}
+
/** The stage of the ProjectEnvironmentType update allowing to specify status. */
interface WithStatus {
/**
@@ -334,6 +349,7 @@ interface WithStatus {
*/
Update withStatus(EnvironmentTypeEnableStatus status);
}
+
/** The stage of the ProjectEnvironmentType update allowing to specify creatorRoleAssignment. */
interface WithCreatorRoleAssignment {
/**
@@ -347,6 +363,7 @@ interface WithCreatorRoleAssignment {
Update withCreatorRoleAssignment(
ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment);
}
+
/** The stage of the ProjectEnvironmentType update allowing to specify userRoleAssignments. */
interface WithUserRoleAssignments {
/**
@@ -360,6 +377,7 @@ interface WithUserRoleAssignments {
Update withUserRoleAssignments(Map userRoleAssignments);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Schedule.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Schedule.java
index cbfcb802a929f..bcead68686f26 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Schedule.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Schedule.java
@@ -99,11 +99,13 @@ public interface Schedule {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The Schedule definition stages. */
interface DefinitionStages {
/** The first stage of the Schedule definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the Schedule definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -116,6 +118,7 @@ interface WithParentResource {
*/
WithCreate withExistingPool(String resourceGroupName, String projectName, String poolName);
}
+
/**
* The stage of the Schedule 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.
@@ -142,6 +145,7 @@ interface WithCreate
*/
Schedule create(Context context);
}
+
/** The stage of the Schedule definition allowing to specify typePropertiesType. */
interface WithTypePropertiesType {
/**
@@ -152,6 +156,7 @@ interface WithTypePropertiesType {
*/
WithCreate withTypePropertiesType(ScheduledType typePropertiesType);
}
+
/** The stage of the Schedule definition allowing to specify frequency. */
interface WithFrequency {
/**
@@ -162,6 +167,7 @@ interface WithFrequency {
*/
WithCreate withFrequency(ScheduledFrequency frequency);
}
+
/** The stage of the Schedule definition allowing to specify time. */
interface WithTime {
/**
@@ -172,6 +178,7 @@ interface WithTime {
*/
WithCreate withTime(String time);
}
+
/** The stage of the Schedule definition allowing to specify timeZone. */
interface WithTimeZone {
/**
@@ -182,6 +189,7 @@ interface WithTimeZone {
*/
WithCreate withTimeZone(String timeZone);
}
+
/** The stage of the Schedule definition allowing to specify state. */
interface WithState {
/**
@@ -192,6 +200,7 @@ interface WithState {
*/
WithCreate withState(ScheduleEnableStatus state);
}
+
/** The stage of the Schedule definition allowing to specify top. */
interface WithTop {
/**
@@ -204,6 +213,7 @@ interface WithTop {
WithCreate withTop(Integer top);
}
}
+
/**
* Begins update for the Schedule resource.
*
@@ -235,6 +245,7 @@ interface Update
*/
Schedule apply(Context context);
}
+
/** The Schedule update stages. */
interface UpdateStages {
/** The stage of the Schedule update allowing to specify tags. */
@@ -247,6 +258,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Schedule update allowing to specify type. */
interface WithType {
/**
@@ -257,6 +269,7 @@ interface WithType {
*/
Update withType(ScheduledType type);
}
+
/** The stage of the Schedule update allowing to specify frequency. */
interface WithFrequency {
/**
@@ -267,6 +280,7 @@ interface WithFrequency {
*/
Update withFrequency(ScheduledFrequency frequency);
}
+
/** The stage of the Schedule update allowing to specify time. */
interface WithTime {
/**
@@ -277,6 +291,7 @@ interface WithTime {
*/
Update withTime(String time);
}
+
/** The stage of the Schedule update allowing to specify timeZone. */
interface WithTimeZone {
/**
@@ -287,6 +302,7 @@ interface WithTimeZone {
*/
Update withTimeZone(String timeZone);
}
+
/** The stage of the Schedule update allowing to specify state. */
interface WithState {
/**
@@ -297,6 +313,7 @@ interface WithState {
*/
Update withState(ScheduleEnableStatus state);
}
+
/** The stage of the Schedule update allowing to specify top. */
interface WithTop {
/**
@@ -309,6 +326,7 @@ interface WithTop {
Update withTop(Integer top);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SingleSignOnStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SingleSignOnStatus.java
new file mode 100644
index 0000000000000..19f4cc884f08c
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SingleSignOnStatus.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or
+ * disabled.
+ */
+public final class SingleSignOnStatus extends ExpandableStringEnum {
+ /** Static value Disabled for SingleSignOnStatus. */
+ public static final SingleSignOnStatus DISABLED = fromString("Disabled");
+
+ /** Static value Enabled for SingleSignOnStatus. */
+ public static final SingleSignOnStatus ENABLED = fromString("Enabled");
+
+ /**
+ * Creates a new instance of SingleSignOnStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public SingleSignOnStatus() {
+ }
+
+ /**
+ * Creates or finds a SingleSignOnStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding SingleSignOnStatus.
+ */
+ @JsonCreator
+ public static SingleSignOnStatus fromString(String name) {
+ return fromString(name, SingleSignOnStatus.class);
+ }
+
+ /**
+ * Gets known SingleSignOnStatus values.
+ *
+ * @return known SingleSignOnStatus values.
+ */
+ public static Collection values() {
+ return values(SingleSignOnStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncErrorDetails.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncErrorDetails.java
new file mode 100644
index 0000000000000..452050fa321dc
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncErrorDetails.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.resourcemanager.devcenter.fluent.models.SyncErrorDetailsInner;
+import java.util.List;
+
+/** An immutable client-side representation of SyncErrorDetails. */
+public interface SyncErrorDetails {
+ /**
+ * Gets the operationError property: Error information for the overall synchronization operation.
+ *
+ * @return the operationError value.
+ */
+ CatalogErrorDetails operationError();
+
+ /**
+ * Gets the conflicts property: Catalog items that have conflicting names.
+ *
+ * @return the conflicts value.
+ */
+ List conflicts();
+
+ /**
+ * Gets the errors property: Errors that occured during synchronization.
+ *
+ * @return the errors value.
+ */
+ List errors();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.SyncErrorDetailsInner object.
+ *
+ * @return the inner object.
+ */
+ SyncErrorDetailsInner innerModel();
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncStats.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncStats.java
new file mode 100644
index 0000000000000..c817361199f3a
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/SyncStats.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Stats of the synchronization. */
+@Immutable
+public final class SyncStats {
+ /*
+ * Count of catalog items added during synchronization.
+ */
+ @JsonProperty(value = "added", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer added;
+
+ /*
+ * Count of catalog items updated during synchronization.
+ */
+ @JsonProperty(value = "updated", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer updated;
+
+ /*
+ * Count of catalog items that were unchanged during synchronization.
+ */
+ @JsonProperty(value = "unchanged", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer unchanged;
+
+ /*
+ * Count of catalog items removed during synchronization.
+ */
+ @JsonProperty(value = "removed", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer removed;
+
+ /*
+ * Count of catalog items that had validation errors during synchronization.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer validationErrors;
+
+ /*
+ * Count of synchronization errors that occured during synchronization.
+ */
+ @JsonProperty(value = "synchronizationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer synchronizationErrors;
+
+ /** Creates an instance of SyncStats class. */
+ public SyncStats() {
+ }
+
+ /**
+ * Get the added property: Count of catalog items added during synchronization.
+ *
+ * @return the added value.
+ */
+ public Integer added() {
+ return this.added;
+ }
+
+ /**
+ * Get the updated property: Count of catalog items updated during synchronization.
+ *
+ * @return the updated value.
+ */
+ public Integer updated() {
+ return this.updated;
+ }
+
+ /**
+ * Get the unchanged property: Count of catalog items that were unchanged during synchronization.
+ *
+ * @return the unchanged value.
+ */
+ public Integer unchanged() {
+ return this.unchanged;
+ }
+
+ /**
+ * Get the removed property: Count of catalog items removed during synchronization.
+ *
+ * @return the removed value.
+ */
+ public Integer removed() {
+ return this.removed;
+ }
+
+ /**
+ * Get the validationErrors property: Count of catalog items that had validation errors during synchronization.
+ *
+ * @return the validationErrors value.
+ */
+ public Integer validationErrors() {
+ return this.validationErrors;
+ }
+
+ /**
+ * Get the synchronizationErrors property: Count of synchronization errors that occured during synchronization.
+ *
+ * @return the synchronizationErrors value.
+ */
+ public Integer synchronizationErrors() {
+ return this.synchronizationErrors;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
index f64bdf4403fb1..2c568aada5afd 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks CreateOrUpdate. */
public final class AttachedNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_Create.json
*/
/**
* Sample code: AttachedNetworks_Create.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
index d793e0567b55b..0d7d143db2155 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks Delete. */
public final class AttachedNetworksDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_Delete.json
*/
/**
* Sample code: AttachedNetworks_Delete.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
index fc48d9712a8e8..1536a25f9fc37 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks GetByDevCenter. */
public final class AttachedNetworksGetByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_GetByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_GetByDevCenter.json
*/
/**
* Sample code: AttachedNetworks_GetByDevCenter.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
index a5069ee26a861..653b2efd81f96 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks GetByProject. */
public final class AttachedNetworksGetByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_GetByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_GetByProject.json
*/
/**
* Sample code: AttachedNetworks_GetByProject.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
index 42969baec84d3..211370aa6c6b3 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks ListByDevCenter. */
public final class AttachedNetworksListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_ListByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_ListByDevCenter.json
*/
/**
* Sample code: AttachedNetworks_ListByDevCenter.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
index fb83e8337f9f8..e95d5f53c10f7 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks ListByProject. */
public final class AttachedNetworksListByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_ListByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/AttachedNetworks_ListByProject.json
*/
/**
* Sample code: AttachedNetworks_ListByProject.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetErrorDetailsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetErrorDetailsSamples.java
new file mode 100644
index 0000000000000..5426a139baff4
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetErrorDetailsSamples.java
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CatalogDevBoxDefinitions GetErrorDetails. */
+public final class CatalogDevBoxDefinitionsGetErrorDetailsSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CatalogDevBoxDefinitions_GetErrorDetails.json
+ */
+ /**
+ * Sample code: CatalogDevBoxDefinitions_GetErrorDetails.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void catalogDevBoxDefinitionsGetErrorDetails(
+ com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .catalogDevBoxDefinitions()
+ .getErrorDetailsWithResponse(
+ "rg1", "Contoso", "CentralCatalog", "WebDevBox", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetSamples.java
new file mode 100644
index 0000000000000..9a5fab606789b
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsGetSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CatalogDevBoxDefinitions Get. */
+public final class CatalogDevBoxDefinitionsGetSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CatalogDevBoxDefinitions_Get.json
+ */
+ /**
+ * Sample code: CatalogDevBoxDefinitions_Get.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void catalogDevBoxDefinitionsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .catalogDevBoxDefinitions()
+ .getWithResponse("rg1", "Contoso", "CentralCatalog", "WebDevBox", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsListByCatalogSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsListByCatalogSamples.java
new file mode 100644
index 0000000000000..105ee2e2eb230
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogDevBoxDefinitionsListByCatalogSamples.java
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CatalogDevBoxDefinitions ListByCatalog. */
+public final class CatalogDevBoxDefinitionsListByCatalogSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CatalogDevBoxDefinitions_ListByCatalog.json
+ */
+ /**
+ * Sample code: CatalogDevBoxDefinitions_ListByCatalog.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void catalogDevBoxDefinitionsListByCatalog(
+ com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .catalogDevBoxDefinitions()
+ .listByCatalog("rg1", "Contoso", "CentralCatalog", null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsConnectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsConnectSamples.java
new file mode 100644
index 0000000000000..8717bbefacfc2
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsConnectSamples.java
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for Catalogs Connect. */
+public final class CatalogsConnectSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_Connect.json
+ */
+ /**
+ * Sample code: Catalogs_Connect.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void catalogsConnect(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager.catalogs().connect("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
index f3c2a82652052..cf93ca51551f8 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Catalogs CreateOrUpdate. */
public final class CatalogsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_CreateAdo.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_CreateAdo.json
*/
/**
* Sample code: Catalogs_CreateOrUpdateAdo.
@@ -31,7 +31,7 @@ public static void catalogsCreateOrUpdateAdo(com.azure.resourcemanager.devcenter
}
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_CreateGitHub.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_CreateGitHub.json
*/
/**
* Sample code: Catalogs_CreateOrUpdateGitHub.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
index b51fda04e8cb3..03a2aa6b98c17 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Catalogs Delete. */
public final class CatalogsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_Delete.json
*/
/**
* Sample code: Catalogs_Delete.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
index 096cb1a976c7b..ef185e36e7665 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for Catalogs Get. */
public final class CatalogsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_Get.json
*/
/**
* Sample code: Catalogs_Get.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSyncErrorDetailsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSyncErrorDetailsSamples.java
new file mode 100644
index 0000000000000..622c4911b42f8
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSyncErrorDetailsSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for Catalogs GetSyncErrorDetails. */
+public final class CatalogsGetSyncErrorDetailsSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_GetSyncErrorDetails.json
+ */
+ /**
+ * Sample code: Catalogs_GetSyncErrorDetails.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void catalogsGetSyncErrorDetails(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .catalogs()
+ .getSyncErrorDetailsWithResponse("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
index ad7a0cf4ecfad..0e54c0d4ec298 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
@@ -7,7 +7,7 @@
/** Samples for Catalogs ListByDevCenter. */
public final class CatalogsListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_List.json
*/
/**
* Sample code: Catalogs_ListByDevCenter.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
index af56cd7555d1e..142ac23fbda56 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
@@ -7,7 +7,7 @@
/** Samples for Catalogs Sync. */
public final class CatalogsSyncSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Sync.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_Sync.json
*/
/**
* Sample code: Catalogs_Sync.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
index 12a5dc3a1eaac..63a8a527dbe0c 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for Catalogs Update. */
public final class CatalogsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/Catalogs_Patch.json
*/
/**
* Sample code: Catalogs_Update.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
index c294f70e2e72c..f328e714332ac 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
@@ -9,7 +9,7 @@
/** Samples for CheckNameAvailability Execute. */
public final class CheckNameAvailabilityExecuteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/CheckNameAvailability.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CheckNameAvailability.json
*/
/**
* Sample code: NameAvailability.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetErrorDetailsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetErrorDetailsSamples.java
new file mode 100644
index 0000000000000..a749971af4cb2
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetErrorDetailsSamples.java
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CustomizationTasks GetErrorDetails. */
+public final class CustomizationTasksGetErrorDetailsSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CustomizationTasks_GetErrorDetails.json
+ */
+ /**
+ * Sample code: CustomizationTasks_GetErrorDetails.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void customizationTasksGetErrorDetails(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .customizationTasks()
+ .getErrorDetailsWithResponse(
+ "rg1", "Contoso", "CentralCatalog", "SampleTask", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetSamples.java
new file mode 100644
index 0000000000000..7c45a14d8d306
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksGetSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CustomizationTasks Get. */
+public final class CustomizationTasksGetSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CustomizationTasks_Get.json
+ */
+ /**
+ * Sample code: CustomizationTasks_Get.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void customizationTasksGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .customizationTasks()
+ .getWithResponse("rg1", "Contoso", "CentralCatalog", "SampleTask", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksListByCatalogSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksListByCatalogSamples.java
new file mode 100644
index 0000000000000..7f183281b585a
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CustomizationTasksListByCatalogSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for CustomizationTasks ListByCatalog. */
+public final class CustomizationTasksListByCatalogSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/CustomizationTasks_ListByCatalog.json
+ */
+ /**
+ * Sample code: CustomizationTasks_ListByCatalog.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void customizationTasksListByCatalog(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .customizationTasks()
+ .listByCatalog("rg1", "Contoso", "CentralCatalog", null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
index 9582bed48541a..d145868b8fe8c 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for DevBoxDefinitions CreateOrUpdate. */
public final class DevBoxDefinitionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_Create.json
*/
/**
* Sample code: DevBoxDefinitions_Create.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
index 32d44ff35d508..6412e9608f4ea 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for DevBoxDefinitions Delete. */
public final class DevBoxDefinitionsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_Delete.json
*/
/**
* Sample code: DevBoxDefinitions_Delete.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
index 8fc4728aca226..b786b14d53294 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
@@ -7,7 +7,7 @@
/** Samples for DevBoxDefinitions GetByProject. */
public final class DevBoxDefinitionsGetByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_GetByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_GetByProject.json
*/
/**
* Sample code: DevBoxDefinitions_GetByProject.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
index 5deac087842a1..439608e113d2f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for DevBoxDefinitions Get. */
public final class DevBoxDefinitionsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_Get.json
*/
/**
* Sample code: DevBoxDefinitions_Get.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
index fda630198f80e..2bd16658d4a6b 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
@@ -7,7 +7,7 @@
/** Samples for DevBoxDefinitions ListByDevCenter. */
public final class DevBoxDefinitionsListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_ListByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json
*/
/**
* Sample code: DevBoxDefinitions_ListByDevCenter.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
index 6aeb994422d31..49daf7119ed5d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
@@ -7,7 +7,7 @@
/** Samples for DevBoxDefinitions ListByProject. */
public final class DevBoxDefinitionsListByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_ListByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_ListByProject.json
*/
/**
* Sample code: DevBoxDefinitions_ListByProject.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
index 18838fcccf316..09bb7292efb4a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for DevBoxDefinitions Update. */
public final class DevBoxDefinitionsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxDefinitions_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevBoxDefinitions_Patch.json
*/
/**
* Sample code: DevBoxDefinitions_Patch.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
index b74b652292ff4..3e4c1f5eed8d9 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
@@ -4,6 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
+import com.azure.resourcemanager.devcenter.models.CustomerManagedKeyEncryption;
+import com.azure.resourcemanager.devcenter.models.CustomerManagedKeyEncryptionKeyIdentity;
+import com.azure.resourcemanager.devcenter.models.Encryption;
+import com.azure.resourcemanager.devcenter.models.IdentityType;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.devcenter.models.UserAssignedIdentity;
@@ -13,7 +17,7 @@
/** Samples for DevCenters CreateOrUpdate. */
public final class DevCentersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenters_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevCenters_Create.json
*/
/**
* Sample code: DevCenters_Create.
@@ -26,12 +30,12 @@ public static void devCentersCreate(com.azure.resourcemanager.devcenter.DevCente
.define("Contoso")
.withRegion("centralus")
.withExistingResourceGroup("rg1")
- .withTags(mapOf("CostCode", "12345"))
+ .withTags(mapOf("CostCode", "fakeTokenPlaceholder"))
.create();
}
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenters_CreateWithUserIdentity.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevCenters_CreateWithUserIdentity.json
*/
/**
* Sample code: DevCenters_CreateWithUserIdentity.
@@ -44,7 +48,7 @@ public static void devCentersCreateWithUserIdentity(com.azure.resourcemanager.de
.define("Contoso")
.withRegion("centralus")
.withExistingResourceGroup("rg1")
- .withTags(mapOf("CostCode", "12345"))
+ .withTags(mapOf("CostCode", "fakeTokenPlaceholder"))
.withIdentity(
new ManagedServiceIdentity()
.withType(ManagedServiceIdentityType.USER_ASSIGNED)
@@ -55,6 +59,42 @@ public static void devCentersCreateWithUserIdentity(com.azure.resourcemanager.de
.create();
}
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-08-01-preview/examples/DevCenters_CreateWithEncryption.json
+ */
+ /**
+ * Sample code: DevCenters_CreateWithEncryption.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void devCentersCreateWithEncryption(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .devCenters()
+ .define("Contoso")
+ .withRegion("centralus")
+ .withExistingResourceGroup("rg1")
+ .withTags(mapOf("CostCode", "fakeTokenPlaceholder"))
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1",
+ new UserAssignedIdentity())))
+ .withEncryption(
+ new Encryption()
+ .withCustomerManagedKeyEncryption(
+ new CustomerManagedKeyEncryption()
+ .withKeyEncryptionKeyIdentity(
+ new CustomerManagedKeyEncryptionKeyIdentity()
+ .withIdentityType(IdentityType.USER_ASSIGNED_IDENTITY)
+ .withUserAssignedIdentityResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1"))
+ .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static