diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsAsyncClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsAsyncClient.java index 14dd14976cd0b..3f89973c302f5 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsAsyncClient.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsAsyncClient.java @@ -515,7 +515,7 @@ public Mono> getEnvironmentDefinitionWithResponse(String pr * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -821,7 +821,7 @@ public Mono getEnvironmentDefinition(String projectName, /** * Lists all environment types configured for a project. * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClient.java index 45fc7110858e0..efdd89bf804d8 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClient.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClient.java @@ -508,7 +508,7 @@ public Response getEnvironmentDefinitionWithResponse(String projectN * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -752,7 +752,7 @@ public EnvironmentDefinition getEnvironmentDefinition(String projectName, String /** * Lists all environment types configured for a project. * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DeploymentEnvironmentsClientImpl.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DeploymentEnvironmentsClientImpl.java index 90269eaa567ba..7ccde9a86a5fb 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DeploymentEnvironmentsClientImpl.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DeploymentEnvironmentsClientImpl.java @@ -2508,7 +2508,7 @@ public Response getEnvironmentDefinitionWithResponse(String projectN * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2540,7 +2540,7 @@ private Mono> listEnvironmentTypesSinglePageAsync(Stri * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2569,7 +2569,7 @@ public PagedFlux listEnvironmentTypesAsync(String projectName, Reque * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2599,7 +2599,7 @@ private PagedResponse listEnvironmentTypesSinglePage(String projectN * } * } * - * @param projectName The DevCenter Project upon which to execute operations. + * @param projectName Name of the project. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevCenterEnvironmentType.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevCenterEnvironmentType.java index bf5d0eef630a7..84387a2e70eed 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevCenterEnvironmentType.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevCenterEnvironmentType.java @@ -21,7 +21,7 @@ public final class DevCenterEnvironmentType implements JsonSerializable { +public enum DevCenterOperationStatus { + /** + * The operation has not started. + */ + NOT_STARTED("NotStarted"), /** * The operation is in progress. */ - @Generated - public static final DevCenterOperationStatus RUNNING = fromString("Running"); + RUNNING("Running"), /** - * The operation has been canceled by the user. + * The operation has completed successfully. */ - @Generated - public static final DevCenterOperationStatus CANCELED = fromString("Canceled"); + SUCCEEDED("Succeeded"), /** * The operation has failed. */ - @Generated - public static final DevCenterOperationStatus FAILED = fromString("Failed"); + FAILED("Failed"), /** - * Creates a new instance of DevCenterOperationStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. + * The operation has been canceled by the user. */ - @Generated - @Deprecated - public DevCenterOperationStatus() { - } + CANCELED("Canceled"); /** - * Creates or finds a DevCenterOperationStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding DevCenterOperationStatus. + * The actual serialized value for a DevCenterOperationStatus instance. */ - @Generated - public static DevCenterOperationStatus fromString(String name) { - return fromString(name, DevCenterOperationStatus.class); - } + private final String value; - /** - * Gets known DevCenterOperationStatus values. - * - * @return known DevCenterOperationStatus values. - */ - @Generated - public static Collection values() { - return values(DevCenterOperationStatus.class); + DevCenterOperationStatus(String value) { + this.value = value; } /** - * The operation has not started. + * Parses a serialized value to a DevCenterOperationStatus instance. + * + * @param value the serialized value to parse. + * @return the parsed DevCenterOperationStatus object, or null if unable to parse. */ - @Generated - public static final DevCenterOperationStatus NOT_STARTED = fromString("NotStarted"); + public static DevCenterOperationStatus fromString(String value) { + if (value == null) { + return null; + } + DevCenterOperationStatus[] items = DevCenterOperationStatus.values(); + for (DevCenterOperationStatus item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } /** - * The operation has completed successfully. + * {@inheritDoc} */ - @Generated - public static final DevCenterOperationStatus SUCCEEDED = fromString("Succeeded"); + @Override + public String toString() { + return this.value; + } } diff --git a/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml b/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml index d8e61932c4b9e..16c6f2600ca26 100644 --- a/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml +++ b/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/devcenter/DevCenter -commit: 5e976eab0086a3b9e66393597efb2437e75ce808 +commit: ea05402820c853cfb2b63933d36dc4ba61944302 repo: Azure/azure-rest-api-specs -cleanup: true +additionalDirectories: