diff --git a/eng/emitter-package.json b/eng/emitter-package.json
index 4797a09f9902..bad01501ad7d 100644
--- a/eng/emitter-package.json
+++ b/eng/emitter-package.json
@@ -1,6 +1,6 @@
{
"main": "dist/src/index.js",
"dependencies": {
- "@azure-tools/typespec-java": "0.10.0"
+ "@azure-tools/typespec-java": "0.11.1"
}
-}
\ No newline at end of file
+}
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 b431d91469e2..cab2a89dc02f 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
@@ -20,14 +20,17 @@
import com.azure.developer.devcenter.implementation.DeploymentEnvironmentsClientImpl;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the asynchronous DeploymentEnvironmentsClient type. */
+/**
+ * Initializes a new instance of the asynchronous DeploymentEnvironmentsClient type.
+ */
@ServiceClient(builder = DeploymentEnvironmentsClientBuilder.class, isAsync = true)
public final class DeploymentEnvironmentsAsyncClient {
- @Generated private final DeploymentEnvironmentsClientImpl serviceClient;
+ @Generated
+ private final DeploymentEnvironmentsClientImpl serviceClient;
/**
* Initializes an instance of DeploymentEnvironmentsAsyncClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -37,19 +40,28 @@ public final class DeploymentEnvironmentsAsyncClient {
/**
* Lists the environments for a project.
- *
- *
Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -74,7 +86,7 @@ public final class DeploymentEnvironmentsAsyncClient {
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -91,19 +103,28 @@ public PagedFlux listAllEnvironments(String projectName, RequestOpti
/**
* Lists the environments for a project and user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -128,10 +149,10 @@ public PagedFlux listAllEnvironments(String projectName, RequestOpti
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -147,9 +168,9 @@ public PagedFlux listEnvironments(String projectName, String userId,
/**
* Gets an environment.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -174,10 +195,10 @@ public PagedFlux listEnvironments(String projectName, String userId,
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -188,16 +209,16 @@ public PagedFlux listEnvironments(String projectName, String userId,
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getEnvironmentWithResponse(
- String projectName, String userId, String environmentName, RequestOptions requestOptions) {
+ public Mono> getEnvironmentWithResponse(String projectName, String userId,
+ String environmentName, RequestOptions requestOptions) {
return this.serviceClient.getEnvironmentWithResponseAsync(projectName, userId, environmentName, requestOptions);
}
/**
* Creates or updates an environment.
- *
- * Request Body Schema
- *
+ *
+ * Request Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -222,9 +243,9 @@ public Mono> getEnvironmentWithResponse(
* }
* }
* }
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -249,10 +270,10 @@ public Mono> getEnvironmentWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param body Represents an environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -264,17 +285,17 @@ public Mono> getEnvironmentWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginCreateOrUpdateEnvironment(
- String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) {
- return this.serviceClient.beginCreateOrUpdateEnvironmentAsync(
- projectName, userId, environmentName, body, requestOptions);
+ public PollerFlux beginCreateOrUpdateEnvironment(String projectName, String userId,
+ String environmentName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginCreateOrUpdateEnvironmentAsync(projectName, userId, environmentName, body,
+ requestOptions);
}
/**
* Deletes an environment and all its associated resources.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -291,10 +312,10 @@ public PollerFlux beginCreateOrUpdateEnvironment(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -305,32 +326,41 @@ public PollerFlux beginCreateOrUpdateEnvironment(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginDeleteEnvironment(
- String projectName, String userId, String environmentName, RequestOptions requestOptions) {
+ public PollerFlux beginDeleteEnvironment(String projectName, String userId,
+ String environmentName, RequestOptions requestOptions) {
return this.serviceClient.beginDeleteEnvironmentAsync(projectName, userId, environmentName, requestOptions);
}
/**
* Lists all of the catalogs available for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -347,15 +377,15 @@ public PagedFlux listCatalogs(String projectName, RequestOptions req
/**
* Gets the specified catalog within the project.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -363,31 +393,40 @@ public PagedFlux listCatalogs(String projectName, RequestOptions req
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return the specified catalog within the project along with {@link Response} on successful completion of {@link
- * Mono}.
+ * @return the specified catalog within the project along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getCatalogWithResponse(
- String projectName, String catalogName, RequestOptions requestOptions) {
+ public Mono> getCatalogWithResponse(String projectName, String catalogName,
+ RequestOptions requestOptions) {
return this.serviceClient.getCatalogWithResponseAsync(projectName, catalogName, requestOptions);
}
/**
* Lists all environment definitions available for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -412,7 +451,7 @@ public Mono> getCatalogWithResponse(
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -429,19 +468,28 @@ public PagedFlux listEnvironmentDefinitions(String projectName, Requ
/**
* Lists all environment definitions available within a catalog.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -466,7 +514,7 @@ public PagedFlux listEnvironmentDefinitions(String projectName, Requ
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -478,16 +526,16 @@ public PagedFlux listEnvironmentDefinitions(String projectName, Requ
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listEnvironmentDefinitionsByCatalog(
- String projectName, String catalogName, RequestOptions requestOptions) {
+ public PagedFlux listEnvironmentDefinitionsByCatalog(String projectName, String catalogName,
+ RequestOptions requestOptions) {
return this.serviceClient.listEnvironmentDefinitionsByCatalogAsync(projectName, catalogName, requestOptions);
}
/**
* Get an environment definition from a catalog.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -512,7 +560,7 @@ public PagedFlux listEnvironmentDefinitionsByCatalog(
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param definitionName The name of the environment definition.
@@ -521,32 +569,41 @@ public PagedFlux listEnvironmentDefinitionsByCatalog(
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return an environment definition from a catalog along with {@link Response} on successful completion of {@link
- * Mono}.
+ * @return an environment definition from a catalog along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getEnvironmentDefinitionWithResponse(
- String projectName, String catalogName, String definitionName, RequestOptions requestOptions) {
- return this.serviceClient.getEnvironmentDefinitionWithResponseAsync(
- projectName, catalogName, definitionName, requestOptions);
+ public Mono> getEnvironmentDefinitionWithResponse(String projectName, String catalogName,
+ String definitionName, RequestOptions requestOptions) {
+ return this.serviceClient.getEnvironmentDefinitionWithResponseAsync(projectName, catalogName, definitionName,
+ requestOptions);
}
/**
* Lists all environment types configured for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -554,7 +611,7 @@ public Mono> getEnvironmentDefinitionWithResponse(
* status: String(Enabled/Disabled) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
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 2b26c3085c4d..6146c4ec86e8 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
@@ -19,14 +19,17 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.developer.devcenter.implementation.DeploymentEnvironmentsClientImpl;
-/** Initializes a new instance of the synchronous DeploymentEnvironmentsClient type. */
+/**
+ * Initializes a new instance of the synchronous DeploymentEnvironmentsClient type.
+ */
@ServiceClient(builder = DeploymentEnvironmentsClientBuilder.class)
public final class DeploymentEnvironmentsClient {
- @Generated private final DeploymentEnvironmentsClientImpl serviceClient;
+ @Generated
+ private final DeploymentEnvironmentsClientImpl serviceClient;
/**
* Initializes an instance of DeploymentEnvironmentsClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -36,19 +39,28 @@ public final class DeploymentEnvironmentsClient {
/**
* Lists the environments for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -73,7 +85,7 @@ public final class DeploymentEnvironmentsClient {
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -90,19 +102,28 @@ public PagedIterable listAllEnvironments(String projectName, Request
/**
* Lists the environments for a project and user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -127,10 +148,10 @@ public PagedIterable listAllEnvironments(String projectName, Request
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -140,16 +161,16 @@ public PagedIterable listAllEnvironments(String projectName, Request
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listEnvironments(
- String projectName, String userId, RequestOptions requestOptions) {
+ public PagedIterable listEnvironments(String projectName, String userId,
+ RequestOptions requestOptions) {
return this.serviceClient.listEnvironments(projectName, userId, requestOptions);
}
/**
* Gets an environment.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -174,10 +195,10 @@ public PagedIterable listEnvironments(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -188,16 +209,16 @@ public PagedIterable listEnvironments(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getEnvironmentWithResponse(
- String projectName, String userId, String environmentName, RequestOptions requestOptions) {
+ public Response getEnvironmentWithResponse(String projectName, String userId, String environmentName,
+ RequestOptions requestOptions) {
return this.serviceClient.getEnvironmentWithResponse(projectName, userId, environmentName, requestOptions);
}
/**
* Creates or updates an environment.
- *
- * Request Body Schema
- *
+ *
+ * Request Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -222,9 +243,9 @@ public Response getEnvironmentWithResponse(
* }
* }
* }
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -249,10 +270,10 @@ public Response getEnvironmentWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param body Represents an environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -264,17 +285,17 @@ public Response getEnvironmentWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginCreateOrUpdateEnvironment(
- String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) {
- return this.serviceClient.beginCreateOrUpdateEnvironment(
- projectName, userId, environmentName, body, requestOptions);
+ public SyncPoller beginCreateOrUpdateEnvironment(String projectName, String userId,
+ String environmentName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginCreateOrUpdateEnvironment(projectName, userId, environmentName, body,
+ requestOptions);
}
/**
* Deletes an environment and all its associated resources.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -291,10 +312,10 @@ public SyncPoller beginCreateOrUpdateEnvironment(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param environmentName The name of the environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -305,32 +326,41 @@ public SyncPoller beginCreateOrUpdateEnvironment(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginDeleteEnvironment(
- String projectName, String userId, String environmentName, RequestOptions requestOptions) {
+ public SyncPoller beginDeleteEnvironment(String projectName, String userId,
+ String environmentName, RequestOptions requestOptions) {
return this.serviceClient.beginDeleteEnvironment(projectName, userId, environmentName, requestOptions);
}
/**
* Lists all of the catalogs available for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -347,15 +377,15 @@ public PagedIterable listCatalogs(String projectName, RequestOptions
/**
* Gets the specified catalog within the project.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -367,26 +397,35 @@ public PagedIterable listCatalogs(String projectName, RequestOptions
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getCatalogWithResponse(
- String projectName, String catalogName, RequestOptions requestOptions) {
+ public Response getCatalogWithResponse(String projectName, String catalogName,
+ RequestOptions requestOptions) {
return this.serviceClient.getCatalogWithResponse(projectName, catalogName, requestOptions);
}
/**
* Lists all environment definitions available for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -411,7 +450,7 @@ public Response getCatalogWithResponse(
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -428,19 +467,28 @@ public PagedIterable listEnvironmentDefinitions(String projectName,
/**
* Lists all environment definitions available within a catalog.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -465,7 +513,7 @@ public PagedIterable listEnvironmentDefinitions(String projectName,
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -477,16 +525,16 @@ public PagedIterable listEnvironmentDefinitions(String projectName,
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listEnvironmentDefinitionsByCatalog(
- String projectName, String catalogName, RequestOptions requestOptions) {
+ public PagedIterable listEnvironmentDefinitionsByCatalog(String projectName, String catalogName,
+ RequestOptions requestOptions) {
return this.serviceClient.listEnvironmentDefinitionsByCatalog(projectName, catalogName, requestOptions);
}
/**
* Get an environment definition from a catalog.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Required)
@@ -511,7 +559,7 @@ public PagedIterable listEnvironmentDefinitionsByCatalog(
* templatePath: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param catalogName The name of the catalog.
* @param definitionName The name of the environment definition.
@@ -524,27 +572,36 @@ public PagedIterable listEnvironmentDefinitionsByCatalog(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getEnvironmentDefinitionWithResponse(
- String projectName, String catalogName, String definitionName, RequestOptions requestOptions) {
- return this.serviceClient.getEnvironmentDefinitionWithResponse(
- projectName, catalogName, definitionName, requestOptions);
+ public Response getEnvironmentDefinitionWithResponse(String projectName, String catalogName,
+ String definitionName, RequestOptions requestOptions) {
+ return this.serviceClient.getEnvironmentDefinitionWithResponse(projectName, catalogName, definitionName,
+ requestOptions);
}
/**
* Lists all environment types configured for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -552,7 +609,7 @@ public Response getEnvironmentDefinitionWithResponse(
* status: String(Enabled/Disabled) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClientBuilder.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClientBuilder.java
index 3d4a112dff32..dbf5932d0def 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClientBuilder.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DeploymentEnvironmentsClientBuilder.java
@@ -41,26 +41,32 @@
import java.util.Map;
import java.util.Objects;
-/** A builder for creating a new instance of the DeploymentEnvironmentsClient type. */
-@ServiceClientBuilder(serviceClients = {DeploymentEnvironmentsClient.class, DeploymentEnvironmentsAsyncClient.class})
+/**
+ * A builder for creating a new instance of the DeploymentEnvironmentsClient type.
+ */
+@ServiceClientBuilder(serviceClients = { DeploymentEnvironmentsClient.class, DeploymentEnvironmentsAsyncClient.class })
public final class DeploymentEnvironmentsClientBuilder
- implements HttpTrait,
- ConfigurationTrait,
- TokenCredentialTrait,
- EndpointTrait {
- @Generated private static final String SDK_NAME = "name";
+ implements HttpTrait, ConfigurationTrait,
+ TokenCredentialTrait, EndpointTrait {
+ @Generated
+ private static final String SDK_NAME = "name";
- @Generated private static final String SDK_VERSION = "version";
+ @Generated
+ private static final String SDK_VERSION = "version";
- @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://devcenter.azure.com/.default"};
+ @Generated
+ private static final String[] DEFAULT_SCOPES = new String[] { "https://devcenter.azure.com/.default" };
@Generated
- private static final Map PROPERTIES =
- CoreUtils.getProperties("azure-developer-devcenter.properties");
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-developer-devcenter.properties");
- @Generated private final List pipelinePolicies;
+ @Generated
+ private final List pipelinePolicies;
- /** Create an instance of the DeploymentEnvironmentsClientBuilder. */
+ /**
+ * Create an instance of the DeploymentEnvironmentsClientBuilder.
+ */
@Generated
public DeploymentEnvironmentsClientBuilder() {
this.pipelinePolicies = new ArrayList<>();
@@ -69,9 +75,12 @@ public DeploymentEnvironmentsClientBuilder() {
/*
* The HTTP pipeline to send requests through.
*/
- @Generated private HttpPipeline pipeline;
+ @Generated
+ private HttpPipeline pipeline;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder pipeline(HttpPipeline pipeline) {
@@ -85,9 +94,12 @@ public DeploymentEnvironmentsClientBuilder pipeline(HttpPipeline pipeline) {
/*
* The HTTP client used to send the request.
*/
- @Generated private HttpClient httpClient;
+ @Generated
+ private HttpClient httpClient;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder httpClient(HttpClient httpClient) {
@@ -98,9 +110,12 @@ public DeploymentEnvironmentsClientBuilder httpClient(HttpClient httpClient) {
/*
* The logging configuration for HTTP requests and responses.
*/
- @Generated private HttpLogOptions httpLogOptions;
+ @Generated
+ private HttpLogOptions httpLogOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
@@ -111,9 +126,12 @@ public DeploymentEnvironmentsClientBuilder httpLogOptions(HttpLogOptions httpLog
/*
* The client options such as application ID and custom headers to set on a request.
*/
- @Generated private ClientOptions clientOptions;
+ @Generated
+ private ClientOptions clientOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder clientOptions(ClientOptions clientOptions) {
@@ -124,9 +142,12 @@ public DeploymentEnvironmentsClientBuilder clientOptions(ClientOptions clientOpt
/*
* The retry options to configure retry policy for failed requests.
*/
- @Generated private RetryOptions retryOptions;
+ @Generated
+ private RetryOptions retryOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder retryOptions(RetryOptions retryOptions) {
@@ -134,7 +155,9 @@ public DeploymentEnvironmentsClientBuilder retryOptions(RetryOptions retryOption
return this;
}
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
@@ -146,9 +169,12 @@ public DeploymentEnvironmentsClientBuilder addPolicy(HttpPipelinePolicy customPo
/*
* The configuration store that is used during construction of the service client.
*/
- @Generated private Configuration configuration;
+ @Generated
+ private Configuration configuration;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder configuration(Configuration configuration) {
@@ -159,9 +185,12 @@ public DeploymentEnvironmentsClientBuilder configuration(Configuration configura
/*
* The TokenCredential used for authentication.
*/
- @Generated private TokenCredential tokenCredential;
+ @Generated
+ private TokenCredential tokenCredential;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder credential(TokenCredential tokenCredential) {
@@ -172,9 +201,12 @@ public DeploymentEnvironmentsClientBuilder credential(TokenCredential tokenCrede
/*
* The service endpoint
*/
- @Generated private String endpoint;
+ @Generated
+ private String endpoint;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DeploymentEnvironmentsClientBuilder endpoint(String endpoint) {
@@ -185,11 +217,12 @@ public DeploymentEnvironmentsClientBuilder endpoint(String endpoint) {
/*
* Service version
*/
- @Generated private DevCenterServiceVersion serviceVersion;
+ @Generated
+ private DevCenterServiceVersion serviceVersion;
/**
* Sets Service version.
- *
+ *
* @param serviceVersion the serviceVersion value.
* @return the DeploymentEnvironmentsClientBuilder.
*/
@@ -202,11 +235,12 @@ public DeploymentEnvironmentsClientBuilder serviceVersion(DevCenterServiceVersio
/*
* The retry policy that will attempt to retry failed requests, if applicable.
*/
- @Generated private RetryPolicy retryPolicy;
+ @Generated
+ private RetryPolicy retryPolicy;
/**
* Sets The retry policy that will attempt to retry failed requests, if applicable.
- *
+ *
* @param retryPolicy the retryPolicy value.
* @return the DeploymentEnvironmentsClientBuilder.
*/
@@ -218,27 +252,23 @@ public DeploymentEnvironmentsClientBuilder retryPolicy(RetryPolicy retryPolicy)
/**
* Builds an instance of DeploymentEnvironmentsClientImpl with the provided parameters.
- *
+ *
* @return an instance of DeploymentEnvironmentsClientImpl.
*/
@Generated
private DeploymentEnvironmentsClientImpl buildInnerClient() {
HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
- DevCenterServiceVersion localServiceVersion =
- (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
- DeploymentEnvironmentsClientImpl client =
- new DeploymentEnvironmentsClientImpl(
- localPipeline,
- JacksonAdapter.createDefaultSerializerAdapter(),
- this.endpoint,
- localServiceVersion);
+ DevCenterServiceVersion localServiceVersion
+ = (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
+ DeploymentEnvironmentsClientImpl client = new DeploymentEnvironmentsClientImpl(localPipeline,
+ JacksonAdapter.createDefaultSerializerAdapter(), this.endpoint, localServiceVersion);
return client;
}
@Generated
private HttpPipeline createHttpPipeline() {
- Configuration buildConfiguration =
- (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
+ Configuration buildConfiguration
+ = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
List policies = new ArrayList<>();
@@ -249,38 +279,31 @@ private HttpPipeline createHttpPipeline() {
policies.add(new RequestIdPolicy());
policies.add(new AddHeadersFromContextPolicy());
HttpHeaders headers = new HttpHeaders();
- localClientOptions
- .getHeaders()
- .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
+ localClientOptions.getHeaders()
+ .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
if (tokenCredential != null) {
policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient)
- .clientOptions(localClientOptions)
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .httpClient(httpClient).clientOptions(localClientOptions).build();
return httpPipeline;
}
/**
* Builds an instance of DeploymentEnvironmentsAsyncClient class.
- *
+ *
* @return an instance of DeploymentEnvironmentsAsyncClient.
*/
@Generated
@@ -290,7 +313,7 @@ public DeploymentEnvironmentsAsyncClient buildAsyncClient() {
/**
* Builds an instance of DeploymentEnvironmentsClient class.
- *
+ *
* @return an instance of DeploymentEnvironmentsClient.
*/
@Generated
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesAsyncClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesAsyncClient.java
index 8c55c7c5a14e..ea05ea7369bc 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesAsyncClient.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesAsyncClient.java
@@ -21,14 +21,17 @@
import java.time.OffsetDateTime;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the asynchronous DevBoxesClient type. */
+/**
+ * Initializes a new instance of the asynchronous DevBoxesClient type.
+ */
@ServiceClient(builder = DevBoxesClientBuilder.class, isAsync = true)
public final class DevBoxesAsyncClient {
- @Generated private final DevBoxesClientImpl serviceClient;
+ @Generated
+ private final DevBoxesClientImpl serviceClient;
/**
* Initializes an instance of DevBoxesAsyncClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -38,20 +41,34 @@ public final class DevBoxesAsyncClient {
/**
* Lists available pools.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -83,7 +100,7 @@ public final class DevBoxesAsyncClient {
* healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -100,9 +117,9 @@ public PagedFlux listPools(String projectName, RequestOptions reques
/**
* Gets a pool.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -134,7 +151,7 @@ public PagedFlux listPools(String projectName, RequestOptions reques
* healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -146,27 +163,41 @@ public PagedFlux listPools(String projectName, RequestOptions reques
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getPoolWithResponse(
- String projectName, String poolName, RequestOptions requestOptions) {
+ public Mono> getPoolWithResponse(String projectName, String poolName,
+ RequestOptions requestOptions) {
return this.serviceClient.getPoolWithResponseAsync(projectName, poolName, requestOptions);
}
/**
* Lists available schedules for a pool.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -176,7 +207,7 @@ public Mono> getPoolWithResponse(
* timeZone: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -194,9 +225,9 @@ public PagedFlux listSchedules(String projectName, String poolName,
/**
* Gets a schedule.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -206,7 +237,7 @@ public PagedFlux listSchedules(String projectName, String poolName,
* timeZone: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param scheduleName The name of a schedule.
@@ -219,27 +250,41 @@ public PagedFlux listSchedules(String projectName, String poolName,
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getScheduleWithResponse(
- String projectName, String poolName, String scheduleName, RequestOptions requestOptions) {
+ public Mono> getScheduleWithResponse(String projectName, String poolName, String scheduleName,
+ RequestOptions requestOptions) {
return this.serviceClient.getScheduleWithResponseAsync(projectName, poolName, scheduleName, requestOptions);
}
/**
* Lists Dev Boxes that the caller has access to in the DevCenter.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -286,7 +331,7 @@ public Mono> getScheduleWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @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.
@@ -302,20 +347,34 @@ public PagedFlux listAllDevBoxes(RequestOptions requestOptions) {
/**
* Lists Dev Boxes in the Dev Center for a particular user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -362,9 +421,9 @@ public PagedFlux listAllDevBoxes(RequestOptions requestOptions) {
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -380,20 +439,34 @@ public PagedFlux listAllDevBoxesByUser(String userId, RequestOptions
/**
* Lists Dev Boxes in the project for a particular user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -440,10 +513,10 @@ public PagedFlux listAllDevBoxesByUser(String userId, RequestOptions
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -459,9 +532,9 @@ public PagedFlux listDevBoxes(String projectName, String userId, Req
/**
* Gets a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -508,10 +581,10 @@ public PagedFlux listDevBoxes(String projectName, String userId, Req
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -522,16 +595,16 @@ public PagedFlux listDevBoxes(String projectName, String userId, Req
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getDevBoxWithResponse(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public Mono> getDevBoxWithResponse(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.getDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Creates or replaces a Dev Box.
- *
- * Request Body Schema
- *
+ *
+ * Request Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -578,9 +651,9 @@ public Mono> getDevBoxWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -627,10 +700,10 @@ public Mono> getDevBoxWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param body Represents a environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -642,16 +715,16 @@ public Mono> getDevBoxWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginCreateDevBox(
- String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) {
+ public PollerFlux beginCreateDevBox(String projectName, String userId, String devBoxName,
+ BinaryData body, RequestOptions requestOptions) {
return this.serviceClient.beginCreateDevBoxAsync(projectName, userId, devBoxName, body, requestOptions);
}
/**
* Deletes a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -668,10 +741,10 @@ public PollerFlux beginCreateDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -682,16 +755,16 @@ public PollerFlux beginCreateDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginDeleteDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PollerFlux beginDeleteDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginDeleteDevBoxAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Starts a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -708,10 +781,10 @@ public PollerFlux beginDeleteDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -722,26 +795,35 @@ public PollerFlux beginDeleteDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginStartDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PollerFlux beginStartDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginStartDevBoxAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Stops a Dev Box.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | hibernate | Boolean | No | Optional parameter to hibernate the dev box. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | hibernate |
+ * Boolean |
+ * No |
+ * Optional parameter to hibernate the dev box. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -758,10 +840,10 @@ public PollerFlux beginStartDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -772,16 +854,16 @@ public PollerFlux beginStartDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginStopDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PollerFlux beginStopDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginStopDevBoxAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Restarts a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -798,10 +880,10 @@ public PollerFlux beginStopDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -812,26 +894,26 @@ public PollerFlux beginStopDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public PollerFlux beginRestartDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PollerFlux beginRestartDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginRestartDevBoxAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Gets RDP Connection info.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* webUrl: String (Optional)
* rdpConnectionUrl: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -842,16 +924,16 @@ public PollerFlux beginRestartDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getRemoteConnectionWithResponse(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public Mono> getRemoteConnectionWithResponse(String projectName, String userId,
+ String devBoxName, RequestOptions requestOptions) {
return this.serviceClient.getRemoteConnectionWithResponseAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Lists actions on a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -863,10 +945,10 @@ public Mono> getRemoteConnectionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -877,16 +959,16 @@ public Mono> getRemoteConnectionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux listDevBoxActions(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PagedFlux listDevBoxActions(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.listDevBoxActionsAsync(projectName, userId, devBoxName, requestOptions);
}
/**
* Gets an action.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -898,10 +980,10 @@ public PagedFlux listDevBoxActions(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -913,18 +995,18 @@ public PagedFlux listDevBoxActions(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> getDevBoxActionWithResponse(
- String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) {
- return this.serviceClient.getDevBoxActionWithResponseAsync(
- projectName, userId, devBoxName, actionName, requestOptions);
+ public Mono> getDevBoxActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, RequestOptions requestOptions) {
+ return this.serviceClient.getDevBoxActionWithResponseAsync(projectName, userId, devBoxName, actionName,
+ requestOptions);
}
/**
* Skips an occurrence of an action.
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -936,17 +1018,17 @@ public Mono> getDevBoxActionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> skipActionWithResponse(
- String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) {
- return this.serviceClient.skipActionWithResponseAsync(
- projectName, userId, devBoxName, actionName, requestOptions);
+ public Mono> skipActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, RequestOptions requestOptions) {
+ return this.serviceClient.skipActionWithResponseAsync(projectName, userId, devBoxName, actionName,
+ requestOptions);
}
/**
* Delays the occurrence of an action.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -958,10 +1040,10 @@ public Mono> skipActionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param delayUntil The time to delay the Dev Box action or actions until.
@@ -971,26 +1053,21 @@ public Mono> skipActionWithResponse(
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return an action which will take place on a Dev Box along with {@link Response} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> delayActionWithResponse(
- String projectName,
- String userId,
- String devBoxName,
- String actionName,
- OffsetDateTime delayUntil,
- RequestOptions requestOptions) {
- return this.serviceClient.delayActionWithResponseAsync(
- projectName, userId, devBoxName, actionName, delayUntil, requestOptions);
+ public Mono> delayActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, OffsetDateTime delayUntil, RequestOptions requestOptions) {
+ return this.serviceClient.delayActionWithResponseAsync(projectName, userId, devBoxName, actionName, delayUntil,
+ requestOptions);
}
/**
* Delays all actions.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -1018,10 +1095,10 @@ public Mono> delayActionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param delayUntil The time to delay the Dev Box action or actions until.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -1033,12 +1110,8 @@ public Mono> delayActionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux delayAllActions(
- String projectName,
- String userId,
- String devBoxName,
- OffsetDateTime delayUntil,
- RequestOptions requestOptions) {
+ public PagedFlux delayAllActions(String projectName, String userId, String devBoxName,
+ OffsetDateTime delayUntil, RequestOptions requestOptions) {
return this.serviceClient.delayAllActionsAsync(projectName, userId, devBoxName, delayUntil, requestOptions);
}
}
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClient.java
index b64c701bc6ff..d5be92ade140 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClient.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClient.java
@@ -20,14 +20,17 @@
import com.azure.developer.devcenter.implementation.DevBoxesClientImpl;
import java.time.OffsetDateTime;
-/** Initializes a new instance of the synchronous DevBoxesClient type. */
+/**
+ * Initializes a new instance of the synchronous DevBoxesClient type.
+ */
@ServiceClient(builder = DevBoxesClientBuilder.class)
public final class DevBoxesClient {
- @Generated private final DevBoxesClientImpl serviceClient;
+ @Generated
+ private final DevBoxesClientImpl serviceClient;
/**
* Initializes an instance of DevBoxesClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -37,20 +40,34 @@ public final class DevBoxesClient {
/**
* Lists available pools.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -82,7 +99,7 @@ public final class DevBoxesClient {
* healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -99,9 +116,9 @@ public PagedIterable listPools(String projectName, RequestOptions re
/**
* Gets a pool.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -133,7 +150,7 @@ public PagedIterable listPools(String projectName, RequestOptions re
* healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -145,27 +162,41 @@ public PagedIterable listPools(String projectName, RequestOptions re
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getPoolWithResponse(
- String projectName, String poolName, RequestOptions requestOptions) {
+ public Response getPoolWithResponse(String projectName, String poolName,
+ RequestOptions requestOptions) {
return this.serviceClient.getPoolWithResponse(projectName, poolName, requestOptions);
}
/**
* Lists available schedules for a pool.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -175,7 +206,7 @@ public Response getPoolWithResponse(
* timeZone: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -193,9 +224,9 @@ public PagedIterable listSchedules(String projectName, String poolNa
/**
* Gets a schedule.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -205,7 +236,7 @@ public PagedIterable listSchedules(String projectName, String poolNa
* timeZone: String (Required)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param poolName The name of a pool of Dev Boxes.
* @param scheduleName The name of a schedule.
@@ -218,27 +249,41 @@ public PagedIterable listSchedules(String projectName, String poolNa
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getScheduleWithResponse(
- String projectName, String poolName, String scheduleName, RequestOptions requestOptions) {
+ public Response getScheduleWithResponse(String projectName, String poolName, String scheduleName,
+ RequestOptions requestOptions) {
return this.serviceClient.getScheduleWithResponse(projectName, poolName, scheduleName, requestOptions);
}
/**
* Lists Dev Boxes that the caller has access to in the DevCenter.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -285,7 +330,7 @@ public Response getScheduleWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @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.
@@ -301,20 +346,34 @@ public PagedIterable listAllDevBoxes(RequestOptions requestOptions)
/**
* Lists Dev Boxes in the Dev Center for a particular user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -361,9 +420,9 @@ public PagedIterable listAllDevBoxes(RequestOptions requestOptions)
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -379,20 +438,34 @@ public PagedIterable listAllDevBoxesByUser(String userId, RequestOpt
/**
* Lists Dev Boxes in the project for a particular user.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -439,10 +512,10 @@ public PagedIterable listAllDevBoxesByUser(String userId, RequestOpt
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @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.
@@ -458,9 +531,9 @@ public PagedIterable listDevBoxes(String projectName, String userId,
/**
* Gets a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -507,10 +580,10 @@ public PagedIterable listDevBoxes(String projectName, String userId,
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -521,16 +594,16 @@ public PagedIterable listDevBoxes(String projectName, String userId,
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getDevBoxWithResponse(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public Response getDevBoxWithResponse(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.getDevBoxWithResponse(projectName, userId, devBoxName, requestOptions);
}
/**
* Creates or replaces a Dev Box.
- *
- * Request Body Schema
- *
+ *
+ * Request Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -577,9 +650,9 @@ public Response getDevBoxWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -626,10 +699,10 @@ public Response getDevBoxWithResponse(
* localAdministrator: String(Enabled/Disabled) (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param body Represents a environment.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -641,16 +714,16 @@ public Response getDevBoxWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginCreateDevBox(
- String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) {
+ public SyncPoller beginCreateDevBox(String projectName, String userId, String devBoxName,
+ BinaryData body, RequestOptions requestOptions) {
return this.serviceClient.beginCreateDevBox(projectName, userId, devBoxName, body, requestOptions);
}
/**
* Deletes a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -667,10 +740,10 @@ public SyncPoller beginCreateDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -681,16 +754,16 @@ public SyncPoller beginCreateDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginDeleteDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public SyncPoller beginDeleteDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginDeleteDevBox(projectName, userId, devBoxName, requestOptions);
}
/**
* Starts a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -707,10 +780,10 @@ public SyncPoller beginDeleteDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -721,26 +794,35 @@ public SyncPoller beginDeleteDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginStartDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public SyncPoller beginStartDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginStartDevBox(projectName, userId, devBoxName, requestOptions);
}
/**
* Stops a Dev Box.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | hibernate | Boolean | No | Optional parameter to hibernate the dev box. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | hibernate |
+ * Boolean |
+ * No |
+ * Optional parameter to hibernate the dev box. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -757,10 +839,10 @@ public SyncPoller beginStartDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -771,16 +853,16 @@ public SyncPoller beginStartDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginStopDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public SyncPoller beginStopDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginStopDevBox(projectName, userId, devBoxName, requestOptions);
}
/**
* Restarts a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* id: String (Optional)
@@ -797,10 +879,10 @@ public SyncPoller beginStopDevBox(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -811,26 +893,26 @@ public SyncPoller beginStopDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller beginRestartDevBox(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public SyncPoller beginRestartDevBox(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.beginRestartDevBox(projectName, userId, devBoxName, requestOptions);
}
/**
* Gets RDP Connection info.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* webUrl: String (Optional)
* rdpConnectionUrl: String (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -841,16 +923,16 @@ public SyncPoller beginRestartDevBox(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getRemoteConnectionWithResponse(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public Response getRemoteConnectionWithResponse(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.getRemoteConnectionWithResponse(projectName, userId, devBoxName, requestOptions);
}
/**
* Lists actions on a Dev Box.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -862,10 +944,10 @@ public Response getRemoteConnectionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -876,16 +958,16 @@ public Response getRemoteConnectionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listDevBoxActions(
- String projectName, String userId, String devBoxName, RequestOptions requestOptions) {
+ public PagedIterable listDevBoxActions(String projectName, String userId, String devBoxName,
+ RequestOptions requestOptions) {
return this.serviceClient.listDevBoxActions(projectName, userId, devBoxName, requestOptions);
}
/**
* Gets an action.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -897,10 +979,10 @@ public PagedIterable listDevBoxActions(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -912,18 +994,18 @@ public PagedIterable listDevBoxActions(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getDevBoxActionWithResponse(
- String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) {
- return this.serviceClient.getDevBoxActionWithResponse(
- projectName, userId, devBoxName, actionName, requestOptions);
+ public Response getDevBoxActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, RequestOptions requestOptions) {
+ return this.serviceClient.getDevBoxActionWithResponse(projectName, userId, devBoxName, actionName,
+ requestOptions);
}
/**
* Skips an occurrence of an action.
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -935,16 +1017,16 @@ public Response getDevBoxActionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response skipActionWithResponse(
- String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) {
+ public Response skipActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, RequestOptions requestOptions) {
return this.serviceClient.skipActionWithResponse(projectName, userId, devBoxName, actionName, requestOptions);
}
/**
* Delays the occurrence of an action.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -956,10 +1038,10 @@ public Response skipActionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param actionName The name of an action that will take place on a Dev Box.
* @param delayUntil The time to delay the Dev Box action or actions until.
@@ -972,22 +1054,17 @@ public Response skipActionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response delayActionWithResponse(
- String projectName,
- String userId,
- String devBoxName,
- String actionName,
- OffsetDateTime delayUntil,
- RequestOptions requestOptions) {
- return this.serviceClient.delayActionWithResponse(
- projectName, userId, devBoxName, actionName, delayUntil, requestOptions);
+ public Response delayActionWithResponse(String projectName, String userId, String devBoxName,
+ String actionName, OffsetDateTime delayUntil, RequestOptions requestOptions) {
+ return this.serviceClient.delayActionWithResponse(projectName, userId, devBoxName, actionName, delayUntil,
+ requestOptions);
}
/**
* Delays all actions.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -1015,10 +1092,10 @@ public Response delayActionWithResponse(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param userId The AAD object id of the user. If value is 'me', the identity is taken from the authentication
- * context.
+ * context.
* @param devBoxName The name of a Dev Box.
* @param delayUntil The time to delay the Dev Box action or actions until.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
@@ -1030,12 +1107,8 @@ public Response delayActionWithResponse(
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable delayAllActions(
- String projectName,
- String userId,
- String devBoxName,
- OffsetDateTime delayUntil,
- RequestOptions requestOptions) {
+ public PagedIterable delayAllActions(String projectName, String userId, String devBoxName,
+ OffsetDateTime delayUntil, RequestOptions requestOptions) {
return this.serviceClient.delayAllActions(projectName, userId, devBoxName, delayUntil, requestOptions);
}
}
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClientBuilder.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClientBuilder.java
index 73ec4e516654..bf6a2edcdb96 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClientBuilder.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevBoxesClientBuilder.java
@@ -41,26 +41,32 @@
import java.util.Map;
import java.util.Objects;
-/** A builder for creating a new instance of the DevBoxesClient type. */
-@ServiceClientBuilder(serviceClients = {DevBoxesClient.class, DevBoxesAsyncClient.class})
+/**
+ * A builder for creating a new instance of the DevBoxesClient type.
+ */
+@ServiceClientBuilder(serviceClients = { DevBoxesClient.class, DevBoxesAsyncClient.class })
public final class DevBoxesClientBuilder
- implements HttpTrait,
- ConfigurationTrait,
- TokenCredentialTrait,
- EndpointTrait {
- @Generated private static final String SDK_NAME = "name";
+ implements HttpTrait, ConfigurationTrait,
+ TokenCredentialTrait, EndpointTrait {
+ @Generated
+ private static final String SDK_NAME = "name";
- @Generated private static final String SDK_VERSION = "version";
+ @Generated
+ private static final String SDK_VERSION = "version";
- @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://devcenter.azure.com/.default"};
+ @Generated
+ private static final String[] DEFAULT_SCOPES = new String[] { "https://devcenter.azure.com/.default" };
@Generated
- private static final Map PROPERTIES =
- CoreUtils.getProperties("azure-developer-devcenter.properties");
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-developer-devcenter.properties");
- @Generated private final List pipelinePolicies;
+ @Generated
+ private final List pipelinePolicies;
- /** Create an instance of the DevBoxesClientBuilder. */
+ /**
+ * Create an instance of the DevBoxesClientBuilder.
+ */
@Generated
public DevBoxesClientBuilder() {
this.pipelinePolicies = new ArrayList<>();
@@ -69,9 +75,12 @@ public DevBoxesClientBuilder() {
/*
* The HTTP pipeline to send requests through.
*/
- @Generated private HttpPipeline pipeline;
+ @Generated
+ private HttpPipeline pipeline;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder pipeline(HttpPipeline pipeline) {
@@ -85,9 +94,12 @@ public DevBoxesClientBuilder pipeline(HttpPipeline pipeline) {
/*
* The HTTP client used to send the request.
*/
- @Generated private HttpClient httpClient;
+ @Generated
+ private HttpClient httpClient;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder httpClient(HttpClient httpClient) {
@@ -98,9 +110,12 @@ public DevBoxesClientBuilder httpClient(HttpClient httpClient) {
/*
* The logging configuration for HTTP requests and responses.
*/
- @Generated private HttpLogOptions httpLogOptions;
+ @Generated
+ private HttpLogOptions httpLogOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
@@ -111,9 +126,12 @@ public DevBoxesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
/*
* The client options such as application ID and custom headers to set on a request.
*/
- @Generated private ClientOptions clientOptions;
+ @Generated
+ private ClientOptions clientOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder clientOptions(ClientOptions clientOptions) {
@@ -124,9 +142,12 @@ public DevBoxesClientBuilder clientOptions(ClientOptions clientOptions) {
/*
* The retry options to configure retry policy for failed requests.
*/
- @Generated private RetryOptions retryOptions;
+ @Generated
+ private RetryOptions retryOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder retryOptions(RetryOptions retryOptions) {
@@ -134,7 +155,9 @@ public DevBoxesClientBuilder retryOptions(RetryOptions retryOptions) {
return this;
}
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
@@ -146,9 +169,12 @@ public DevBoxesClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
/*
* The configuration store that is used during construction of the service client.
*/
- @Generated private Configuration configuration;
+ @Generated
+ private Configuration configuration;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder configuration(Configuration configuration) {
@@ -159,9 +185,12 @@ public DevBoxesClientBuilder configuration(Configuration configuration) {
/*
* The TokenCredential used for authentication.
*/
- @Generated private TokenCredential tokenCredential;
+ @Generated
+ private TokenCredential tokenCredential;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder credential(TokenCredential tokenCredential) {
@@ -172,9 +201,12 @@ public DevBoxesClientBuilder credential(TokenCredential tokenCredential) {
/*
* The service endpoint
*/
- @Generated private String endpoint;
+ @Generated
+ private String endpoint;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevBoxesClientBuilder endpoint(String endpoint) {
@@ -185,11 +217,12 @@ public DevBoxesClientBuilder endpoint(String endpoint) {
/*
* Service version
*/
- @Generated private DevCenterServiceVersion serviceVersion;
+ @Generated
+ private DevCenterServiceVersion serviceVersion;
/**
* Sets Service version.
- *
+ *
* @param serviceVersion the serviceVersion value.
* @return the DevBoxesClientBuilder.
*/
@@ -202,11 +235,12 @@ public DevBoxesClientBuilder serviceVersion(DevCenterServiceVersion serviceVersi
/*
* The retry policy that will attempt to retry failed requests, if applicable.
*/
- @Generated private RetryPolicy retryPolicy;
+ @Generated
+ private RetryPolicy retryPolicy;
/**
* Sets The retry policy that will attempt to retry failed requests, if applicable.
- *
+ *
* @param retryPolicy the retryPolicy value.
* @return the DevBoxesClientBuilder.
*/
@@ -218,27 +252,23 @@ public DevBoxesClientBuilder retryPolicy(RetryPolicy retryPolicy) {
/**
* Builds an instance of DevBoxesClientImpl with the provided parameters.
- *
+ *
* @return an instance of DevBoxesClientImpl.
*/
@Generated
private DevBoxesClientImpl buildInnerClient() {
HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
- DevCenterServiceVersion localServiceVersion =
- (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
- DevBoxesClientImpl client =
- new DevBoxesClientImpl(
- localPipeline,
- JacksonAdapter.createDefaultSerializerAdapter(),
- this.endpoint,
- localServiceVersion);
+ DevCenterServiceVersion localServiceVersion
+ = (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
+ DevBoxesClientImpl client = new DevBoxesClientImpl(localPipeline,
+ JacksonAdapter.createDefaultSerializerAdapter(), this.endpoint, localServiceVersion);
return client;
}
@Generated
private HttpPipeline createHttpPipeline() {
- Configuration buildConfiguration =
- (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
+ Configuration buildConfiguration
+ = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
List policies = new ArrayList<>();
@@ -249,38 +279,31 @@ private HttpPipeline createHttpPipeline() {
policies.add(new RequestIdPolicy());
policies.add(new AddHeadersFromContextPolicy());
HttpHeaders headers = new HttpHeaders();
- localClientOptions
- .getHeaders()
- .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
+ localClientOptions.getHeaders()
+ .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
if (tokenCredential != null) {
policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient)
- .clientOptions(localClientOptions)
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .httpClient(httpClient).clientOptions(localClientOptions).build();
return httpPipeline;
}
/**
* Builds an instance of DevBoxesAsyncClient class.
- *
+ *
* @return an instance of DevBoxesAsyncClient.
*/
@Generated
@@ -290,7 +313,7 @@ public DevBoxesAsyncClient buildAsyncClient() {
/**
* Builds an instance of DevBoxesClient class.
- *
+ *
* @return an instance of DevBoxesClient.
*/
@Generated
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterAsyncClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterAsyncClient.java
index de821b56fbc7..fbc50555d967 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterAsyncClient.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterAsyncClient.java
@@ -19,14 +19,17 @@
import com.azure.developer.devcenter.implementation.DevCenterClientImpl;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the asynchronous DevCenterClient type. */
+/**
+ * Initializes a new instance of the asynchronous DevCenterClient type.
+ */
@ServiceClient(builder = DevCenterClientBuilder.class, isAsync = true)
public final class DevCenterAsyncClient {
- @Generated private final DevCenterClientImpl serviceClient;
+ @Generated
+ private final DevCenterClientImpl serviceClient;
/**
* Initializes an instance of DevCenterAsyncClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -36,20 +39,34 @@ public final class DevCenterAsyncClient {
/**
* Lists all projects.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -57,7 +74,7 @@ public final class DevCenterAsyncClient {
* maxDevBoxesPerUser: Integer (Optional)
* }
* }
- *
+ *
* @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.
@@ -73,9 +90,9 @@ public PagedFlux listProjects(RequestOptions requestOptions) {
/**
* Gets a project.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -83,7 +100,7 @@ public PagedFlux listProjects(RequestOptions requestOptions) {
* maxDevBoxesPerUser: Integer (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClient.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClient.java
index 3a4a1a24947d..8370a41568d0 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClient.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClient.java
@@ -18,14 +18,17 @@
import com.azure.core.util.BinaryData;
import com.azure.developer.devcenter.implementation.DevCenterClientImpl;
-/** Initializes a new instance of the synchronous DevCenterClient type. */
+/**
+ * Initializes a new instance of the synchronous DevCenterClient type.
+ */
@ServiceClient(builder = DevCenterClientBuilder.class)
public final class DevCenterClient {
- @Generated private final DevCenterClientImpl serviceClient;
+ @Generated
+ private final DevCenterClientImpl serviceClient;
/**
* Initializes an instance of DevCenterClient class.
- *
+ *
* @param serviceClient the service client implementation.
*/
@Generated
@@ -35,20 +38,34 @@ public final class DevCenterClient {
/**
* Lists all projects.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | filter | String | No | An OData filter clause to apply to the operation. |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | filter |
+ * String |
+ * No |
+ * An OData filter clause to apply to the operation. |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -56,7 +73,7 @@ public final class DevCenterClient {
* maxDevBoxesPerUser: Integer (Optional)
* }
* }
- *
+ *
* @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.
@@ -72,9 +89,9 @@ public PagedIterable listProjects(RequestOptions requestOptions) {
/**
* Gets a project.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* name: String (Required)
@@ -82,7 +99,7 @@ public PagedIterable listProjects(RequestOptions requestOptions) {
* maxDevBoxesPerUser: Integer (Optional)
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClientBuilder.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClientBuilder.java
index f40444203003..38724800c8a1 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClientBuilder.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterClientBuilder.java
@@ -41,26 +41,32 @@
import java.util.Map;
import java.util.Objects;
-/** A builder for creating a new instance of the DevCenterClient type. */
-@ServiceClientBuilder(serviceClients = {DevCenterClient.class, DevCenterAsyncClient.class})
+/**
+ * A builder for creating a new instance of the DevCenterClient type.
+ */
+@ServiceClientBuilder(serviceClients = { DevCenterClient.class, DevCenterAsyncClient.class })
public final class DevCenterClientBuilder
- implements HttpTrait,
- ConfigurationTrait,
- TokenCredentialTrait,
- EndpointTrait {
- @Generated private static final String SDK_NAME = "name";
+ implements HttpTrait, ConfigurationTrait,
+ TokenCredentialTrait, EndpointTrait {
+ @Generated
+ private static final String SDK_NAME = "name";
- @Generated private static final String SDK_VERSION = "version";
+ @Generated
+ private static final String SDK_VERSION = "version";
- @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://devcenter.azure.com/.default"};
+ @Generated
+ private static final String[] DEFAULT_SCOPES = new String[] { "https://devcenter.azure.com/.default" };
@Generated
- private static final Map PROPERTIES =
- CoreUtils.getProperties("azure-developer-devcenter.properties");
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-developer-devcenter.properties");
- @Generated private final List pipelinePolicies;
+ @Generated
+ private final List pipelinePolicies;
- /** Create an instance of the DevCenterClientBuilder. */
+ /**
+ * Create an instance of the DevCenterClientBuilder.
+ */
@Generated
public DevCenterClientBuilder() {
this.pipelinePolicies = new ArrayList<>();
@@ -69,9 +75,12 @@ public DevCenterClientBuilder() {
/*
* The HTTP pipeline to send requests through.
*/
- @Generated private HttpPipeline pipeline;
+ @Generated
+ private HttpPipeline pipeline;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder pipeline(HttpPipeline pipeline) {
@@ -85,9 +94,12 @@ public DevCenterClientBuilder pipeline(HttpPipeline pipeline) {
/*
* The HTTP client used to send the request.
*/
- @Generated private HttpClient httpClient;
+ @Generated
+ private HttpClient httpClient;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder httpClient(HttpClient httpClient) {
@@ -98,9 +110,12 @@ public DevCenterClientBuilder httpClient(HttpClient httpClient) {
/*
* The logging configuration for HTTP requests and responses.
*/
- @Generated private HttpLogOptions httpLogOptions;
+ @Generated
+ private HttpLogOptions httpLogOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
@@ -111,9 +126,12 @@ public DevCenterClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
/*
* The client options such as application ID and custom headers to set on a request.
*/
- @Generated private ClientOptions clientOptions;
+ @Generated
+ private ClientOptions clientOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder clientOptions(ClientOptions clientOptions) {
@@ -124,9 +142,12 @@ public DevCenterClientBuilder clientOptions(ClientOptions clientOptions) {
/*
* The retry options to configure retry policy for failed requests.
*/
- @Generated private RetryOptions retryOptions;
+ @Generated
+ private RetryOptions retryOptions;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder retryOptions(RetryOptions retryOptions) {
@@ -134,7 +155,9 @@ public DevCenterClientBuilder retryOptions(RetryOptions retryOptions) {
return this;
}
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
@@ -146,9 +169,12 @@ public DevCenterClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
/*
* The configuration store that is used during construction of the service client.
*/
- @Generated private Configuration configuration;
+ @Generated
+ private Configuration configuration;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder configuration(Configuration configuration) {
@@ -159,9 +185,12 @@ public DevCenterClientBuilder configuration(Configuration configuration) {
/*
* The TokenCredential used for authentication.
*/
- @Generated private TokenCredential tokenCredential;
+ @Generated
+ private TokenCredential tokenCredential;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder credential(TokenCredential tokenCredential) {
@@ -172,9 +201,12 @@ public DevCenterClientBuilder credential(TokenCredential tokenCredential) {
/*
* The service endpoint
*/
- @Generated private String endpoint;
+ @Generated
+ private String endpoint;
- /** {@inheritDoc}. */
+ /**
+ * {@inheritDoc}.
+ */
@Generated
@Override
public DevCenterClientBuilder endpoint(String endpoint) {
@@ -185,11 +217,12 @@ public DevCenterClientBuilder endpoint(String endpoint) {
/*
* Service version
*/
- @Generated private DevCenterServiceVersion serviceVersion;
+ @Generated
+ private DevCenterServiceVersion serviceVersion;
/**
* Sets Service version.
- *
+ *
* @param serviceVersion the serviceVersion value.
* @return the DevCenterClientBuilder.
*/
@@ -202,11 +235,12 @@ public DevCenterClientBuilder serviceVersion(DevCenterServiceVersion serviceVers
/*
* The retry policy that will attempt to retry failed requests, if applicable.
*/
- @Generated private RetryPolicy retryPolicy;
+ @Generated
+ private RetryPolicy retryPolicy;
/**
* Sets The retry policy that will attempt to retry failed requests, if applicable.
- *
+ *
* @param retryPolicy the retryPolicy value.
* @return the DevCenterClientBuilder.
*/
@@ -218,27 +252,23 @@ public DevCenterClientBuilder retryPolicy(RetryPolicy retryPolicy) {
/**
* Builds an instance of DevCenterClientImpl with the provided parameters.
- *
+ *
* @return an instance of DevCenterClientImpl.
*/
@Generated
private DevCenterClientImpl buildInnerClient() {
HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
- DevCenterServiceVersion localServiceVersion =
- (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
- DevCenterClientImpl client =
- new DevCenterClientImpl(
- localPipeline,
- JacksonAdapter.createDefaultSerializerAdapter(),
- this.endpoint,
- localServiceVersion);
+ DevCenterServiceVersion localServiceVersion
+ = (serviceVersion != null) ? serviceVersion : DevCenterServiceVersion.getLatest();
+ DevCenterClientImpl client = new DevCenterClientImpl(localPipeline,
+ JacksonAdapter.createDefaultSerializerAdapter(), this.endpoint, localServiceVersion);
return client;
}
@Generated
private HttpPipeline createHttpPipeline() {
- Configuration buildConfiguration =
- (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
+ Configuration buildConfiguration
+ = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
List policies = new ArrayList<>();
@@ -249,38 +279,31 @@ private HttpPipeline createHttpPipeline() {
policies.add(new RequestIdPolicy());
policies.add(new AddHeadersFromContextPolicy());
HttpHeaders headers = new HttpHeaders();
- localClientOptions
- .getHeaders()
- .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
+ localClientOptions.getHeaders()
+ .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue()));
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
if (tokenCredential != null) {
policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
}
- this.pipelinePolicies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .forEach(p -> policies.add(p));
+ this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient)
- .clientOptions(localClientOptions)
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .httpClient(httpClient).clientOptions(localClientOptions).build();
return httpPipeline;
}
/**
* Builds an instance of DevCenterAsyncClient class.
- *
+ *
* @return an instance of DevCenterAsyncClient.
*/
@Generated
@@ -290,7 +313,7 @@ public DevCenterAsyncClient buildAsyncClient() {
/**
* Builds an instance of DevCenterClient class.
- *
+ *
* @return an instance of DevCenterClient.
*/
@Generated
diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterServiceVersion.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterServiceVersion.java
index cdceb784eff7..b3766e88082d 100644
--- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterServiceVersion.java
+++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/DevCenterServiceVersion.java
@@ -6,9 +6,13 @@
import com.azure.core.util.ServiceVersion;
-/** Service version of DevCenterServiceClient. */
+/**
+ * Service version of DevCenterServiceClient.
+ */
public enum DevCenterServiceVersion implements ServiceVersion {
- /** Enum value 2023-04-01. */
+ /**
+ * Enum value 2023-04-01.
+ */
V2023_04_01("2023-04-01");
private final String version;
@@ -17,7 +21,9 @@ public enum DevCenterServiceVersion implements ServiceVersion {
this.version = version;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getVersion() {
return this.version;
@@ -25,7 +31,7 @@ public String getVersion() {
/**
* Gets the latest service version supported by this client library.
- *
+ *
* @return The latest {@link DevCenterServiceVersion}.
*/
public static DevCenterServiceVersion getLatest() {
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 b93607d5474f..c803e09cc647 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
@@ -51,53 +51,65 @@
import java.util.stream.Collectors;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the DeploymentEnvironmentsClient type. */
+/**
+ * Initializes a new instance of the DeploymentEnvironmentsClient type.
+ */
public final class DeploymentEnvironmentsClientImpl {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final DeploymentEnvironmentsClientService service;
- /** The DevCenter-specific URI to operate on. */
+ /**
+ * The DevCenter-specific URI to operate on.
+ */
private final String endpoint;
/**
* Gets The DevCenter-specific URI to operate on.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Service version. */
+ /**
+ * Service version.
+ */
private final DevCenterServiceVersion serviceVersion;
/**
* Gets Service version.
- *
+ *
* @return the serviceVersion value.
*/
public DevCenterServiceVersion getServiceVersion() {
return this.serviceVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * The HTTP pipeline to send requests through.
+ */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
- /** The serializer to serialize an object into a string. */
+ /**
+ * The serializer to serialize an object into a string.
+ */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
- *
+ *
* @return the serializerAdapter value.
*/
public SerializerAdapter getSerializerAdapter() {
@@ -106,50 +118,43 @@ public SerializerAdapter getSerializerAdapter() {
/**
* Initializes an instance of DeploymentEnvironmentsClient client.
- *
+ *
* @param endpoint The DevCenter-specific URI to operate on.
* @param serviceVersion Service version.
*/
public DeploymentEnvironmentsClientImpl(String endpoint, DevCenterServiceVersion serviceVersion) {
- this(
- new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
- JacksonAdapter.createDefaultSerializerAdapter(),
- endpoint,
- serviceVersion);
+ this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
+ JacksonAdapter.createDefaultSerializerAdapter(), endpoint, serviceVersion);
}
/**
* Initializes an instance of DeploymentEnvironmentsClient client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param endpoint The DevCenter-specific URI to operate on.
* @param serviceVersion Service version.
*/
- public DeploymentEnvironmentsClientImpl(
- HttpPipeline httpPipeline, String endpoint, DevCenterServiceVersion serviceVersion) {
+ public DeploymentEnvironmentsClientImpl(HttpPipeline httpPipeline, String endpoint,
+ DevCenterServiceVersion serviceVersion) {
this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, serviceVersion);
}
/**
* Initializes an instance of DeploymentEnvironmentsClient client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param endpoint The DevCenter-specific URI to operate on.
* @param serviceVersion Service version.
*/
- public DeploymentEnvironmentsClientImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- String endpoint,
- DevCenterServiceVersion serviceVersion) {
+ public DeploymentEnvironmentsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ String endpoint, DevCenterServiceVersion serviceVersion) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.endpoint = endpoint;
this.serviceVersion = serviceVersion;
- this.service =
- RestProxy.create(
- DeploymentEnvironmentsClientService.class, this.httpPipeline, this.getSerializerAdapter());
+ this.service = RestProxy.create(DeploymentEnvironmentsClientService.class, this.httpPipeline,
+ this.getSerializerAdapter());
}
/**
@@ -160,713 +165,386 @@ public DeploymentEnvironmentsClientImpl(
@ServiceInterface(name = "DeploymentEnvironmen")
public interface DeploymentEnvironmentsClientService {
@Get("/projects/{projectName}/environments")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listAllEnvironments(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listAllEnvironments(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/environments")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listAllEnvironmentsSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listAllEnvironmentsSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/users/{userId}/environments")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listEnvironments(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listEnvironments(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("/projects/{projectName}/users/{userId}/environments")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listEnvironmentsSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listEnvironmentsSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getEnvironment(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> getEnvironment(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getEnvironmentSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response getEnvironmentSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Put("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({201})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 201 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateEnvironment(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- @BodyParam("application/json") BinaryData body,
- RequestOptions requestOptions,
- Context context);
+ Mono> createOrUpdateEnvironment(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData body,
+ RequestOptions requestOptions, Context context);
@Put("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({201})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 201 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response createOrUpdateEnvironmentSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- @BodyParam("application/json") BinaryData body,
- RequestOptions requestOptions,
- Context context);
+ Response createOrUpdateEnvironmentSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData body,
+ RequestOptions requestOptions, Context context);
@Delete("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({202, 204})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteEnvironment(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> deleteEnvironment(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Delete("/projects/{projectName}/users/{userId}/environments/{environmentName}")
- @ExpectedResponses({202, 204})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response deleteEnvironmentSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("userId") String userId,
- @PathParam("environmentName") String environmentName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response deleteEnvironmentSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("userId") String userId, @PathParam("environmentName") String environmentName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listCatalogs(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listCatalogs(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listCatalogsSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listCatalogsSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getCatalog(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> getCatalog(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @HeaderParam("accept") String accept,
+ RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getCatalogSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response getCatalogSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @HeaderParam("accept") String accept,
+ RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/environmentDefinitions")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listEnvironmentDefinitions(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listEnvironmentDefinitions(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/environmentDefinitions")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listEnvironmentDefinitionsSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listEnvironmentDefinitionsSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listEnvironmentDefinitionsByCatalog(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listEnvironmentDefinitionsByCatalog(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @HeaderParam("accept") String accept,
+ RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listEnvironmentDefinitionsByCatalogSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listEnvironmentDefinitionsByCatalogSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @HeaderParam("accept") String accept,
+ RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getEnvironmentDefinition(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @PathParam("definitionName") String definitionName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> getEnvironmentDefinition(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @PathParam("definitionName") String definitionName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response getEnvironmentDefinitionSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @PathParam("catalogName") String catalogName,
- @PathParam("definitionName") String definitionName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response getEnvironmentDefinitionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @PathParam("catalogName") String catalogName, @PathParam("definitionName") String definitionName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/environmentTypes")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listEnvironmentTypes(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listEnvironmentTypes(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("/projects/{projectName}/environmentTypes")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listEnvironmentTypesSync(
- @HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("projectName") String projectName,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listEnvironmentTypesSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> listAllEnvironmentsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listAllEnvironmentsNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listAllEnvironmentsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listEnvironmentsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listEnvironmentsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listEnvironmentsNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listEnvironmentsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listCatalogsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Mono> listCatalogsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Response listCatalogsNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ Response listCatalogsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions,
+ Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> listEnvironmentDefinitionsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response listEnvironmentDefinitionsNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> listEnvironmentDefinitionsByCatalogNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response listEnvironmentDefinitionsByCatalogNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> listEnvironmentTypesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
@Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(
- value = ClientAuthenticationException.class,
- code = {401})
- @UnexpectedResponseExceptionType(
- value = ResourceNotFoundException.class,
- code = {404})
- @UnexpectedResponseExceptionType(
- value = ResourceModifiedException.class,
- code = {409})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response listEnvironmentTypesNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept,
- RequestOptions requestOptions,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
}
/**
* Lists the environments for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -891,7 +569,7 @@ Response listEnvironmentTypesNextSync(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -899,47 +577,43 @@ Response listEnvironmentTypesNextSync(
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return results of the environment list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAllEnvironmentsSinglePageAsync(
- String projectName, RequestOptions requestOptions) {
+ private Mono> listAllEnvironmentsSinglePageAsync(String projectName,
+ RequestOptions requestOptions) {
final String accept = "application/json";
- return FluxUtil.withContext(
- context ->
- service.listAllEnvironments(
- this.getEndpoint(),
- this.getServiceVersion().getVersion(),
- projectName,
- accept,
- requestOptions,
- context))
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- getValues(res.getValue(), "value"),
- getNextLink(res.getValue(), "nextLink"),
- null));
+ return FluxUtil
+ .withContext(context -> service.listAllEnvironments(this.getEndpoint(),
+ this.getServiceVersion().getVersion(), projectName, accept, requestOptions, context))
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null));
}
/**
* Lists the environments for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -964,7 +638,7 @@ private Mono> listAllEnvironmentsSinglePageAsync(
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -977,29 +651,35 @@ private Mono> listAllEnvironmentsSinglePageAsync(
public PagedFlux listAllEnvironmentsAsync(String projectName, RequestOptions requestOptions) {
RequestOptions requestOptionsForNextPage = new RequestOptions();
requestOptionsForNextPage.setContext(
- requestOptions != null && requestOptions.getContext() != null
- ? requestOptions.getContext()
- : Context.NONE);
- return new PagedFlux<>(
- () -> listAllEnvironmentsSinglePageAsync(projectName, requestOptions),
- nextLink -> listAllEnvironmentsNextSinglePageAsync(nextLink, requestOptionsForNextPage));
+ requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE);
+ return new PagedFlux<>(() -> listAllEnvironmentsSinglePageAsync(projectName, requestOptions),
+ nextLink -> listAllEnvironmentsNextSinglePageAsync(nextLink, requestOptionsForNextPage));
}
/**
* Lists the environments for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * | Name | Type | Required | Description |
- * | top | Integer | No | The maximum number of resources to return from the operation. Example: 'top=10'. |
+ * Query Parameters
+ *
+ * | Name |
+ * Type |
+ * Required |
+ * Description |
+ *
+ *
+ * | top |
+ * Integer |
+ * No |
+ * The maximum number of resources to return from the operation. Example: 'top=10'. |
+ *
*
- *
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ *
* {@code
* {
* parameters: Object (Optional)
@@ -1024,7 +704,7 @@ public PagedFlux listAllEnvironmentsAsync(String projectName, Reques
* }
* }
* }
- *
+ *
* @param projectName The DevCenter Project upon which to execute operations.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
@@ -1036,38 +716,36 @@ public PagedFlux listAllEnvironmentsAsync(String projectName, Reques
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listAllEnvironmentsSinglePage(String projectName, RequestOptions requestOptions) {
final String accept = "application/json";
- Response res =
- service.listAllEnvironmentsSync(
- this.getEndpoint(),
- this.getServiceVersion().getVersion(),
- projectName,
- accept,
- requestOptions,
- Context.NONE);
- return new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- getValues(res.getValue(), "value"),
- getNextLink(res.getValue(), "nextLink"),
- null);
+ Response res = service.listAllEnvironmentsSync(this.getEndpoint(),
+ this.getServiceVersion().getVersion(), projectName, accept, requestOptions, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null);
}
/**
* Lists the environments for a project.
- *
- * Query Parameters
- *
+ *
+ * Query Parameters
+ *
*
- * Query Parameters
- * |