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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -1092,7 +770,7 @@ private PagedResponse listAllEnvironmentsSinglePage(String projectNa
      *     }
      * }
      * }
- * + * * @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. @@ -1105,29 +783,35 @@ private PagedResponse listAllEnvironmentsSinglePage(String projectNa public PagedIterable listAllEnvironments(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listAllEnvironmentsSinglePage(projectName, requestOptions), - nextLink -> listAllEnvironmentsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listAllEnvironmentsSinglePage(projectName, requestOptions), + nextLink -> listAllEnvironmentsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Lists the environments for a project and user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -1152,58 +836,53 @@ 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. * @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> listEnvironmentsSinglePageAsync( - String projectName, String userId, RequestOptions requestOptions) { + private Mono> listEnvironmentsSinglePageAsync(String projectName, String userId, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironments( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - 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.listEnvironments(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, 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 and user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -1228,10 +907,10 @@ private Mono> listEnvironmentsSinglePageAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1240,33 +919,39 @@ private Mono> listEnvironmentsSinglePageAsync( * @return results of the environment list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listEnvironmentsAsync( - String projectName, String userId, RequestOptions requestOptions) { + public PagedFlux listEnvironmentsAsync(String projectName, String userId, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listEnvironmentsSinglePageAsync(projectName, userId, requestOptions), - nextLink -> listEnvironmentsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listEnvironmentsSinglePageAsync(projectName, userId, requestOptions), + nextLink -> listEnvironmentsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists the environments for a project and user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -1291,10 +976,10 @@ public PagedFlux listEnvironmentsAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1303,42 +988,39 @@ public PagedFlux listEnvironmentsAsync( * @return results of the environment list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentsSinglePage( - String projectName, String userId, RequestOptions requestOptions) { + private PagedResponse listEnvironmentsSinglePage(String projectName, String userId, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentsSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - 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.listEnvironmentsSync(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, 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 and user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -1363,10 +1045,10 @@ private PagedResponse listEnvironmentsSinglePage(
      *     }
      * }
      * }
- * + * * @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. @@ -1375,23 +1057,20 @@ private PagedResponse listEnvironmentsSinglePage( * @return results of the environment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listEnvironments( - String projectName, String userId, RequestOptions requestOptions) { + public PagedIterable listEnvironments(String projectName, String userId, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listEnvironmentsSinglePage(projectName, userId, requestOptions), - nextLink -> listEnvironmentsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listEnvironmentsSinglePage(projectName, userId, requestOptions), + nextLink -> listEnvironmentsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets an environment. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1416,10 +1095,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. @@ -1429,27 +1108,19 @@ public PagedIterable listEnvironments( * @return an environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getEnvironmentWithResponseAsync( - String projectName, String userId, String environmentName, RequestOptions requestOptions) { + public Mono> getEnvironmentWithResponseAsync(String projectName, String userId, + String environmentName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getEnvironment( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.getEnvironment(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, environmentName, accept, requestOptions, context)); } /** * Gets an environment. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1474,10 +1145,10 @@ public Mono> getEnvironmentWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1487,25 +1158,18 @@ public Mono> getEnvironmentWithResponseAsync( * @return an environment along with {@link Response}. */ @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) { final String accept = "application/json"; - return service.getEnvironmentSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - requestOptions, - Context.NONE); + return service.getEnvironmentSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, environmentName, accept, requestOptions, Context.NONE); } /** * Creates or updates an environment. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1530,9 +1194,9 @@ public Response getEnvironmentWithResponse(
      *     }
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1557,10 +1221,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. @@ -1571,28 +1235,19 @@ public Response getEnvironmentWithResponse( * @return properties of an environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateEnvironmentWithResponseAsync( - String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) { + private Mono> createOrUpdateEnvironmentWithResponseAsync(String projectName, String userId, + String environmentName, BinaryData body, RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.createOrUpdateEnvironment( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - body, - requestOptions, - context)); + context -> service.createOrUpdateEnvironment(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, environmentName, accept, body, requestOptions, context)); } /** * Creates or updates an environment. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1617,9 +1272,9 @@ private Mono> createOrUpdateEnvironmentWithResponseAsync(
      *     }
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1644,10 +1299,10 @@ private Mono> createOrUpdateEnvironmentWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1658,26 +1313,18 @@ private Mono> createOrUpdateEnvironmentWithResponseAsync( * @return properties of an environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateEnvironmentWithResponse( - String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) { + private Response createOrUpdateEnvironmentWithResponse(String projectName, String userId, + String environmentName, BinaryData body, RequestOptions requestOptions) { final String accept = "application/json"; - return service.createOrUpdateEnvironmentSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - body, - requestOptions, - Context.NONE); + return service.createOrUpdateEnvironmentSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, environmentName, accept, body, requestOptions, Context.NONE); } /** * Creates or updates an environment. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1702,9 +1349,9 @@ private Response createOrUpdateEnvironmentWithResponse(
      *     }
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1729,10 +1376,10 @@ private Response createOrUpdateEnvironmentWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -1743,30 +1390,24 @@ private Response createOrUpdateEnvironmentWithResponse( * @return the {@link PollerFlux} for polling of properties of an environment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginCreateOrUpdateEnvironmentAsync( - String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> - this.createOrUpdateEnvironmentWithResponseAsync( - projectName, userId, environmentName, body, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public PollerFlux beginCreateOrUpdateEnvironmentAsync(String projectName, String userId, + String environmentName, BinaryData body, RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.createOrUpdateEnvironmentWithResponseAsync(projectName, userId, environmentName, body, + requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Creates or updates an environment. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1791,9 +1432,9 @@ public PollerFlux beginCreateOrUpdateEnvironmentAsync(
      *     }
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -1818,10 +1459,10 @@ public PollerFlux beginCreateOrUpdateEnvironmentAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1832,30 +1473,24 @@ public PollerFlux beginCreateOrUpdateEnvironmentAsync( * @return the {@link SyncPoller} for polling of properties of an environment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginCreateOrUpdateEnvironment( - String projectName, String userId, String environmentName, BinaryData body, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> - this.createOrUpdateEnvironmentWithResponse( - projectName, userId, environmentName, body, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public SyncPoller beginCreateOrUpdateEnvironment(String projectName, String userId, + String environmentName, BinaryData body, RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.createOrUpdateEnvironmentWithResponse(projectName, userId, environmentName, body, + requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Deletes an environment and all its associated resources. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1872,41 +1507,33 @@ 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. * @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 current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteEnvironmentWithResponseAsync( - String projectName, String userId, String environmentName, RequestOptions requestOptions) { + private Mono> deleteEnvironmentWithResponseAsync(String projectName, String userId, + String environmentName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.deleteEnvironment( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.deleteEnvironment(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, environmentName, accept, requestOptions, context)); } /** * Deletes an environment and all its associated resources. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1923,10 +1550,10 @@ private Mono> deleteEnvironmentWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -1936,25 +1563,18 @@ private Mono> deleteEnvironmentWithResponseAsync( * @return the current status of an async operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteEnvironmentWithResponse( - String projectName, String userId, String environmentName, RequestOptions requestOptions) { + private Response deleteEnvironmentWithResponse(String projectName, String userId, + String environmentName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.deleteEnvironmentSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - environmentName, - accept, - requestOptions, - Context.NONE); + return service.deleteEnvironmentSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, environmentName, accept, requestOptions, Context.NONE); } /** * Deletes an environment and all its associated resources. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1971,10 +1591,10 @@ private Response deleteEnvironmentWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -1984,28 +1604,23 @@ private Response deleteEnvironmentWithResponse( * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginDeleteEnvironmentAsync( - String projectName, String userId, String environmentName, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.deleteEnvironmentWithResponseAsync(projectName, userId, environmentName, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(Void.class)); + public PollerFlux beginDeleteEnvironmentAsync(String projectName, String userId, + String environmentName, RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.deleteEnvironmentWithResponseAsync(projectName, userId, environmentName, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(Void.class)); } /** * Deletes an environment and all its associated resources. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2022,10 +1637,10 @@ public PollerFlux beginDeleteEnvironmentAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -2035,98 +1650,98 @@ public PollerFlux beginDeleteEnvironmentAsync( * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginDeleteEnvironment( - String projectName, String userId, String environmentName, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.deleteEnvironmentWithResponse(projectName, userId, environmentName, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(Void.class)); + public SyncPoller beginDeleteEnvironment(String projectName, String userId, + String environmentName, RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.deleteEnvironmentWithResponse(projectName, userId, environmentName, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(Void.class)); } /** * Lists all of the catalogs available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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. * @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 results of the catalog list operation along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return results of the catalog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCatalogsSinglePageAsync( - String projectName, RequestOptions requestOptions) { + private Mono> listCatalogsSinglePageAsync(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listCatalogs( - 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.listCatalogs(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 all of the catalogs available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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. @@ -2139,35 +1754,41 @@ private Mono> listCatalogsSinglePageAsync( public PagedFlux listCatalogsAsync(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listCatalogsSinglePageAsync(projectName, requestOptions), - nextLink -> listCatalogsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listCatalogsSinglePageAsync(projectName, requestOptions), + nextLink -> listCatalogsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists all of the catalogs available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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. @@ -2179,44 +1800,42 @@ public PagedFlux listCatalogsAsync(String projectName, RequestOption @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listCatalogsSinglePage(String projectName, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listCatalogsSync( - 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.listCatalogsSync(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 all of the catalogs available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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. @@ -2229,25 +1848,22 @@ private PagedResponse listCatalogsSinglePage(String projectName, Req public PagedIterable listCatalogs(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listCatalogsSinglePage(projectName, requestOptions), - nextLink -> listCatalogsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listCatalogsSinglePage(projectName, requestOptions), + nextLink -> listCatalogsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * 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. @@ -2255,36 +1871,28 @@ public PagedIterable listCatalogs(String projectName, RequestOptions * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getCatalogWithResponseAsync( - String projectName, String catalogName, RequestOptions requestOptions) { + public Mono> getCatalogWithResponseAsync(String projectName, String catalogName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getCatalog( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getCatalog(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, catalogName, accept, requestOptions, context)); } /** * 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. @@ -2295,34 +1903,37 @@ public Mono> getCatalogWithResponseAsync( * @return the specified catalog within the project along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getCatalogWithResponse( - String projectName, String catalogName, RequestOptions requestOptions) { + public Response getCatalogWithResponse(String projectName, String catalogName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.getCatalogSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - accept, - requestOptions, - Context.NONE); + return service.getCatalogSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + catalogName, accept, requestOptions, Context.NONE); } /** * Lists all environment definitions available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2347,7 +1958,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. @@ -2355,47 +1966,43 @@ public Response getCatalogWithResponse( * @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 definition list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentDefinitionsSinglePageAsync( - String projectName, RequestOptions requestOptions) { + private Mono> listEnvironmentDefinitionsSinglePageAsync(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentDefinitions( - 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.listEnvironmentDefinitions(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 all environment definitions available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2420,7 +2027,7 @@ private Mono> listEnvironmentDefinitionsSinglePageAsyn
      *     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. @@ -2433,29 +2040,35 @@ private Mono> listEnvironmentDefinitionsSinglePageAsyn public PagedFlux listEnvironmentDefinitionsAsync(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listEnvironmentDefinitionsSinglePageAsync(projectName, requestOptions), - nextLink -> listEnvironmentDefinitionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listEnvironmentDefinitionsSinglePageAsync(projectName, requestOptions), + nextLink -> listEnvironmentDefinitionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists all environment definitions available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2480,7 +2093,7 @@ public PagedFlux listEnvironmentDefinitionsAsync(String projectName,
      *     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. @@ -2490,41 +2103,39 @@ public PagedFlux listEnvironmentDefinitionsAsync(String projectName, * @return results of the environment definition list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentDefinitionsSinglePage( - String projectName, RequestOptions requestOptions) { + private PagedResponse listEnvironmentDefinitionsSinglePage(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentDefinitionsSync( - 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.listEnvironmentDefinitionsSync(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 all environment definitions available for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2549,7 +2160,7 @@ private PagedResponse listEnvironmentDefinitionsSinglePage(
      *     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. @@ -2562,29 +2173,35 @@ private PagedResponse listEnvironmentDefinitionsSinglePage( public PagedIterable listEnvironmentDefinitions(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listEnvironmentDefinitionsSinglePage(projectName, requestOptions), - nextLink -> listEnvironmentDefinitionsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listEnvironmentDefinitionsSinglePage(projectName, requestOptions), + nextLink -> listEnvironmentDefinitionsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Lists all environment definitions available within a catalog. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2609,7 +2226,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. @@ -2618,48 +2235,43 @@ public PagedIterable listEnvironmentDefinitions(String projectName, * @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 definition list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentDefinitionsByCatalogSinglePageAsync( - String projectName, String catalogName, RequestOptions requestOptions) { + private Mono> listEnvironmentDefinitionsByCatalogSinglePageAsync(String projectName, + String catalogName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentDefinitionsByCatalog( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - 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.listEnvironmentDefinitionsByCatalog(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, catalogName, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists all environment definitions available within a catalog. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2684,7 +2296,7 @@ private Mono> listEnvironmentDefinitionsByCatalogSingl
      *     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. @@ -2695,34 +2307,40 @@ private Mono> listEnvironmentDefinitionsByCatalogSingl * @return results of the environment definition list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listEnvironmentDefinitionsByCatalogAsync( - String projectName, String catalogName, RequestOptions requestOptions) { + public PagedFlux listEnvironmentDefinitionsByCatalogAsync(String projectName, String catalogName, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); return new PagedFlux<>( - () -> listEnvironmentDefinitionsByCatalogSinglePageAsync(projectName, catalogName, requestOptions), - nextLink -> - listEnvironmentDefinitionsByCatalogNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + () -> listEnvironmentDefinitionsByCatalogSinglePageAsync(projectName, catalogName, requestOptions), + nextLink -> listEnvironmentDefinitionsByCatalogNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists all environment definitions available within a catalog. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2747,7 +2365,7 @@ public PagedFlux listEnvironmentDefinitionsByCatalogAsync(
      *     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. @@ -2758,42 +2376,39 @@ public PagedFlux listEnvironmentDefinitionsByCatalogAsync( * @return results of the environment definition list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentDefinitionsByCatalogSinglePage( - String projectName, String catalogName, RequestOptions requestOptions) { + private PagedResponse listEnvironmentDefinitionsByCatalogSinglePage(String projectName, + String catalogName, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentDefinitionsByCatalogSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - 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.listEnvironmentDefinitionsByCatalogSync(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, catalogName, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists all environment definitions available within a catalog. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2818,7 +2433,7 @@ private PagedResponse listEnvironmentDefinitionsByCatalogSinglePage(
      *     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. @@ -2829,23 +2444,21 @@ private PagedResponse listEnvironmentDefinitionsByCatalogSinglePage( * @return results of the environment definition list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listEnvironmentDefinitionsByCatalog( - String projectName, String catalogName, RequestOptions requestOptions) { + public PagedIterable listEnvironmentDefinitionsByCatalog(String projectName, String catalogName, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); return new PagedIterable<>( - () -> listEnvironmentDefinitionsByCatalogSinglePage(projectName, catalogName, requestOptions), - nextLink -> listEnvironmentDefinitionsByCatalogNextSinglePage(nextLink, requestOptionsForNextPage)); + () -> listEnvironmentDefinitionsByCatalogSinglePage(projectName, catalogName, requestOptions), + nextLink -> listEnvironmentDefinitionsByCatalogNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Get an environment definition from a catalog. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2870,7 +2483,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. @@ -2879,31 +2492,23 @@ public PagedIterable 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getEnvironmentDefinitionWithResponseAsync( - String projectName, String catalogName, String definitionName, RequestOptions requestOptions) { + public Mono> getEnvironmentDefinitionWithResponseAsync(String projectName, String catalogName, + String definitionName, RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.getEnvironmentDefinition( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - definitionName, - accept, - requestOptions, - context)); + context -> service.getEnvironmentDefinition(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, catalogName, definitionName, accept, requestOptions, context)); } /** * Get an environment definition from a catalog. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2928,7 +2533,7 @@ public Mono> getEnvironmentDefinitionWithResponseAsync(
      *     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. @@ -2940,35 +2545,37 @@ public Mono> getEnvironmentDefinitionWithResponseAsync( * @return an environment definition from a catalog along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getEnvironmentDefinitionWithResponse( - String projectName, String catalogName, String definitionName, RequestOptions requestOptions) { + public Response getEnvironmentDefinitionWithResponse(String projectName, String catalogName, + String definitionName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getEnvironmentDefinitionSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - catalogName, - definitionName, - accept, - requestOptions, - Context.NONE); + return service.getEnvironmentDefinitionSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, catalogName, definitionName, accept, requestOptions, Context.NONE); } /** * Lists all environment types configured for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -2976,7 +2583,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. @@ -2984,47 +2591,43 @@ public Response getEnvironmentDefinitionWithResponse( * @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 result of the environment type list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentTypesSinglePageAsync( - String projectName, RequestOptions requestOptions) { + private Mono> listEnvironmentTypesSinglePageAsync(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentTypes( - 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.listEnvironmentTypes(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 all environment types configured for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -3032,7 +2635,7 @@ private Mono> listEnvironmentTypesSinglePageAsync(
      *     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. @@ -3045,29 +2648,35 @@ private Mono> listEnvironmentTypesSinglePageAsync( public PagedFlux listEnvironmentTypesAsync(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listEnvironmentTypesSinglePageAsync(projectName, requestOptions), - nextLink -> listEnvironmentTypesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listEnvironmentTypesSinglePageAsync(projectName, requestOptions), + nextLink -> listEnvironmentTypesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists all environment types configured for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -3075,7 +2684,7 @@ public PagedFlux listEnvironmentTypesAsync(String projectName, Reque
      *     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. @@ -3085,41 +2694,39 @@ public PagedFlux listEnvironmentTypesAsync(String projectName, Reque * @return result of the environment type list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentTypesSinglePage( - String projectName, RequestOptions requestOptions) { + private PagedResponse listEnvironmentTypesSinglePage(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentTypesSync( - 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.listEnvironmentTypesSync(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 all environment types configured for a project. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
topIntegerNoThe 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)
@@ -3127,7 +2734,7 @@ private PagedResponse listEnvironmentTypesSinglePage(
      *     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. @@ -3140,19 +2747,16 @@ private PagedResponse listEnvironmentTypesSinglePage( public PagedIterable listEnvironmentTypes(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listEnvironmentTypesSinglePage(projectName, requestOptions), - nextLink -> listEnvironmentTypesNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listEnvironmentTypesSinglePage(projectName, requestOptions), + nextLink -> listEnvironmentTypesNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -3177,41 +2781,33 @@ public PagedIterable listEnvironmentTypes(String projectName, Reques
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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> listAllEnvironmentsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listAllEnvironmentsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.listAllEnvironmentsNext( - nextLink, this.getEndpoint(), accept, requestOptions, context)) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - getValues(res.getValue(), "value"), - getNextLink(res.getValue(), "nextLink"), - null)); + context -> service.listAllEnvironmentsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -3236,9 +2832,10 @@ private Mono> listAllEnvironmentsNextSinglePageAsync(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3247,25 +2844,20 @@ private Mono> listAllEnvironmentsNextSinglePageAsync( * @return results of the environment list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listAllEnvironmentsNextSinglePage( - String nextLink, RequestOptions requestOptions) { + private PagedResponse listAllEnvironmentsNextSinglePage(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAllEnvironmentsNextSync(nextLink, this.getEndpoint(), 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.listAllEnvironmentsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -3290,41 +2882,34 @@ private PagedResponse listAllEnvironmentsNextSinglePage(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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> listEnvironmentsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listEnvironmentsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentsNext( - nextLink, this.getEndpoint(), 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.listEnvironmentsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     parameters: Object (Optional)
@@ -3349,9 +2934,10 @@ private Mono> listEnvironmentsNextSinglePageAsync(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3362,69 +2948,59 @@ private Mono> listEnvironmentsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listEnvironmentsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentsNextSync(nextLink, this.getEndpoint(), 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.listEnvironmentsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 catalog list operation along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return results of the catalog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCatalogsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listCatalogsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listCatalogsNext(nextLink, this.getEndpoint(), 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.listCatalogsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3435,22 +3011,17 @@ private Mono> listCatalogsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listCatalogsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listCatalogsNextSync(nextLink, this.getEndpoint(), 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.listCatalogsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -3475,41 +3046,34 @@ private PagedResponse listCatalogsNextSinglePage(String nextLink, Re
      *     templatePath: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 definition list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentDefinitionsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listEnvironmentDefinitionsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentDefinitionsNext( - nextLink, this.getEndpoint(), 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.listEnvironmentDefinitionsNext(nextLink, this.getEndpoint(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -3534,9 +3098,10 @@ private Mono> listEnvironmentDefinitionsNextSinglePage
      *     templatePath: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3545,26 +3110,20 @@ private Mono> listEnvironmentDefinitionsNextSinglePage * @return results of the environment definition list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentDefinitionsNextSinglePage( - String nextLink, RequestOptions requestOptions) { + private PagedResponse listEnvironmentDefinitionsNextSinglePage(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentDefinitionsNextSync( - nextLink, this.getEndpoint(), 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.listEnvironmentDefinitionsNextSync(nextLink, this.getEndpoint(), accept, + requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -3589,41 +3148,34 @@ private PagedResponse listEnvironmentDefinitionsNextSinglePage(
      *     templatePath: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 definition list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentDefinitionsByCatalogNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listEnvironmentDefinitionsByCatalogNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listEnvironmentDefinitionsByCatalogNext( - nextLink, this.getEndpoint(), 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.listEnvironmentDefinitionsByCatalogNext(nextLink, this.getEndpoint(), + accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -3648,9 +3200,10 @@ private Mono> listEnvironmentDefinitionsByCatalogNextS
      *     templatePath: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3659,26 +3212,20 @@ private Mono> listEnvironmentDefinitionsByCatalogNextS * @return results of the environment definition list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentDefinitionsByCatalogNextSinglePage( - String nextLink, RequestOptions requestOptions) { + private PagedResponse listEnvironmentDefinitionsByCatalogNextSinglePage(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentDefinitionsByCatalogNextSync( - nextLink, this.getEndpoint(), 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.listEnvironmentDefinitionsByCatalogNextSync(nextLink, this.getEndpoint(), + accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3686,41 +3233,33 @@ private PagedResponse listEnvironmentDefinitionsByCatalogNextSingleP
      *     status: String(Enabled/Disabled) (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 result of the environment type list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listEnvironmentTypesNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listEnvironmentTypesNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.listEnvironmentTypesNext( - nextLink, this.getEndpoint(), accept, requestOptions, context)) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - getValues(res.getValue(), "value"), - getNextLink(res.getValue(), "nextLink"), - null)); + context -> service.listEnvironmentTypesNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3728,9 +3267,10 @@ private Mono> listEnvironmentTypesNextSinglePageAsync(
      *     status: String(Enabled/Disabled) (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -3739,19 +3279,13 @@ private Mono> listEnvironmentTypesNextSinglePageAsync( * @return result of the environment type list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listEnvironmentTypesNextSinglePage( - String nextLink, RequestOptions requestOptions) { + private PagedResponse listEnvironmentTypesNextSinglePage(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listEnvironmentTypesNextSync( - nextLink, this.getEndpoint(), 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.listEnvironmentTypesNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } private List getValues(BinaryData binaryData, String path) { diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevBoxesClientImpl.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevBoxesClientImpl.java index 1c669097845f..a76aa5cbd3b6 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevBoxesClientImpl.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevBoxesClientImpl.java @@ -53,53 +53,65 @@ import java.util.stream.Collectors; import reactor.core.publisher.Mono; -/** Initializes a new instance of the DevBoxesClient type. */ +/** + * Initializes a new instance of the DevBoxesClient type. + */ public final class DevBoxesClientImpl { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final DevBoxesClientService 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() { @@ -108,21 +120,18 @@ public SerializerAdapter getSerializerAdapter() { /** * Initializes an instance of DevBoxesClient client. - * + * * @param endpoint The DevCenter-specific URI to operate on. * @param serviceVersion Service version. */ public DevBoxesClientImpl(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 DevBoxesClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint The DevCenter-specific URI to operate on. * @param serviceVersion Service version. @@ -133,17 +142,14 @@ public DevBoxesClientImpl(HttpPipeline httpPipeline, String endpoint, DevCenterS /** * Initializes an instance of DevBoxesClient 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 DevBoxesClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - String endpoint, - DevCenterServiceVersion serviceVersion) { + public DevBoxesClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint, + DevCenterServiceVersion serviceVersion) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.endpoint = endpoint; @@ -152,1122 +158,605 @@ public DevBoxesClientImpl( } /** - * The interface defining all the services for DevBoxesClient to be used by the proxy service to perform REST calls. + * The interface defining all the services for DevBoxesClient to be used by the proxy service to perform REST + * calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevBoxesClient") public interface DevBoxesClientService { @Get("/projects/{projectName}/pools") - @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> listPools( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listPools(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/pools") - @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 listPoolsSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listPoolsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/pools/{poolName}") - @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> getPool( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getPool(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); @Get("/projects/{projectName}/pools/{poolName}") - @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 getPoolSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getPoolSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); @Get("/projects/{projectName}/pools/{poolName}/schedules") - @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> listSchedules( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listSchedules(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); @Get("/projects/{projectName}/pools/{poolName}/schedules") - @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 listSchedulesSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listSchedulesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); @Get("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - @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> getSchedule( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @PathParam("scheduleName") String scheduleName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getSchedule(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @PathParam("scheduleName") String scheduleName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - @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 getScheduleSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("poolName") String poolName, - @PathParam("scheduleName") String scheduleName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getScheduleSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("poolName") String poolName, @PathParam("scheduleName") String scheduleName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/devboxes") - @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> listAllDevBoxes( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listAllDevBoxes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Get("/devboxes") - @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 listAllDevBoxesSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listAllDevBoxesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Get("/users/{userId}/devboxes") - @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> listAllDevBoxesByUser( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("userId") String userId, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listAllDevBoxesByUser(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("userId") String userId, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/users/{userId}/devboxes") - @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 listAllDevBoxesByUserSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("userId") String userId, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listAllDevBoxesByUserSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("userId") String userId, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes") - @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> listDevBoxes( - @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> listDevBoxes(@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}/devboxes") - @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 listDevBoxesSync( - @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 listDevBoxesSync(@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}/devboxes/{devBoxName}") - @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> getDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @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 getDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Put("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @ExpectedResponses({200, 201}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> createDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - @BodyParam("application/json") BinaryData body, - RequestOptions requestOptions, - Context context); + Mono> createDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData body, + RequestOptions requestOptions, Context context); @Put("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @ExpectedResponses({200, 201}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response createDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - @BodyParam("application/json") BinaryData body, - RequestOptions requestOptions, - Context context); + Response createDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData body, + RequestOptions requestOptions, Context context); @Delete("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @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> deleteDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> deleteDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Delete("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @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 deleteDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response deleteDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> startDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> startDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response startDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response startDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> stopDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> stopDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response stopDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response stopDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> restartDevBox( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> restartDevBox(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response restartDevBoxSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response restartDevBoxSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") - @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> getRemoteConnection( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getRemoteConnection(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") - @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 getRemoteConnectionSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getRemoteConnectionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") - @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> listDevBoxActions( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listDevBoxActions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") - @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 listDevBoxActionsSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listDevBoxActionsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") - @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> getDevBoxAction( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getDevBoxAction(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Get("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") - @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 getDevBoxActionSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getDevBoxActionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") - @ExpectedResponses({204}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> skipAction( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> skipAction(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") - @ExpectedResponses({204}) - @UnexpectedResponseExceptionType( - value = ClientAuthenticationException.class, - code = {401}) - @UnexpectedResponseExceptionType( - value = ResourceNotFoundException.class, - code = {404}) - @UnexpectedResponseExceptionType( - value = ResourceModifiedException.class, - code = {409}) + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response skipActionSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response skipActionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") - @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> delayAction( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @QueryParam("until") OffsetDateTime delayUntil, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> delayAction(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @QueryParam("until") OffsetDateTime delayUntil, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") - @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 delayActionSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @PathParam("actionName") String actionName, - @QueryParam("until") OffsetDateTime delayUntil, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response delayActionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @PathParam("actionName") String actionName, @QueryParam("until") OffsetDateTime delayUntil, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") - @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> delayAllActions( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @QueryParam("until") OffsetDateTime delayUntil, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> delayAllActions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @QueryParam("until") OffsetDateTime delayUntil, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Post("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") - @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 delayAllActionsSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @PathParam("userId") String userId, - @PathParam("devBoxName") String devBoxName, - @QueryParam("until") OffsetDateTime delayUntil, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response delayAllActionsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @PathParam("userId") String userId, @PathParam("devBoxName") String devBoxName, + @QueryParam("until") OffsetDateTime delayUntil, @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> listPoolsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listPoolsNext(@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 listPoolsNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listPoolsNextSync(@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> listSchedulesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listSchedulesNext(@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 listSchedulesNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listSchedulesNextSync(@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> listAllDevBoxesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listAllDevBoxesNext(@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 listAllDevBoxesNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listAllDevBoxesNextSync(@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> listAllDevBoxesByUserNext( - @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 listAllDevBoxesByUserNextSync( - @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> listDevBoxesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listDevBoxesNext(@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 listDevBoxesNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listDevBoxesNextSync(@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> listDevBoxActionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listDevBoxActionsNext(@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 listDevBoxActionsNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listDevBoxActionsNextSync(@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> delayAllActionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> delayAllActionsNext(@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 delayAllActionsNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response delayAllActionsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); } /** * Lists available pools. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1299,7 +788,7 @@ Response delayAllActionsNextSync(
      *     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. @@ -1309,45 +798,46 @@ Response delayAllActionsNextSync( * @return the Pool list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPoolsSinglePageAsync( - String projectName, RequestOptions requestOptions) { + private Mono> listPoolsSinglePageAsync(String projectName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listPools( - 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.listPools(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 available pools. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1379,7 +869,7 @@ private Mono> listPoolsSinglePageAsync(
      *     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. @@ -1392,30 +882,41 @@ private Mono> listPoolsSinglePageAsync( public PagedFlux listPoolsAsync(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listPoolsSinglePageAsync(projectName, requestOptions), - nextLink -> listPoolsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listPoolsSinglePageAsync(projectName, requestOptions), + nextLink -> listPoolsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists available pools. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1447,7 +948,7 @@ public PagedFlux listPoolsAsync(String projectName, RequestOptions r
      *     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. @@ -1459,39 +960,42 @@ public PagedFlux listPoolsAsync(String projectName, RequestOptions r @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listPoolsSinglePage(String projectName, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listPoolsSync( - 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.listPoolsSync(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 available pools. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1523,7 +1027,7 @@ private PagedResponse listPoolsSinglePage(String projectName, Reques
      *     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. @@ -1536,19 +1040,16 @@ private PagedResponse listPoolsSinglePage(String projectName, Reques public PagedIterable listPools(String projectName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listPoolsSinglePage(projectName, requestOptions), - nextLink -> listPoolsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listPoolsSinglePage(projectName, requestOptions), + nextLink -> listPoolsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets a pool. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -1580,7 +1081,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. @@ -1591,26 +1092,18 @@ public PagedIterable listPools(String projectName, RequestOptions re * @return a pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getPoolWithResponseAsync( - String projectName, String poolName, RequestOptions requestOptions) { + public Mono> getPoolWithResponseAsync(String projectName, String poolName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getPool( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getPool(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, poolName, accept, requestOptions, context)); } /** * Gets a pool. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -1642,7 +1135,7 @@ public Mono> getPoolWithResponseAsync(
      *     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. @@ -1653,35 +1146,43 @@ public Mono> getPoolWithResponseAsync( * @return a pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPoolWithResponse( - String projectName, String poolName, RequestOptions requestOptions) { + public Response getPoolWithResponse(String projectName, String poolName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.getPoolSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - accept, - requestOptions, - Context.NONE); + return service.getPoolSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, poolName, + accept, requestOptions, Context.NONE); } /** * Lists available schedules for a pool. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1691,7 +1192,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. @@ -1702,46 +1203,46 @@ public Response getPoolWithResponse( * @return the Schedule list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSchedulesSinglePageAsync( - String projectName, String poolName, RequestOptions requestOptions) { + private Mono> listSchedulesSinglePageAsync(String projectName, String poolName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listSchedules( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - 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.listSchedules(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, poolName, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists available schedules for a pool. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1751,7 +1252,7 @@ private Mono> listSchedulesSinglePageAsync(
      *     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. @@ -1762,34 +1263,45 @@ private Mono> listSchedulesSinglePageAsync( * @return the Schedule list result as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSchedulesAsync( - String projectName, String poolName, RequestOptions requestOptions) { + public PagedFlux listSchedulesAsync(String projectName, String poolName, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listSchedulesSinglePageAsync(projectName, poolName, requestOptions), - nextLink -> listSchedulesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listSchedulesSinglePageAsync(projectName, poolName, requestOptions), + nextLink -> listSchedulesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists available schedules for a pool. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1799,7 +1311,7 @@ public PagedFlux listSchedulesAsync(
      *     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. @@ -1810,43 +1322,45 @@ public PagedFlux listSchedulesAsync( * @return the Schedule list result along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSchedulesSinglePage( - String projectName, String poolName, RequestOptions requestOptions) { + private PagedResponse listSchedulesSinglePage(String projectName, String poolName, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listSchedulesSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - 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.listSchedulesSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, poolName, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists available schedules for a pool. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -1856,7 +1370,7 @@ private PagedResponse listSchedulesSinglePage(
      *     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. @@ -1870,19 +1384,16 @@ private PagedResponse listSchedulesSinglePage( public PagedIterable listSchedules(String projectName, String poolName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listSchedulesSinglePage(projectName, poolName, requestOptions), - nextLink -> listSchedulesNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listSchedulesSinglePage(projectName, poolName, requestOptions), + nextLink -> listSchedulesNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets a schedule. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -1892,7 +1403,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. @@ -1904,27 +1415,19 @@ public PagedIterable listSchedules(String projectName, String poolNa * @return a schedule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getScheduleWithResponseAsync( - String projectName, String poolName, String scheduleName, RequestOptions requestOptions) { + public Mono> getScheduleWithResponseAsync(String projectName, String poolName, + String scheduleName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getSchedule( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - scheduleName, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.getSchedule(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, poolName, scheduleName, accept, requestOptions, context)); } /** * Gets a schedule. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -1934,7 +1437,7 @@ public Mono> getScheduleWithResponseAsync(
      *     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. @@ -1946,36 +1449,43 @@ public Mono> getScheduleWithResponseAsync( * @return a schedule along with {@link Response}. */ @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) { final String accept = "application/json"; - return service.getScheduleSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - poolName, - scheduleName, - accept, - requestOptions, - Context.NONE); + return service.getScheduleSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, poolName, + scheduleName, accept, requestOptions, Context.NONE); } /** * Lists Dev Boxes that the caller has access to in the DevCenter. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2022,7 +1532,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. @@ -2033,41 +1543,43 @@ public Response getScheduleWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAllDevBoxesSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listAllDevBoxes( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - 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.listAllDevBoxes(this.getEndpoint(), this.getServiceVersion().getVersion(), + accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists Dev Boxes that the caller has access to in the DevCenter. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2114,7 +1626,7 @@ private Mono> listAllDevBoxesSinglePageAsync(RequestOp
      *     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. @@ -2126,30 +1638,41 @@ private Mono> listAllDevBoxesSinglePageAsync(RequestOp public PagedFlux listAllDevBoxesAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listAllDevBoxesSinglePageAsync(requestOptions), - nextLink -> listAllDevBoxesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listAllDevBoxesSinglePageAsync(requestOptions), + nextLink -> listAllDevBoxesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists Dev Boxes that the caller has access to in the DevCenter. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2196,7 +1719,7 @@ public PagedFlux listAllDevBoxesAsync(RequestOptions requestOptions)
      *     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. @@ -2207,38 +1730,42 @@ public PagedFlux listAllDevBoxesAsync(RequestOptions requestOptions) @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listAllDevBoxesSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAllDevBoxesSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - 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.listAllDevBoxesSync(this.getEndpoint(), + this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists Dev Boxes that the caller has access to in the DevCenter. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2285,7 +1812,7 @@ private PagedResponse listAllDevBoxesSinglePage(RequestOptions reque
      *     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. @@ -2297,30 +1824,41 @@ private PagedResponse listAllDevBoxesSinglePage(RequestOptions reque public PagedIterable listAllDevBoxes(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listAllDevBoxesSinglePage(requestOptions), - nextLink -> listAllDevBoxesNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listAllDevBoxesSinglePage(requestOptions), + nextLink -> listAllDevBoxesNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Lists Dev Boxes in the Dev Center for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2367,9 +1905,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. @@ -2378,45 +1916,46 @@ public PagedIterable listAllDevBoxes(RequestOptions requestOptions) * @return the Dev Box list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllDevBoxesByUserSinglePageAsync( - String userId, RequestOptions requestOptions) { + private Mono> listAllDevBoxesByUserSinglePageAsync(String userId, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listAllDevBoxesByUser( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - userId, - 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.listAllDevBoxesByUser(this.getEndpoint(), + this.getServiceVersion().getVersion(), userId, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists Dev Boxes in the Dev Center for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2463,9 +2002,9 @@ private Mono> listAllDevBoxesByUserSinglePageAsync(
      *     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. @@ -2477,30 +2016,41 @@ private Mono> listAllDevBoxesByUserSinglePageAsync( public PagedFlux listAllDevBoxesByUserAsync(String userId, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listAllDevBoxesByUserSinglePageAsync(userId, requestOptions), - nextLink -> listAllDevBoxesByUserNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listAllDevBoxesByUserSinglePageAsync(userId, requestOptions), + nextLink -> listAllDevBoxesByUserNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists Dev Boxes in the Dev Center for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2547,9 +2097,9 @@ public PagedFlux listAllDevBoxesByUserAsync(String userId, RequestOp
      *     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. @@ -2560,39 +2110,42 @@ public PagedFlux listAllDevBoxesByUserAsync(String userId, RequestOp @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listAllDevBoxesByUserSinglePage(String userId, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAllDevBoxesByUserSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - userId, - 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.listAllDevBoxesByUserSync(this.getEndpoint(), + this.getServiceVersion().getVersion(), userId, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists Dev Boxes in the Dev Center for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2639,9 +2192,9 @@ private PagedResponse listAllDevBoxesByUserSinglePage(String userId,
      *     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. @@ -2653,30 +2206,41 @@ private PagedResponse listAllDevBoxesByUserSinglePage(String userId, public PagedIterable listAllDevBoxesByUser(String userId, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listAllDevBoxesByUserSinglePage(userId, requestOptions), - nextLink -> listAllDevBoxesByUserNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listAllDevBoxesByUserSinglePage(userId, requestOptions), + nextLink -> listAllDevBoxesByUserNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Lists Dev Boxes in the project for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2723,10 +2287,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. @@ -2735,46 +2299,46 @@ public PagedIterable listAllDevBoxesByUser(String userId, RequestOpt * @return the Dev Box list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDevBoxesSinglePageAsync( - String projectName, String userId, RequestOptions requestOptions) { + private Mono> listDevBoxesSinglePageAsync(String projectName, String userId, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDevBoxes( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - 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.listDevBoxes(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists Dev Boxes in the project for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2821,10 +2385,10 @@ private Mono> listDevBoxesSinglePageAsync(
      *     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. @@ -2836,30 +2400,41 @@ private Mono> listDevBoxesSinglePageAsync( public PagedFlux listDevBoxesAsync(String projectName, String userId, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listDevBoxesSinglePageAsync(projectName, userId, requestOptions), - nextLink -> listDevBoxesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listDevBoxesSinglePageAsync(projectName, userId, requestOptions), + nextLink -> listDevBoxesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists Dev Boxes in the project for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -2906,10 +2481,10 @@ public PagedFlux listDevBoxesAsync(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 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. @@ -2918,43 +2493,45 @@ public PagedFlux listDevBoxesAsync(String projectName, String userId * @return the Dev Box list result along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listDevBoxesSinglePage( - String projectName, String userId, RequestOptions requestOptions) { + private PagedResponse listDevBoxesSinglePage(String projectName, String userId, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDevBoxesSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - 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.listDevBoxesSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists Dev Boxes in the project for a particular user. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -3001,10 +2578,10 @@ private PagedResponse listDevBoxesSinglePage(
      *     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. @@ -3016,19 +2593,16 @@ private PagedResponse listDevBoxesSinglePage( public PagedIterable listDevBoxes(String projectName, String userId, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listDevBoxesSinglePage(projectName, userId, requestOptions), - nextLink -> listDevBoxesNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listDevBoxesSinglePage(projectName, userId, requestOptions), + nextLink -> listDevBoxesNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3075,10 +2649,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. @@ -3088,27 +2662,18 @@ public PagedIterable listDevBoxes(String projectName, String userId, * @return a Dev Box along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + public Mono> getDevBoxWithResponseAsync(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getDevBox(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * Gets a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3155,10 +2720,10 @@ public Mono> getDevBoxWithResponseAsync(
      *     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. @@ -3168,25 +2733,18 @@ public Mono> getDevBoxWithResponseAsync( * @return a Dev Box along with {@link Response}. */ @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) { final String accept = "application/json"; - return service.getDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.getDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, requestOptions, Context.NONE); } /** * Creates or replaces a Dev Box. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3233,9 +2791,9 @@ public Response getDevBoxWithResponse(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3282,10 +2840,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. @@ -3296,28 +2854,19 @@ public Response getDevBoxWithResponse( * @return a Dev Box along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) { + private Mono> createDevBoxWithResponseAsync(String projectName, String userId, + String devBoxName, BinaryData body, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.createDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - body, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.createDevBox(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, accept, body, requestOptions, context)); } /** * Creates or replaces a Dev Box. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3364,9 +2913,9 @@ private Mono> createDevBoxWithResponseAsync(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3413,10 +2962,10 @@ private Mono> createDevBoxWithResponseAsync(
      *     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. @@ -3427,26 +2976,18 @@ private Mono> createDevBoxWithResponseAsync( * @return a Dev Box along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createDevBoxWithResponse( - String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) { + private Response createDevBoxWithResponse(String projectName, String userId, String devBoxName, + BinaryData body, RequestOptions requestOptions) { final String accept = "application/json"; - return service.createDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - body, - requestOptions, - Context.NONE); + return service.createDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, body, requestOptions, Context.NONE); } /** * Creates or replaces a Dev Box. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3493,9 +3034,9 @@ private Response createDevBoxWithResponse(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3542,10 +3083,10 @@ private Response createDevBoxWithResponse(
      *     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. @@ -3556,28 +3097,23 @@ private Response createDevBoxWithResponse( * @return the {@link PollerFlux} for polling of a Dev Box. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginCreateDevBoxAsync( - String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.createDevBoxWithResponseAsync(projectName, userId, devBoxName, body, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public PollerFlux beginCreateDevBoxAsync(String projectName, String userId, + String devBoxName, BinaryData body, RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.createDevBoxWithResponseAsync(projectName, userId, devBoxName, body, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Creates or replaces a Dev Box. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3624,9 +3160,9 @@ public PollerFlux beginCreateDevBoxAsync(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -3673,10 +3209,10 @@ public PollerFlux beginCreateDevBoxAsync(
      *     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. @@ -3687,28 +3223,23 @@ public PollerFlux beginCreateDevBoxAsync( * @return the {@link SyncPoller} for polling of a Dev Box. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginCreateDevBox( - String projectName, String userId, String devBoxName, BinaryData body, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.createDevBoxWithResponse(projectName, userId, devBoxName, body, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public SyncPoller beginCreateDevBox(String projectName, String userId, String devBoxName, + BinaryData body, RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.createDevBoxWithResponse(projectName, userId, devBoxName, body, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Deletes a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3725,41 +3256,32 @@ 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. * @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 current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Mono> deleteDevBoxWithResponseAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.deleteDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.deleteDevBox(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * Deletes a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3776,10 +3298,10 @@ private Mono> deleteDevBoxWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -3789,25 +3311,18 @@ private Mono> deleteDevBoxWithResponseAsync( * @return the current status of an async operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteDevBoxWithResponse( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Response deleteDevBoxWithResponse(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.deleteDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.deleteDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, requestOptions, Context.NONE); } /** * Deletes a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3824,10 +3339,10 @@ private Response deleteDevBoxWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -3837,28 +3352,23 @@ private Response deleteDevBoxWithResponse( * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginDeleteDevBoxAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.deleteDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(Void.class)); + public PollerFlux beginDeleteDevBoxAsync(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.deleteDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(Void.class)); } /** * Deletes a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3875,10 +3385,10 @@ public PollerFlux beginDeleteDevBoxAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -3888,28 +3398,23 @@ public PollerFlux beginDeleteDevBoxAsync( * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginDeleteDevBox( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.deleteDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(Void.class)); + public SyncPoller beginDeleteDevBox(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.deleteDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(Void.class)); } /** * Starts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3926,41 +3431,32 @@ 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. * @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 current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> startDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Mono> startDevBoxWithResponseAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.startDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.startDevBox(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * Starts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3977,10 +3473,10 @@ private Mono> startDevBoxWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -3990,25 +3486,18 @@ private Mono> startDevBoxWithResponseAsync( * @return the current status of an async operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response startDevBoxWithResponse( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Response startDevBoxWithResponse(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.startDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.startDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, requestOptions, Context.NONE); } /** * Starts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4025,10 +3514,10 @@ private Response startDevBoxWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -4038,28 +3527,23 @@ private Response startDevBoxWithResponse( * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginStartDevBoxAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.startDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public PollerFlux beginStartDevBoxAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.startDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Starts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4076,10 +3560,10 @@ public PollerFlux beginStartDevBoxAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4089,38 +3573,42 @@ public PollerFlux beginStartDevBoxAsync( * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginStartDevBox( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.startDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public SyncPoller beginStartDevBox(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.startDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Stops a Dev Box. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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)
@@ -4137,51 +3625,51 @@ 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. * @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 current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> stopDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Mono> stopDevBoxWithResponseAsync(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.stopDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.stopDevBox(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * Stops a Dev Box. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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)
@@ -4198,10 +3686,10 @@ private Mono> stopDevBoxWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4211,35 +3699,37 @@ private Mono> stopDevBoxWithResponseAsync( * @return the current status of an async operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopDevBoxWithResponse( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Response stopDevBoxWithResponse(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.stopDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.stopDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, requestOptions, Context.NONE); } /** * Stops a Dev Box. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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)
@@ -4256,10 +3746,10 @@ private Response stopDevBoxWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -4269,38 +3759,42 @@ private Response stopDevBoxWithResponse( * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginStopDevBoxAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.stopDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public PollerFlux beginStopDevBoxAsync(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.stopDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Stops a Dev Box. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional parameter to hibernate the dev box.
Query Parameters
NameTypeRequiredDescription
hibernateBooleanNoOptional 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)
@@ -4317,10 +3811,10 @@ public PollerFlux beginStopDevBoxAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4330,28 +3824,23 @@ public PollerFlux beginStopDevBoxAsync( * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginStopDevBox( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.stopDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public SyncPoller beginStopDevBox(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.stopDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Restarts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4368,41 +3857,32 @@ 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. * @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 current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> restartDevBoxWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Mono> restartDevBoxWithResponseAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.restartDevBox( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.restartDevBox(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * Restarts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4419,10 +3899,10 @@ private Mono> restartDevBoxWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4432,25 +3912,18 @@ private Mono> restartDevBoxWithResponseAsync( * @return the current status of an async operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response restartDevBoxWithResponse( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Response restartDevBoxWithResponse(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.restartDevBoxSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.restartDevBoxSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, accept, requestOptions, Context.NONE); } /** * Restarts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4467,10 +3940,10 @@ private Response restartDevBoxWithResponse(
      *     }
      * }
      * }
- * + * * @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. @@ -4480,28 +3953,23 @@ private Response restartDevBoxWithResponse( * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux beginRestartDevBoxAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return PollerFlux.create( - Duration.ofSeconds(1), - () -> this.restartDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), - new DefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public PollerFlux beginRestartDevBoxAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { + return PollerFlux.create(Duration.ofSeconds(1), + () -> this.restartDevBoxWithResponseAsync(projectName, userId, devBoxName, requestOptions), + new DefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * Restarts a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -4518,10 +3986,10 @@ public PollerFlux beginRestartDevBoxAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4531,38 +3999,33 @@ public PollerFlux beginRestartDevBoxAsync( * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller beginRestartDevBox( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { - return SyncPoller.createPoller( - Duration.ofSeconds(1), - () -> this.restartDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), - new SyncDefaultPollingStrategy<>( - new PollingStrategyOptions(this.getHttpPipeline()) - .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) - .setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE) - .setServiceVersion(this.getServiceVersion().getVersion())), - TypeReference.createInstance(BinaryData.class), - TypeReference.createInstance(BinaryData.class)); + public SyncPoller beginRestartDevBox(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { + return SyncPoller.createPoller(Duration.ofSeconds(1), + () -> this.restartDevBoxWithResponse(projectName, userId, devBoxName, requestOptions), + new SyncDefaultPollingStrategy<>(new PollingStrategyOptions(this.getHttpPipeline()) + .setEndpoint("{endpoint}".replace("{endpoint}", this.getEndpoint())) + .setContext(requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), + TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } /** * 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. @@ -4572,37 +4035,28 @@ public SyncPoller beginRestartDevBox( * @return rDP Connection info along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getRemoteConnectionWithResponseAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + public Mono> getRemoteConnectionWithResponseAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getRemoteConnection( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getRemoteConnection(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, userId, devBoxName, accept, requestOptions, context)); } /** * 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. @@ -4612,25 +4066,18 @@ public Mono> getRemoteConnectionWithResponseAsync( * @return rDP Connection info along with {@link Response}. */ @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) { final String accept = "application/json"; - return service.getRemoteConnectionSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - accept, - requestOptions, - Context.NONE); + return service.getRemoteConnectionSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, devBoxName, accept, requestOptions, Context.NONE); } /** * Lists actions on a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4642,10 +4089,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. @@ -4655,36 +4102,21 @@ public Response getRemoteConnectionWithResponse( * @return the actions list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDevBoxActionsSinglePageAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private Mono> listDevBoxActionsSinglePageAsync(String projectName, String userId, + String devBoxName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDevBoxActions( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - 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.listDevBoxActions(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists actions on a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4696,10 +4128,10 @@ private Mono> listDevBoxActionsSinglePageAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4709,23 +4141,20 @@ private Mono> listDevBoxActionsSinglePageAsync( * @return the actions list result as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listDevBoxActionsAsync( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + public PagedFlux listDevBoxActionsAsync(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listDevBoxActionsSinglePageAsync(projectName, userId, devBoxName, requestOptions), - nextLink -> listDevBoxActionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listDevBoxActionsSinglePageAsync(projectName, userId, devBoxName, requestOptions), + nextLink -> listDevBoxActionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists actions on a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4737,10 +4166,10 @@ public PagedFlux listDevBoxActionsAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4750,33 +4179,21 @@ public PagedFlux listDevBoxActionsAsync( * @return the actions list result along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listDevBoxActionsSinglePage( - String projectName, String userId, String devBoxName, RequestOptions requestOptions) { + private PagedResponse listDevBoxActionsSinglePage(String projectName, String userId, String devBoxName, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDevBoxActionsSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - 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.listDevBoxActionsSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, devBoxName, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists actions on a Dev Box. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4788,10 +4205,10 @@ private PagedResponse listDevBoxActionsSinglePage(
      *     }
      * }
      * }
- * + * * @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. @@ -4801,23 +4218,20 @@ private PagedResponse listDevBoxActionsSinglePage( * @return the actions list result as paginated response with {@link PagedIterable}. */ @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) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listDevBoxActionsSinglePage(projectName, userId, devBoxName, requestOptions), - nextLink -> listDevBoxActionsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listDevBoxActionsSinglePage(projectName, userId, devBoxName, requestOptions), + nextLink -> listDevBoxActionsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets an action. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4829,10 +4243,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. @@ -4843,28 +4257,19 @@ public PagedIterable listDevBoxActions( * @return an action along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getDevBoxActionWithResponseAsync( - String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) { + public Mono> getDevBoxActionWithResponseAsync(String projectName, String userId, + String devBoxName, String actionName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getDevBoxAction( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.getDevBoxAction(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, actionName, accept, requestOptions, context)); } /** * Gets an action. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4876,10 +4281,10 @@ public Mono> getDevBoxActionWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -4890,27 +4295,19 @@ public Mono> getDevBoxActionWithResponseAsync( * @return an action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDevBoxActionWithResponse( - String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) { + public Response getDevBoxActionWithResponse(String projectName, String userId, String devBoxName, + String actionName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getDevBoxActionSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - accept, - requestOptions, - Context.NONE); + return service.getDevBoxActionSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, devBoxName, actionName, accept, requestOptions, Context.NONE); } /** * 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. @@ -4921,29 +4318,20 @@ public Response getDevBoxActionWithResponse( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> skipActionWithResponseAsync( - String projectName, String userId, String devBoxName, String actionName, RequestOptions requestOptions) { + public Mono> skipActionWithResponseAsync(String projectName, String userId, String devBoxName, + String actionName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.skipAction( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.skipAction(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, actionName, accept, requestOptions, context)); } /** * 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. @@ -4954,26 +4342,18 @@ public Mono> skipActionWithResponseAsync( * @return the {@link Response}. */ @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) { final String accept = "application/json"; - return service.skipActionSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - accept, - requestOptions, - Context.NONE); + return service.skipActionSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, actionName, accept, requestOptions, Context.NONE); } /** * Delays the occurrence of an action. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -4985,10 +4365,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. @@ -4998,37 +4378,22 @@ public Response 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> delayActionWithResponseAsync( - String projectName, - String userId, - String devBoxName, - String actionName, - OffsetDateTime delayUntil, - RequestOptions requestOptions) { + public Mono> delayActionWithResponseAsync(String projectName, String userId, String devBoxName, + String actionName, OffsetDateTime delayUntil, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.delayAction( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - delayUntil, - accept, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.delayAction(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, actionName, delayUntil, accept, requestOptions, context)); } /** * Delays the occurrence of an action. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5040,10 +4405,10 @@ public Mono> delayActionWithResponseAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -5055,32 +4420,18 @@ public Mono> delayActionWithResponseAsync( * @return an action which will take place on a Dev Box along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response delayActionWithResponse( - String projectName, - String userId, - String devBoxName, - String actionName, - OffsetDateTime delayUntil, - RequestOptions requestOptions) { + public Response delayActionWithResponse(String projectName, String userId, String devBoxName, + String actionName, OffsetDateTime delayUntil, RequestOptions requestOptions) { final String accept = "application/json"; - return service.delayActionSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - actionName, - delayUntil, - accept, - requestOptions, - Context.NONE); + return service.delayActionSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, userId, + devBoxName, actionName, delayUntil, accept, requestOptions, Context.NONE); } /** * Delays all actions. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5108,10 +4459,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. @@ -5122,41 +4473,21 @@ public Response delayActionWithResponse( * @return the actions list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> delayAllActionsSinglePageAsync( - String projectName, - String userId, - String devBoxName, - OffsetDateTime delayUntil, - RequestOptions requestOptions) { + private Mono> delayAllActionsSinglePageAsync(String projectName, String userId, + String devBoxName, OffsetDateTime delayUntil, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.delayAllActions( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - delayUntil, - 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.delayAllActions(this.getEndpoint(), this.getServiceVersion().getVersion(), + projectName, userId, devBoxName, delayUntil, accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Delays all actions. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5184,10 +4515,10 @@ private Mono> delayAllActionsSinglePageAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -5198,27 +4529,21 @@ private Mono> delayAllActionsSinglePageAsync( * @return the actions list result as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux delayAllActionsAsync( - String projectName, - String userId, - String devBoxName, - OffsetDateTime delayUntil, - RequestOptions requestOptions) { + public PagedFlux delayAllActionsAsync(String projectName, String userId, String devBoxName, + OffsetDateTime delayUntil, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); return new PagedFlux<>( - () -> delayAllActionsSinglePageAsync(projectName, userId, devBoxName, delayUntil, requestOptions), - nextLink -> delayAllActionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + () -> delayAllActionsSinglePageAsync(projectName, userId, devBoxName, delayUntil, requestOptions), + nextLink -> delayAllActionsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Delays all actions. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5246,10 +4571,10 @@ public PagedFlux delayAllActionsAsync(
      *     }
      * }
      * }
- * + * * @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. @@ -5260,38 +4585,21 @@ public PagedFlux delayAllActionsAsync( * @return the actions list result along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse delayAllActionsSinglePage( - String projectName, - String userId, - String devBoxName, - OffsetDateTime delayUntil, - RequestOptions requestOptions) { + private PagedResponse delayAllActionsSinglePage(String projectName, String userId, String devBoxName, + OffsetDateTime delayUntil, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.delayAllActionsSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - userId, - devBoxName, - delayUntil, - 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.delayAllActionsSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, + userId, devBoxName, delayUntil, accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Delays all actions. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5319,10 +4627,10 @@ private PagedResponse delayAllActionsSinglePage(
      *     }
      * }
      * }
- * + * * @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. @@ -5333,27 +4641,21 @@ private PagedResponse delayAllActionsSinglePage( * @return the actions list result as paginated response with {@link PagedIterable}. */ @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) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); return new PagedIterable<>( - () -> delayAllActionsSinglePage(projectName, userId, devBoxName, delayUntil, requestOptions), - nextLink -> delayAllActionsNextSinglePage(nextLink, requestOptionsForNextPage)); + () -> delayAllActionsSinglePage(projectName, userId, devBoxName, delayUntil, requestOptions), + nextLink -> delayAllActionsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5385,9 +4687,10 @@ public PagedIterable delayAllActions(
      *     healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5396,27 +4699,21 @@ public PagedIterable delayAllActions( * @return the Pool list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPoolsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listPoolsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.listPoolsNext(nextLink, this.getEndpoint(), 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.listPoolsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5448,9 +4745,10 @@ private Mono> listPoolsNextSinglePageAsync(
      *     healthStatus: String(Unknown/Pending/Healthy/Warning/Unhealthy) (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5461,22 +4759,17 @@ private Mono> listPoolsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listPoolsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listPoolsNextSync(nextLink, this.getEndpoint(), 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.listPoolsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5486,9 +4779,10 @@ private PagedResponse listPoolsNextSinglePage(String nextLink, Reque
      *     timeZone: String (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5497,29 +4791,21 @@ private PagedResponse listPoolsNextSinglePage(String nextLink, Reque * @return the Schedule list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSchedulesNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listSchedulesNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listSchedulesNext( - nextLink, this.getEndpoint(), 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.listSchedulesNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5529,9 +4815,10 @@ private Mono> listSchedulesNextSinglePageAsync(
      *     timeZone: String (Required)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5542,22 +4829,17 @@ private Mono> listSchedulesNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSchedulesNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listSchedulesNextSync(nextLink, this.getEndpoint(), 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.listSchedulesNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5604,9 +4886,10 @@ private PagedResponse listSchedulesNextSinglePage(String nextLink, R
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5615,29 +4898,21 @@ private PagedResponse listSchedulesNextSinglePage(String nextLink, R * @return the Dev Box list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllDevBoxesNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listAllDevBoxesNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listAllDevBoxesNext( - nextLink, this.getEndpoint(), 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.listAllDevBoxesNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5684,9 +4959,10 @@ private Mono> listAllDevBoxesNextSinglePageAsync(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5697,22 +4973,17 @@ private Mono> listAllDevBoxesNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listAllDevBoxesNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAllDevBoxesNextSync(nextLink, this.getEndpoint(), 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.listAllDevBoxesNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5759,9 +5030,10 @@ private PagedResponse listAllDevBoxesNextSinglePage(String nextLink,
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5770,29 +5042,20 @@ private PagedResponse listAllDevBoxesNextSinglePage(String nextLink, * @return the Dev Box list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllDevBoxesByUserNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listAllDevBoxesByUserNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.listAllDevBoxesByUserNext( - nextLink, this.getEndpoint(), accept, requestOptions, context)) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - getValues(res.getValue(), "value"), - getNextLink(res.getValue(), "nextLink"), - null)); + context -> service.listAllDevBoxesByUserNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5839,9 +5102,10 @@ private Mono> listAllDevBoxesByUserNextSinglePageAsync
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5850,26 +5114,20 @@ private Mono> listAllDevBoxesByUserNextSinglePageAsync * @return the Dev Box list result along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listAllDevBoxesByUserNextSinglePage( - String nextLink, RequestOptions requestOptions) { + private PagedResponse listAllDevBoxesByUserNextSinglePage(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAllDevBoxesByUserNextSync( - nextLink, this.getEndpoint(), 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.listAllDevBoxesByUserNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5916,9 +5174,10 @@ private PagedResponse listAllDevBoxesByUserNextSinglePage(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -5927,28 +5186,21 @@ private PagedResponse listAllDevBoxesByUserNextSinglePage( * @return the Dev Box list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDevBoxesNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listDevBoxesNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDevBoxesNext(nextLink, this.getEndpoint(), 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.listDevBoxesNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -5995,9 +5247,10 @@ private Mono> listDevBoxesNextSinglePageAsync(
      *     localAdministrator: String(Enabled/Disabled) (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6008,22 +5261,17 @@ private Mono> listDevBoxesNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDevBoxesNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDevBoxesNextSync(nextLink, this.getEndpoint(), 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.listDevBoxesNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -6035,9 +5283,10 @@ private PagedResponse listDevBoxesNextSinglePage(String nextLink, Re
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6046,29 +5295,21 @@ private PagedResponse listDevBoxesNextSinglePage(String nextLink, Re * @return the actions list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDevBoxActionsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listDevBoxActionsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDevBoxActionsNext( - nextLink, this.getEndpoint(), 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.listDevBoxActionsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -6080,9 +5321,10 @@ private Mono> listDevBoxActionsNextSinglePageAsync(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6093,22 +5335,17 @@ private Mono> listDevBoxActionsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDevBoxActionsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDevBoxActionsNextSync(nextLink, this.getEndpoint(), 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.listDevBoxActionsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -6136,9 +5373,10 @@ private PagedResponse listDevBoxActionsNextSinglePage(String nextLin
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6147,29 +5385,21 @@ private PagedResponse listDevBoxActionsNextSinglePage(String nextLin * @return the actions list result along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> delayAllActionsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> delayAllActionsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.delayAllActionsNext( - nextLink, this.getEndpoint(), 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.delayAllActionsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -6197,9 +5427,10 @@ private Mono> delayAllActionsNextSinglePageAsync(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6210,15 +5441,10 @@ private Mono> delayAllActionsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse delayAllActionsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.delayAllActionsNextSync(nextLink, this.getEndpoint(), 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.delayAllActionsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } private List getValues(BinaryData binaryData, String path) { diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevCenterClientImpl.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevCenterClientImpl.java index 69f785871070..c752754c2de2 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevCenterClientImpl.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/DevCenterClientImpl.java @@ -41,53 +41,65 @@ import java.util.stream.Collectors; import reactor.core.publisher.Mono; -/** Initializes a new instance of the DevCenterClient type. */ +/** + * Initializes a new instance of the DevCenterClient type. + */ public final class DevCenterClientImpl { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final DevCenterClientService 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() { @@ -96,21 +108,18 @@ public SerializerAdapter getSerializerAdapter() { /** * Initializes an instance of DevCenterClient client. - * + * * @param endpoint The DevCenter-specific URI to operate on. * @param serviceVersion Service version. */ public DevCenterClientImpl(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 DevCenterClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint The DevCenter-specific URI to operate on. * @param serviceVersion Service version. @@ -121,17 +130,14 @@ public DevCenterClientImpl(HttpPipeline httpPipeline, String endpoint, DevCenter /** * Initializes an instance of DevCenterClient 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 DevCenterClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - String endpoint, - DevCenterServiceVersion serviceVersion) { + public DevCenterClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint, + DevCenterServiceVersion serviceVersion) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.endpoint = endpoint; @@ -147,138 +153,96 @@ public DevCenterClientImpl( @ServiceInterface(name = "DevCenterClient") public interface DevCenterClientService { @Get("/projects") - @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> listProjects( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listProjects(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Get("/projects") - @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 listProjectsSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listProjectsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, + RequestOptions requestOptions, Context context); @Get("/projects/{projectName}") - @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> getProject( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> getProject(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName, + @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context); @Get("/projects/{projectName}") - @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 getProjectSync( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("projectName") String projectName, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response getProjectSync(@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> listProjectsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Mono> listProjectsNext(@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 listProjectsNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, - RequestOptions requestOptions, - Context context); + Response listProjectsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, RequestOptions requestOptions, + Context context); } /** * Lists all projects. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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,53 +250,55 @@ Response listProjectsNextSync(
      *     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. * @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 project list operation along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return results of the project list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listProjectsSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listProjects( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - 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.listProjects(this.getEndpoint(), this.getServiceVersion().getVersion(), + accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Lists all projects. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -340,7 +306,7 @@ private Mono> listProjectsSinglePageAsync(RequestOptio
      *     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. @@ -352,30 +318,41 @@ private Mono> listProjectsSinglePageAsync(RequestOptio public PagedFlux listProjectsAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - () -> listProjectsSinglePageAsync(requestOptions), - nextLink -> listProjectsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listProjectsSinglePageAsync(requestOptions), + nextLink -> listProjectsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); } /** * Lists all projects. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -383,7 +360,7 @@ public PagedFlux listProjectsAsync(RequestOptions requestOptions) {
      *     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. @@ -394,38 +371,42 @@ public PagedFlux listProjectsAsync(RequestOptions requestOptions) { @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listProjectsSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listProjectsSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - 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.listProjectsSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Lists all projects. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe maximum number of resources to return from the operation. Example: 'top=10'.
Query Parameters
NameTypeRequiredDescription
filterStringNoAn OData filter clause to apply to the operation.
topIntegerNoThe 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)
@@ -433,7 +414,7 @@ private PagedResponse listProjectsSinglePage(RequestOptions requestO
      *     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. @@ -445,19 +426,16 @@ private PagedResponse listProjectsSinglePage(RequestOptions requestO public PagedIterable listProjects(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - () -> listProjectsSinglePage(requestOptions), - nextLink -> listProjectsNextSinglePage(nextLink, requestOptionsForNextPage)); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listProjectsSinglePage(requestOptions), + nextLink -> listProjectsNextSinglePage(nextLink, requestOptionsForNextPage)); } /** * Gets a project. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -465,7 +443,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. @@ -477,22 +455,15 @@ public PagedIterable listProjects(RequestOptions requestOptions) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getProjectWithResponseAsync(String projectName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getProject( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getProject(this.getEndpoint(), + this.getServiceVersion().getVersion(), projectName, accept, requestOptions, context)); } /** * Gets a project. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -500,7 +471,7 @@ public Mono> getProjectWithResponseAsync(String projectName
      *     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. @@ -512,20 +483,15 @@ public Mono> getProjectWithResponseAsync(String projectName @ServiceMethod(returns = ReturnType.SINGLE) public Response getProjectWithResponse(String projectName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getProjectSync( - this.getEndpoint(), - this.getServiceVersion().getVersion(), - projectName, - accept, - requestOptions, - Context.NONE); + return service.getProjectSync(this.getEndpoint(), this.getServiceVersion().getVersion(), projectName, accept, + requestOptions, Context.NONE); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -533,40 +499,34 @@ public Response getProjectWithResponse(String projectName, RequestOp
      *     maxDevBoxesPerUser: Integer (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 project list operation along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return results of the project list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listProjectsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listProjectsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listProjectsNext(nextLink, this.getEndpoint(), 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.listProjectsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     name: String (Required)
@@ -574,9 +534,10 @@ private Mono> listProjectsNextSinglePageAsync(
      *     maxDevBoxesPerUser: Integer (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -587,15 +548,10 @@ private Mono> listProjectsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listProjectsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listProjectsNextSync(nextLink, this.getEndpoint(), 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.listProjectsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } private List getValues(BinaryData binaryData, String path) { diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/package-info.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/package-info.java index 312abc42c919..c0a205602d2d 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/package-info.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/implementation/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. -/** Package containing the implementations for DevCenterService. DevCenter service. */ +/** + * Package containing the implementations for DevCenterService. + * DevCenter service. + */ package com.azure.developer.devcenter.implementation; diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/package-info.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/package-info.java index 1898aa635881..75a93fa8040a 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/package-info.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. -/** Package containing the classes for DevCenterService. DevCenter service. */ +/** + * Package containing the classes for DevCenterService. + * DevCenter service. + */ package com.azure.developer.devcenter; diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/DevCenterClientTestBase.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/DevCenterClientTestBase.java index fd6b3a66a35b..7ccebc23e01a 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/DevCenterClientTestBase.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/DevCenterClientTestBase.java @@ -34,58 +34,51 @@ class DevCenterClientTestBase extends TestProxyTestBase { @Override protected void beforeTest() { - DevCenterClientBuilder devCenterClientbuilder = - new DevCenterClientBuilder() - .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + DevCenterClientBuilder devCenterClientbuilder + = new DevCenterClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); if (getTestMode() == TestMode.PLAYBACK) { - devCenterClientbuilder - .httpClient(interceptorManager.getPlaybackClient()) - .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + devCenterClientbuilder.httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); } else if (getTestMode() == TestMode.RECORD) { - devCenterClientbuilder - .addPolicy(interceptorManager.getRecordPolicy()) - .credential(new DefaultAzureCredentialBuilder().build()); + devCenterClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); } else if (getTestMode() == TestMode.LIVE) { devCenterClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); } devCenterClient = devCenterClientbuilder.buildClient(); - DevBoxesClientBuilder devBoxesClientbuilder = - new DevBoxesClientBuilder() - .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + DevBoxesClientBuilder devBoxesClientbuilder + = new DevBoxesClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); if (getTestMode() == TestMode.PLAYBACK) { - devBoxesClientbuilder - .httpClient(interceptorManager.getPlaybackClient()) - .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + devBoxesClientbuilder.httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); } else if (getTestMode() == TestMode.RECORD) { - devBoxesClientbuilder - .addPolicy(interceptorManager.getRecordPolicy()) - .credential(new DefaultAzureCredentialBuilder().build()); + devBoxesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); } else if (getTestMode() == TestMode.LIVE) { devBoxesClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); } devBoxesClient = devBoxesClientbuilder.buildClient(); - DeploymentEnvironmentsClientBuilder deploymentEnvironmentsClientbuilder = - new DeploymentEnvironmentsClientBuilder() - .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + DeploymentEnvironmentsClientBuilder deploymentEnvironmentsClientbuilder + = new DeploymentEnvironmentsClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); if (getTestMode() == TestMode.PLAYBACK) { - deploymentEnvironmentsClientbuilder - .httpClient(interceptorManager.getPlaybackClient()) - .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + deploymentEnvironmentsClientbuilder.httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); } else if (getTestMode() == TestMode.RECORD) { - deploymentEnvironmentsClientbuilder - .addPolicy(interceptorManager.getRecordPolicy()) - .credential(new DefaultAzureCredentialBuilder().build()); + deploymentEnvironmentsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); } else if (getTestMode() == TestMode.LIVE) { deploymentEnvironmentsClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); } deploymentEnvironmentsClient = deploymentEnvironmentsClientbuilder.buildClient(); + } } diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmAsyncClient.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmAsyncClient.java index ae269a8b779f..ccc362f9ad20 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmAsyncClient.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmAsyncClient.java @@ -40,11 +40,14 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the asynchronous EasmClient type. */ +/** + * Initializes a new instance of the asynchronous EasmClient type. + */ @ServiceClient(builder = EasmClientBuilder.class, isAsync = true) public final class EasmAsyncClient { - @Generated private final EasmClientImpl serviceClient; + @Generated + private final EasmClientImpl serviceClient; /** * Initializes an instance of EasmAsyncClient class. @@ -59,21 +62,54 @@ public final class EasmAsyncClient { /** * Retrieve a list of assets for the provided search parameters. * - *

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -113,32 +149,21 @@ public final class EasmAsyncClient {
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listAssetResource(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listAssetResourceAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Update labels on assets matching the provided filter.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
@@ -149,9 +174,9 @@ public PagedFlux listAssetResource(RequestOptions requestOptions) {
      *     transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -178,16 +203,16 @@ public PagedFlux listAssetResource(RequestOptions requestOptions) {
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> updateAssetsWithResponse(
-            String filter, BinaryData assetUpdateData, RequestOptions requestOptions) {
+    public Mono> updateAssetsWithResponse(String filter, BinaryData assetUpdateData,
+        RequestOptions requestOptions) {
         return this.serviceClient.updateAssetsWithResponseAsync(filter, assetUpdateData, requestOptions);
     }
 
     /**
      * Retrieve an asset by assetId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -222,8 +247,8 @@ public Mono> updateAssetsWithResponse(
      * @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 items in the current page of results along with {@link Response} on successful completion of {@link
-     *     Mono}.
+     * @return the items in the current page of results along with {@link Response} on successful completion of
+     * {@link Mono}.
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
@@ -234,18 +259,35 @@ public Mono> getAssetResourceWithResponse(String assetId, R
     /**
      * Retrieve a list of data connections.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -273,32 +315,21 @@ public Mono> getAssetResourceWithResponse(String assetId, R
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listDataConnection(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listDataConnectionAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Validate a data connection with a given dataConnectionName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -307,9 +338,9 @@ public PagedFlux listDataConnection(RequestOptions requestOptions) {
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -337,16 +368,16 @@ public PagedFlux listDataConnection(RequestOptions requestOptions) {
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> validateDataConnectionWithResponse(
-            BinaryData dataConnectionData, RequestOptions requestOptions) {
+    public Mono> validateDataConnectionWithResponse(BinaryData dataConnectionData,
+        RequestOptions requestOptions) {
         return this.serviceClient.validateDataConnectionWithResponseAsync(dataConnectionData, requestOptions);
     }
 
     /**
      * Retrieve a data connection with a given dataConnectionName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -373,16 +404,16 @@ public Mono> validateDataConnectionWithResponse(
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> getDataConnectionWithResponse(
-            String dataConnectionName, RequestOptions requestOptions) {
+    public Mono> getDataConnectionWithResponse(String dataConnectionName,
+        RequestOptions requestOptions) {
         return this.serviceClient.getDataConnectionWithResponseAsync(dataConnectionName, requestOptions);
     }
 
     /**
      * Create or replace a data connection with a given dataConnectionName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -391,9 +422,9 @@ public Mono> getDataConnectionWithResponse(
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -421,10 +452,10 @@ public Mono> getDataConnectionWithResponse(
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> createOrReplaceDataConnectionWithResponse(
-            String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) {
-        return this.serviceClient.createOrReplaceDataConnectionWithResponseAsync(
-                dataConnectionName, dataConnectionData, requestOptions);
+    public Mono> createOrReplaceDataConnectionWithResponse(String dataConnectionName,
+        BinaryData dataConnectionData, RequestOptions requestOptions) {
+        return this.serviceClient.createOrReplaceDataConnectionWithResponseAsync(dataConnectionName, dataConnectionData,
+            requestOptions);
     }
 
     /**
@@ -440,27 +471,49 @@ public Mono> createOrReplaceDataConnectionWithResponse(
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> deleteDataConnectionWithResponse(
-            String dataConnectionName, RequestOptions requestOptions) {
+    public Mono> deleteDataConnectionWithResponse(String dataConnectionName,
+        RequestOptions requestOptions) {
         return this.serviceClient.deleteDataConnectionWithResponseAsync(dataConnectionName, requestOptions);
     }
 
     /**
      * Retrieve a list of discovery group for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -514,32 +567,21 @@ public Mono> deleteDataConnectionWithResponse(
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listDiscoGroup(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listDiscoGroupAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Validate a discovery group with a given groupName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -561,9 +603,9 @@ public PagedFlux listDiscoGroup(RequestOptions requestOptions) {
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -591,16 +633,16 @@ public PagedFlux listDiscoGroup(RequestOptions requestOptions) {
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> validateDiscoGroupWithResponse(
-            BinaryData discoGroupData, RequestOptions requestOptions) {
+    public Mono> validateDiscoGroupWithResponse(BinaryData discoGroupData,
+        RequestOptions requestOptions) {
         return this.serviceClient.validateDiscoGroupWithResponseAsync(discoGroupData, requestOptions);
     }
 
     /**
      * Retrieve a discovery group with a given groupName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -659,9 +701,9 @@ public Mono> getDiscoGroupWithResponse(String groupName, Re
 
     /**
      * Create a discovery group with a given groupName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -683,9 +725,9 @@ public Mono> getDiscoGroupWithResponse(String groupName, Re
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -739,8 +781,8 @@ public Mono> getDiscoGroupWithResponse(String groupName, Re
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> createOrReplaceDiscoGroupWithResponse(
-            String groupName, BinaryData discoGroupData, RequestOptions requestOptions) {
+    public Mono> createOrReplaceDiscoGroupWithResponse(String groupName, BinaryData discoGroupData,
+        RequestOptions requestOptions) {
         return this.serviceClient.createOrReplaceDiscoGroupWithResponseAsync(groupName, discoGroupData, requestOptions);
     }
 
@@ -764,19 +806,41 @@ public Mono> runDiscoGroupWithResponse(String groupName, RequestO
     /**
      * Retrieve a list of disco templates for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -810,32 +874,21 @@ public Mono> runDiscoGroupWithResponse(String groupName, RequestO
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listDiscoTemplate(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listDiscoTemplateAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Retrieve a disco template with a given templateId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -864,8 +917,8 @@ public PagedFlux listDiscoTemplate(RequestOptions requestOptions) {
      * @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 items in the current page of results along with {@link Response} on successful completion of {@link
-     *     Mono}.
+     * @return the items in the current page of results along with {@link Response} on successful completion of
+     * {@link Mono}.
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
@@ -875,9 +928,9 @@ public Mono> getDiscoTemplateWithResponse(String templateId
 
     /**
      * Get billable assets summary for the workspace.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -900,8 +953,8 @@ public Mono> getDiscoTemplateWithResponse(String templateId
      * @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 billable assets summary for the workspace along with {@link Response} on successful completion of {@link
-     *     Mono}.
+     * @return billable assets summary for the workspace along with {@link Response} on successful completion of
+     * {@link Mono}.
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
@@ -911,9 +964,9 @@ public Mono> getBillableWithResponse(RequestOptions request
 
     /**
      * Get the most recent snapshot of asset summary values for the snapshot request.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metric: String (Optional)
@@ -922,9 +975,9 @@ public Mono> getBillableWithResponse(RequestOptions request
      *     page: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     displayName: String (Optional)
@@ -974,20 +1027,20 @@ public Mono> getBillableWithResponse(RequestOptions request
      * @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 most recent snapshot of asset summary values for the snapshot request along with {@link Response} on
-     *     successful completion of {@link Mono}.
+     * successful completion of {@link Mono}.
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> getSnapshotWithResponse(
-            BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) {
+    public Mono> getSnapshotWithResponse(BinaryData reportAssetSnapshotRequest,
+        RequestOptions requestOptions) {
         return this.serviceClient.getSnapshotWithResponseAsync(reportAssetSnapshotRequest, requestOptions);
     }
 
     /**
      * Get asset summary details for the summary request.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metricCategories (Optional): [
@@ -1004,9 +1057,9 @@ public Mono> getSnapshotWithResponse(
      *     labelName: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -1029,38 +1082,60 @@ public Mono> getSnapshotWithResponse(
      * }
* * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one - * collection of summary identifiers must be provided: filters, metrics, or metricCategories. + * collection of summary identifiers must be provided: filters, metrics, or metricCategories. * @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. * @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 asset summary details for the summary request along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSummaryWithResponse( - BinaryData reportAssetSummaryRequest, RequestOptions requestOptions) { + public Mono> getSummaryWithResponse(BinaryData reportAssetSummaryRequest, + RequestOptions requestOptions) { return this.serviceClient.getSummaryWithResponseAsync(reportAssetSummaryRequest, requestOptions); } /** * Retrieve a list of saved filters for the provided search parameters. * - *

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -1082,32 +1157,21 @@ public Mono> getSummaryWithResponse(
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listSavedFilter(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listSavedFilterAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Retrieve a saved filter by filterName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1134,18 +1198,18 @@ public Mono> getSavedFilterWithResponse(String filterName,
 
     /**
      * Create or replace a saved filter with a given filterName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     filter: String (Required)
      *     description: String (Required)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1167,10 +1231,10 @@ public Mono> getSavedFilterWithResponse(String filterName,
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono> createOrReplaceSavedFilterWithResponse(
-            String filterName, BinaryData savedFilterData, RequestOptions requestOptions) {
-        return this.serviceClient.createOrReplaceSavedFilterWithResponseAsync(
-                filterName, savedFilterData, requestOptions);
+    public Mono> createOrReplaceSavedFilterWithResponse(String filterName,
+        BinaryData savedFilterData, RequestOptions requestOptions) {
+        return this.serviceClient.createOrReplaceSavedFilterWithResponseAsync(filterName, savedFilterData,
+            requestOptions);
     }
 
     /**
@@ -1193,20 +1257,47 @@ public Mono> deleteSavedFilterWithResponse(String filterName, Req
     /**
      * Retrieve a list of tasks for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -1233,32 +1324,21 @@ public Mono> deleteSavedFilterWithResponse(String filterName, Req
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listTask(RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listTaskAsync(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
      * Retrieve a task by taskId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1290,9 +1370,9 @@ public Mono> getTaskWithResponse(String taskId, RequestOpti
 
     /**
      * Cancel a task by taskId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1329,7 +1409,7 @@ public Mono> cancelTaskWithResponse(String taskId, RequestO
      * @param orderBy A list of expressions that specify the order of the returned resources.
      * @param skip The number of result items to skip.
      * @param mark Specify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and
-     *     subsequent values are returned in the response.
+     * subsequent values are returned in the response.
      * @throws IllegalArgumentException thrown if parameters fail the validation.
      * @throws HttpResponseException thrown if the request is rejected by server.
      * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1356,28 +1436,16 @@ public PagedFlux listAssetResource(String filter, String orderBy,
             requestOptions.addQueryParam("mark", mark, false);
         }
         PagedFlux pagedFluxResponse = listAssetResource(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    AssetResource.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(AssetResource.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1396,28 +1464,16 @@ public PagedFlux listAssetResource() {
         // Generated convenience method for listAssetResource
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listAssetResource(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    AssetResource.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(AssetResource.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1438,8 +1494,7 @@ public Mono updateAssets(String filter, AssetUpdateData assetUpdateData) {
         // Generated convenience method for updateAssetsWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return updateAssetsWithResponse(filter, BinaryData.fromObject(assetUpdateData), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
+            .flatMap(FluxUtil::toMono).map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
     }
 
     /**
@@ -1458,9 +1513,8 @@ public Mono updateAssets(String filter, AssetUpdateData assetUpdateData) {
     public Mono getAssetResource(String assetId) {
         // Generated convenience method for getAssetResourceWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getAssetResourceWithResponse(assetId, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(AssetResource.class));
+        return getAssetResourceWithResponse(assetId, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(AssetResource.class));
     }
 
     /**
@@ -1483,28 +1537,16 @@ public PagedFlux listDataConnection(Integer skip) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listDataConnection(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DataConnection.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DataConnection.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1522,28 +1564,16 @@ public PagedFlux listDataConnection() {
         // Generated convenience method for listDataConnection
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listDataConnection(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DataConnection.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DataConnection.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1563,8 +1593,8 @@ public Mono validateDataConnection(DataConnectionData dataConnec
         // Generated convenience method for validateDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return validateDataConnectionWithResponse(BinaryData.fromObject(dataConnectionData), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ValidateResult.class));
+            .flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ValidateResult.class));
     }
 
     /**
@@ -1583,9 +1613,8 @@ public Mono validateDataConnection(DataConnectionData dataConnec
     public Mono getDataConnection(String dataConnectionName) {
         // Generated convenience method for getDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getDataConnectionWithResponse(dataConnectionName, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DataConnection.class));
+        return getDataConnectionWithResponse(dataConnectionName, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DataConnection.class));
     }
 
     /**
@@ -1602,13 +1631,12 @@ public Mono getDataConnection(String dataConnectionName) {
      * @return the response body on successful completion of {@link Mono}.
      */
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Mono createOrReplaceDataConnection(
-            String dataConnectionName, DataConnectionData dataConnectionData) {
+    public Mono createOrReplaceDataConnection(String dataConnectionName,
+        DataConnectionData dataConnectionData) {
         // Generated convenience method for createOrReplaceDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return createOrReplaceDataConnectionWithResponse(
-                        dataConnectionName, BinaryData.fromObject(dataConnectionData), requestOptions)
-                .flatMap(FluxUtil::toMono)
+        return createOrReplaceDataConnectionWithResponse(dataConnectionName, BinaryData.fromObject(dataConnectionData),
+            requestOptions).flatMap(FluxUtil::toMono)
                 .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DataConnection.class));
     }
 
@@ -1657,28 +1685,16 @@ public PagedFlux listDiscoGroup(String filter, Integer skip) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listDiscoGroup(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoGroup.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoGroup.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1696,28 +1712,16 @@ public PagedFlux listDiscoGroup() {
         // Generated convenience method for listDiscoGroup
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listDiscoGroup(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoGroup.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoGroup.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1737,8 +1741,8 @@ public Mono validateDiscoGroup(DiscoGroupData discoGroupData) {
         // Generated convenience method for validateDiscoGroupWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return validateDiscoGroupWithResponse(BinaryData.fromObject(discoGroupData), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ValidateResult.class));
+            .flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ValidateResult.class));
     }
 
     /**
@@ -1757,9 +1761,8 @@ public Mono validateDiscoGroup(DiscoGroupData discoGroupData) {
     public Mono getDiscoGroup(String groupName) {
         // Generated convenience method for getDiscoGroupWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getDiscoGroupWithResponse(groupName, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoGroup.class));
+        return getDiscoGroupWithResponse(groupName, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoGroup.class));
     }
 
     /**
@@ -1780,8 +1783,8 @@ public Mono createOrReplaceDiscoGroup(String groupName, DiscoGroupDa
         // Generated convenience method for createOrReplaceDiscoGroupWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return createOrReplaceDiscoGroupWithResponse(groupName, BinaryData.fromObject(discoGroupData), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoGroup.class));
+            .flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoGroup.class));
     }
 
     /**
@@ -1822,28 +1825,16 @@ public PagedFlux listRuns(String groupName) {
         // Generated convenience method for listRuns
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listRuns(groupName, requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoRunResult.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoRunResult.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1870,28 +1861,16 @@ public PagedFlux listDiscoTemplate(String filter, Integer skip) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listDiscoTemplate(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoTemplate.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoTemplate.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1909,28 +1888,16 @@ public PagedFlux listDiscoTemplate() {
         // Generated convenience method for listDiscoTemplate
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listDiscoTemplate(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoTemplate.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoTemplate.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -1949,9 +1916,8 @@ public PagedFlux listDiscoTemplate() {
     public Mono getDiscoTemplate(String templateId) {
         // Generated convenience method for getDiscoTemplateWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getDiscoTemplateWithResponse(templateId, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoTemplate.class));
+        return getDiscoTemplateWithResponse(templateId, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(DiscoTemplate.class));
     }
 
     /**
@@ -1968,11 +1934,8 @@ public Mono getDiscoTemplate(String templateId) {
     public Mono getBillable() {
         // Generated convenience method for getBillableWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getBillableWithResponse(requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(
-                        protocolMethodData ->
-                                cleanUp(protocolMethodData).toObject(ReportBillableAssetSummaryResult.class));
+        return getBillableWithResponse(requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ReportBillableAssetSummaryResult.class));
     }
 
     /**
@@ -1986,22 +1949,22 @@ public Mono getBillable() {
      * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
      * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
      * @return the most recent snapshot of asset summary values for the snapshot request on successful completion of
-     *     {@link Mono}.
+     * {@link Mono}.
      */
     @ServiceMethod(returns = ReturnType.SINGLE)
     public Mono getSnapshot(ReportAssetSnapshotRequest reportAssetSnapshotRequest) {
         // Generated convenience method for getSnapshotWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return getSnapshotWithResponse(BinaryData.fromObject(reportAssetSnapshotRequest), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ReportAssetSnapshotResult.class));
+            .flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ReportAssetSnapshotResult.class));
     }
 
     /**
      * Get asset summary details for the summary request.
      *
      * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one
-     *     collection of summary identifiers must be provided: filters, metrics, or metricCategories.
+     * collection of summary identifiers must be provided: filters, metrics, or metricCategories.
      * @throws IllegalArgumentException thrown if parameters fail the validation.
      * @throws HttpResponseException thrown if the request is rejected by server.
      * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -2015,8 +1978,8 @@ public Mono getSummary(ReportAssetSummaryRequest repor
         // Generated convenience method for getSummaryWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return getSummaryWithResponse(BinaryData.fromObject(reportAssetSummaryRequest), requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ReportAssetSummaryResult.class));
+            .flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(ReportAssetSummaryResult.class));
     }
 
     /**
@@ -2044,28 +2007,16 @@ public PagedFlux listSavedFilter(String filter, Integer skip) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listSavedFilter(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    SavedFilter.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(SavedFilter.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -2084,28 +2035,16 @@ public PagedFlux listSavedFilter() {
         // Generated convenience method for listSavedFilter
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listSavedFilter(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    SavedFilter.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(SavedFilter.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -2124,9 +2063,8 @@ public PagedFlux listSavedFilter() {
     public Mono getSavedFilter(String filterName) {
         // Generated convenience method for getSavedFilterWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getSavedFilterWithResponse(filterName, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(SavedFilter.class));
+        return getSavedFilterWithResponse(filterName, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(SavedFilter.class));
     }
 
     /**
@@ -2146,9 +2084,8 @@ public Mono getSavedFilter(String filterName) {
     public Mono createOrReplaceSavedFilter(String filterName, SavedFilterData savedFilterData) {
         // Generated convenience method for createOrReplaceSavedFilterWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return createOrReplaceSavedFilterWithResponse(
-                        filterName, BinaryData.fromObject(savedFilterData), requestOptions)
-                .flatMap(FluxUtil::toMono)
+        return createOrReplaceSavedFilterWithResponse(filterName, BinaryData.fromObject(savedFilterData),
+            requestOptions).flatMap(FluxUtil::toMono)
                 .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(SavedFilter.class));
     }
 
@@ -2201,27 +2138,14 @@ public PagedFlux listTask(String filter, String orderBy, Integer skip) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listTask(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(Task.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(Task.class)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -2240,27 +2164,14 @@ public PagedFlux listTask() {
         // Generated convenience method for listTask
         RequestOptions requestOptions = new RequestOptions();
         PagedFlux pagedFluxResponse = listTask(requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(Task.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(Task.class)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -2279,9 +2190,8 @@ public PagedFlux listTask() {
     public Mono getTask(String taskId) {
         // Generated convenience method for getTaskWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return getTaskWithResponse(taskId, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
+        return getTaskWithResponse(taskId, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
     }
 
     /**
@@ -2300,9 +2210,8 @@ public Mono getTask(String taskId) {
     public Mono cancelTask(String taskId) {
         // Generated convenience method for cancelTaskWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return cancelTaskWithResponse(taskId, requestOptions)
-                .flatMap(FluxUtil::toMono)
-                .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
+        return cancelTaskWithResponse(taskId, requestOptions).flatMap(FluxUtil::toMono)
+            .map(protocolMethodData -> cleanUp(protocolMethodData).toObject(Task.class));
     }
 
     private BinaryData cleanUp(BinaryData input) {
@@ -2312,19 +2221,41 @@ private BinaryData cleanUp(BinaryData input) {
     /**
      * Retrieve a collection of discovery run results for a discovery group with a given groupName.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -2360,25 +2291,14 @@ private BinaryData cleanUp(BinaryData input) {
     @ServiceMethod(returns = ReturnType.COLLECTION)
     public PagedFlux listRuns(String groupName, RequestOptions requestOptions) {
         PagedFlux pagedFluxResponse = this.serviceClient.listRunsAsync(groupName, requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(protocolMethodData -> cleanUp(protocolMethodData))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(), pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> cleanUp(protocolMethodData)).collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 
     /**
@@ -2407,27 +2327,15 @@ public PagedFlux listRuns(String groupName, String filter, Integ
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
         PagedFlux pagedFluxResponse = listRuns(groupName, requestOptions);
-        return PagedFlux.create(
-                () ->
-                        (continuationToken, pageSize) -> {
-                            Flux> flux =
-                                    (continuationToken == null)
-                                            ? pagedFluxResponse.byPage().take(1)
-                                            : pagedFluxResponse.byPage(continuationToken).take(1);
-                            return flux.map(
-                                    pagedResponse ->
-                                            new PagedResponseBase(
-                                                    pagedResponse.getRequest(),
-                                                    pagedResponse.getStatusCode(),
-                                                    pagedResponse.getHeaders(),
-                                                    pagedResponse.getValue().stream()
-                                                            .map(
-                                                                    protocolMethodData ->
-                                                                            protocolMethodData.toObject(
-                                                                                    DiscoRunResult.class))
-                                                            .collect(Collectors.toList()),
-                                                    pagedResponse.getContinuationToken(),
-                                                    null));
-                        });
+        return PagedFlux.create(() -> (continuationToken, pageSize) -> {
+            Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+                : pagedFluxResponse.byPage(continuationToken).take(1);
+            return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
+                pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+                pagedResponse.getValue().stream()
+                    .map(protocolMethodData -> protocolMethodData.toObject(DiscoRunResult.class))
+                    .collect(Collectors.toList()),
+                pagedResponse.getContinuationToken(), null));
+        });
     }
 }
diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClient.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClient.java
index 6173fee32f64..e1333204f84f 100644
--- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClient.java
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClient.java
@@ -34,11 +34,14 @@
 import com.azure.core.http.rest.Response;
 import com.azure.core.util.BinaryData;
 
-/** Initializes a new instance of the synchronous EasmClient type. */
+/**
+ * Initializes a new instance of the synchronous EasmClient type.
+ */
 @ServiceClient(builder = EasmClientBuilder.class)
 public final class EasmClient {
 
-    @Generated private final EasmClientImpl serviceClient;
+    @Generated
+    private final EasmClientImpl serviceClient;
 
     /**
      * Initializes an instance of EasmClient class.
@@ -53,21 +56,54 @@ public final class EasmClient {
     /**
      * Retrieve a list of assets for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -111,9 +147,9 @@ public PagedIterable listAssetResource(RequestOptions requestOptions
 
     /**
      * Update labels on assets matching the provided filter.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
@@ -124,9 +160,9 @@ public PagedIterable listAssetResource(RequestOptions requestOptions
      *     transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -153,16 +189,16 @@ public PagedIterable listAssetResource(RequestOptions requestOptions
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response updateAssetsWithResponse(
-            String filter, BinaryData assetUpdateData, RequestOptions requestOptions) {
+    public Response updateAssetsWithResponse(String filter, BinaryData assetUpdateData,
+        RequestOptions requestOptions) {
         return this.serviceClient.updateAssetsWithResponse(filter, assetUpdateData, requestOptions);
     }
 
     /**
      * Retrieve an asset by assetId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -208,18 +244,35 @@ public Response getAssetResourceWithResponse(String assetId, Request
     /**
      * Retrieve a list of data connections.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -251,9 +304,9 @@ public PagedIterable listDataConnection(RequestOptions requestOption
 
     /**
      * Validate a data connection with a given dataConnectionName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -262,9 +315,9 @@ public PagedIterable listDataConnection(RequestOptions requestOption
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -292,16 +345,16 @@ public PagedIterable listDataConnection(RequestOptions requestOption
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response validateDataConnectionWithResponse(
-            BinaryData dataConnectionData, RequestOptions requestOptions) {
+    public Response validateDataConnectionWithResponse(BinaryData dataConnectionData,
+        RequestOptions requestOptions) {
         return this.serviceClient.validateDataConnectionWithResponse(dataConnectionData, requestOptions);
     }
 
     /**
      * Retrieve a data connection with a given dataConnectionName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -328,16 +381,16 @@ public Response validateDataConnectionWithResponse(
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response getDataConnectionWithResponse(
-            String dataConnectionName, RequestOptions requestOptions) {
+    public Response getDataConnectionWithResponse(String dataConnectionName,
+        RequestOptions requestOptions) {
         return this.serviceClient.getDataConnectionWithResponse(dataConnectionName, requestOptions);
     }
 
     /**
      * Create or replace a data connection with a given dataConnectionName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -346,9 +399,9 @@ public Response getDataConnectionWithResponse(
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -376,10 +429,10 @@ public Response getDataConnectionWithResponse(
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response createOrReplaceDataConnectionWithResponse(
-            String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) {
-        return this.serviceClient.createOrReplaceDataConnectionWithResponse(
-                dataConnectionName, dataConnectionData, requestOptions);
+    public Response createOrReplaceDataConnectionWithResponse(String dataConnectionName,
+        BinaryData dataConnectionData, RequestOptions requestOptions) {
+        return this.serviceClient.createOrReplaceDataConnectionWithResponse(dataConnectionName, dataConnectionData,
+            requestOptions);
     }
 
     /**
@@ -401,9 +454,9 @@ public Response deleteDataConnectionWithResponse(String dataConnectionName
 
     /**
      * Validate a discovery group with a given groupName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -425,9 +478,9 @@ public Response deleteDataConnectionWithResponse(String dataConnectionName
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -455,16 +508,16 @@ public Response deleteDataConnectionWithResponse(String dataConnectionName
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response validateDiscoGroupWithResponse(
-            BinaryData discoGroupData, RequestOptions requestOptions) {
+    public Response validateDiscoGroupWithResponse(BinaryData discoGroupData,
+        RequestOptions requestOptions) {
         return this.serviceClient.validateDiscoGroupWithResponse(discoGroupData, requestOptions);
     }
 
     /**
      * Retrieve a discovery group with a given groupName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -523,9 +576,9 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO
 
     /**
      * Create a discovery group with a given groupName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -547,9 +600,9 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -603,8 +656,8 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response createOrReplaceDiscoGroupWithResponse(
-            String groupName, BinaryData discoGroupData, RequestOptions requestOptions) {
+    public Response createOrReplaceDiscoGroupWithResponse(String groupName, BinaryData discoGroupData,
+        RequestOptions requestOptions) {
         return this.serviceClient.createOrReplaceDiscoGroupWithResponse(groupName, discoGroupData, requestOptions);
     }
 
@@ -628,19 +681,41 @@ public Response runDiscoGroupWithResponse(String groupName, RequestOptions
     /**
      * Retrieve a collection of discovery run results for a discovery group with a given groupName.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -681,19 +756,41 @@ public PagedIterable listRuns(String groupName, RequestOptions reque
     /**
      * Retrieve a list of disco templates for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -731,9 +828,9 @@ public PagedIterable listDiscoTemplate(RequestOptions requestOptions
 
     /**
      * Retrieve a disco template with a given templateId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -772,9 +869,9 @@ public Response getDiscoTemplateWithResponse(String templateId, Requ
 
     /**
      * Get billable assets summary for the workspace.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -807,9 +904,9 @@ public Response getBillableWithResponse(RequestOptions requestOption
 
     /**
      * Get the most recent snapshot of asset summary values for the snapshot request.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metric: String (Optional)
@@ -818,9 +915,9 @@ public Response getBillableWithResponse(RequestOptions requestOption
      *     page: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     displayName: String (Optional)
@@ -873,16 +970,16 @@ public Response getBillableWithResponse(RequestOptions requestOption
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response getSnapshotWithResponse(
-            BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) {
+    public Response getSnapshotWithResponse(BinaryData reportAssetSnapshotRequest,
+        RequestOptions requestOptions) {
         return this.serviceClient.getSnapshotWithResponse(reportAssetSnapshotRequest, requestOptions);
     }
 
     /**
      * Get asset summary details for the summary request.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metricCategories (Optional): [
@@ -899,9 +996,9 @@ public Response getSnapshotWithResponse(
      *     labelName: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -924,7 +1021,7 @@ public Response getSnapshotWithResponse(
      * }
* * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one - * collection of summary identifiers must be provided: filters, metrics, or metricCategories. + * collection of summary identifiers must be provided: filters, metrics, or metricCategories. * @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. @@ -934,27 +1031,49 @@ public Response getSnapshotWithResponse( */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSummaryWithResponse( - BinaryData reportAssetSummaryRequest, RequestOptions requestOptions) { + public Response getSummaryWithResponse(BinaryData reportAssetSummaryRequest, + RequestOptions requestOptions) { return this.serviceClient.getSummaryWithResponse(reportAssetSummaryRequest, requestOptions); } /** * Retrieve a list of saved filters for the provided search parameters. * - *

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -980,9 +1099,9 @@ public PagedIterable listSavedFilter(RequestOptions requestOptions)
 
     /**
      * Retrieve a saved filter by filterName.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1009,18 +1128,18 @@ public Response getSavedFilterWithResponse(String filterName, Reques
 
     /**
      * Create or replace a saved filter with a given filterName.
-     *
-     * 

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     filter: String (Required)
      *     description: String (Required)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -1042,8 +1161,8 @@ public Response getSavedFilterWithResponse(String filterName, Reques
      */
     @Generated
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public Response createOrReplaceSavedFilterWithResponse(
-            String filterName, BinaryData savedFilterData, RequestOptions requestOptions) {
+    public Response createOrReplaceSavedFilterWithResponse(String filterName, BinaryData savedFilterData,
+        RequestOptions requestOptions) {
         return this.serviceClient.createOrReplaceSavedFilterWithResponse(filterName, savedFilterData, requestOptions);
     }
 
@@ -1067,20 +1186,47 @@ public Response deleteSavedFilterWithResponse(String filterName, RequestOp
     /**
      * Retrieve a list of tasks for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -1111,9 +1257,9 @@ public PagedIterable listTask(RequestOptions requestOptions) {
 
     /**
      * Retrieve a task by taskId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1145,9 +1291,9 @@ public Response getTaskWithResponse(String taskId, RequestOptions re
 
     /**
      * Cancel a task by taskId.
-     *
-     * 

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1191,9 +1337,8 @@ public Response cancelTaskWithResponse(String taskId, RequestOptions
     public PagedIterable listAssetResource() {
         // Generated convenience method for listAssetResource
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listAssetResource(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(AssetResource.class));
+        return serviceClient.listAssetResource(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(AssetResource.class));
     }
 
     /**
@@ -1214,8 +1359,7 @@ public Task updateAssets(String filter, AssetUpdateData assetUpdateData) {
         // Generated convenience method for updateAssetsWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        updateAssetsWithResponse(filter, BinaryData.fromObject(assetUpdateData), requestOptions)
-                                .getValue())
+            updateAssetsWithResponse(filter, BinaryData.fromObject(assetUpdateData), requestOptions).getValue())
                 .toObject(Task.class);
     }
 
@@ -1252,9 +1396,8 @@ public AssetResource getAssetResource(String assetId) {
     public PagedIterable listDataConnection() {
         // Generated convenience method for listDataConnection
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listDataConnection(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DataConnection.class));
+        return serviceClient.listDataConnection(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DataConnection.class));
     }
 
     /**
@@ -1274,8 +1417,7 @@ public ValidateResult validateDataConnection(DataConnectionData dataConnectionDa
         // Generated convenience method for validateDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        validateDataConnectionWithResponse(BinaryData.fromObject(dataConnectionData), requestOptions)
-                                .getValue())
+            validateDataConnectionWithResponse(BinaryData.fromObject(dataConnectionData), requestOptions).getValue())
                 .toObject(ValidateResult.class);
     }
 
@@ -1296,7 +1438,7 @@ public DataConnection getDataConnection(String dataConnectionName) {
         // Generated convenience method for getDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(getDataConnectionWithResponse(dataConnectionName, requestOptions).getValue())
-                .toObject(DataConnection.class);
+            .toObject(DataConnection.class);
     }
 
     /**
@@ -1313,15 +1455,12 @@ public DataConnection getDataConnection(String dataConnectionName) {
      * @return the response.
      */
     @ServiceMethod(returns = ReturnType.SINGLE)
-    public DataConnection createOrReplaceDataConnection(
-            String dataConnectionName, DataConnectionData dataConnectionData) {
+    public DataConnection createOrReplaceDataConnection(String dataConnectionName,
+        DataConnectionData dataConnectionData) {
         // Generated convenience method for createOrReplaceDataConnectionWithResponse
         RequestOptions requestOptions = new RequestOptions();
-        return cleanUp(
-                        createOrReplaceDataConnectionWithResponse(
-                                        dataConnectionName, BinaryData.fromObject(dataConnectionData), requestOptions)
-                                .getValue())
-                .toObject(DataConnection.class);
+        return cleanUp(createOrReplaceDataConnectionWithResponse(dataConnectionName,
+            BinaryData.fromObject(dataConnectionData), requestOptions).getValue()).toObject(DataConnection.class);
     }
 
     /**
@@ -1357,9 +1496,8 @@ public void deleteDataConnection(String dataConnectionName) {
     public PagedIterable listDiscoGroup() {
         // Generated convenience method for listDiscoGroup
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listDiscoGroup(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoGroup.class));
+        return serviceClient.listDiscoGroup(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoGroup.class));
     }
 
     /**
@@ -1379,7 +1517,7 @@ public ValidateResult validateDiscoGroup(DiscoGroupData discoGroupData) {
         // Generated convenience method for validateDiscoGroupWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(validateDiscoGroupWithResponse(BinaryData.fromObject(discoGroupData), requestOptions).getValue())
-                .toObject(ValidateResult.class);
+            .toObject(ValidateResult.class);
     }
 
     /**
@@ -1419,10 +1557,8 @@ public DiscoGroup createOrReplaceDiscoGroup(String groupName, DiscoGroupData dis
         // Generated convenience method for createOrReplaceDiscoGroupWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        createOrReplaceDiscoGroupWithResponse(
-                                        groupName, BinaryData.fromObject(discoGroupData), requestOptions)
-                                .getValue())
-                .toObject(DiscoGroup.class);
+            createOrReplaceDiscoGroupWithResponse(groupName, BinaryData.fromObject(discoGroupData), requestOptions)
+                .getValue()).toObject(DiscoGroup.class);
     }
 
     private BinaryData cleanUp(BinaryData input) {
@@ -1464,9 +1600,8 @@ public void runDiscoGroup(String groupName) {
     public PagedIterable listRuns(String groupName) {
         // Generated convenience method for listRuns
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listRuns(groupName, requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoRunResult.class));
+        return serviceClient.listRuns(groupName, requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoRunResult.class));
     }
 
     /**
@@ -1483,9 +1618,8 @@ public PagedIterable listRuns(String groupName) {
     public PagedIterable listDiscoTemplate() {
         // Generated convenience method for listDiscoTemplate
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listDiscoTemplate(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoTemplate.class));
+        return serviceClient.listDiscoTemplate(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoTemplate.class));
     }
 
     /**
@@ -1523,7 +1657,7 @@ public ReportBillableAssetSummaryResult getBillable() {
         // Generated convenience method for getBillableWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(getBillableWithResponse(requestOptions).getValue())
-                .toObject(ReportBillableAssetSummaryResult.class);
+            .toObject(ReportBillableAssetSummaryResult.class);
     }
 
     /**
@@ -1543,8 +1677,7 @@ public ReportAssetSnapshotResult getSnapshot(ReportAssetSnapshotRequest reportAs
         // Generated convenience method for getSnapshotWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        getSnapshotWithResponse(BinaryData.fromObject(reportAssetSnapshotRequest), requestOptions)
-                                .getValue())
+            getSnapshotWithResponse(BinaryData.fromObject(reportAssetSnapshotRequest), requestOptions).getValue())
                 .toObject(ReportAssetSnapshotResult.class);
     }
 
@@ -1552,7 +1685,7 @@ public ReportAssetSnapshotResult getSnapshot(ReportAssetSnapshotRequest reportAs
      * Get asset summary details for the summary request.
      *
      * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one
-     *     collection of summary identifiers must be provided: filters, metrics, or metricCategories.
+     * collection of summary identifiers must be provided: filters, metrics, or metricCategories.
      * @throws IllegalArgumentException thrown if parameters fail the validation.
      * @throws HttpResponseException thrown if the request is rejected by server.
      * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1566,8 +1699,7 @@ public ReportAssetSummaryResult getSummary(ReportAssetSummaryRequest reportAsset
         // Generated convenience method for getSummaryWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        getSummaryWithResponse(BinaryData.fromObject(reportAssetSummaryRequest), requestOptions)
-                                .getValue())
+            getSummaryWithResponse(BinaryData.fromObject(reportAssetSummaryRequest), requestOptions).getValue())
                 .toObject(ReportAssetSummaryResult.class);
     }
 
@@ -1585,9 +1717,8 @@ public ReportAssetSummaryResult getSummary(ReportAssetSummaryRequest reportAsset
     public PagedIterable listSavedFilter() {
         // Generated convenience method for listSavedFilter
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listSavedFilter(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(SavedFilter.class));
+        return serviceClient.listSavedFilter(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(SavedFilter.class));
     }
 
     /**
@@ -1627,10 +1758,8 @@ public SavedFilter createOrReplaceSavedFilter(String filterName, SavedFilterData
         // Generated convenience method for createOrReplaceSavedFilterWithResponse
         RequestOptions requestOptions = new RequestOptions();
         return cleanUp(
-                        createOrReplaceSavedFilterWithResponse(
-                                        filterName, BinaryData.fromObject(savedFilterData), requestOptions)
-                                .getValue())
-                .toObject(SavedFilter.class);
+            createOrReplaceSavedFilterWithResponse(filterName, BinaryData.fromObject(savedFilterData), requestOptions)
+                .getValue()).toObject(SavedFilter.class);
     }
 
     /**
@@ -1666,9 +1795,8 @@ public void deleteSavedFilter(String filterName) {
     public PagedIterable listTask() {
         // Generated convenience method for listTask
         RequestOptions requestOptions = new RequestOptions();
-        return serviceClient
-                .listTask(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(Task.class));
+        return serviceClient.listTask(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(Task.class));
     }
 
     /**
@@ -1712,19 +1840,41 @@ public Task cancelTask(String taskId) {
     /**
      * Retrieve a list of discovery group for the provided search parameters.
      *
-     * 

Query Parameters + *

+ * Query Parameters * * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
* * You can add these to a request with {@link RequestOptions#addQueryParam} * - *

Response Body Schema + *

+ * Response Body Schema * *

{@code
      * {
@@ -1787,7 +1937,7 @@ public PagedIterable listDiscoGroup(RequestOptions requestOptions) {
      * @param orderBy A list of expressions that specify the order of the returned resources.
      * @param skip The number of result items to skip.
      * @param mark Specify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and
-     *     subsequent values are returned in the response.
+     * subsequent values are returned in the response.
      * @throws IllegalArgumentException thrown if parameters fail the validation.
      * @throws HttpResponseException thrown if the request is rejected by server.
      * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -1812,9 +1962,8 @@ public PagedIterable listAssetResource(String filter, String orde
         if (mark != null) {
             requestOptions.addQueryParam("mark", mark, false);
         }
-        return serviceClient
-                .listAssetResource(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(AssetResource.class));
+        return serviceClient.listAssetResource(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(AssetResource.class));
     }
 
     /**
@@ -1836,9 +1985,8 @@ public PagedIterable listDataConnection(Integer skip) {
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listDataConnection(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DataConnection.class));
+        return serviceClient.listDataConnection(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DataConnection.class));
     }
 
     /**
@@ -1864,9 +2012,8 @@ public PagedIterable listDiscoGroup(String filter, Integer skip) {
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listDiscoGroup(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoGroup.class));
+        return serviceClient.listDiscoGroup(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoGroup.class));
     }
 
     /**
@@ -1892,9 +2039,8 @@ public PagedIterable listDiscoTemplate(String filter, Integer ski
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listDiscoTemplate(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoTemplate.class));
+        return serviceClient.listDiscoTemplate(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoTemplate.class));
     }
 
     /**
@@ -1920,9 +2066,8 @@ public PagedIterable listSavedFilter(String filter, Integer skip) {
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listSavedFilter(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(SavedFilter.class));
+        return serviceClient.listSavedFilter(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(SavedFilter.class));
     }
 
     /**
@@ -1952,9 +2097,8 @@ public PagedIterable listTask(String filter, String orderBy, Integer skip)
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listTask(requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(Task.class));
+        return serviceClient.listTask(requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(Task.class));
     }
 
     /**
@@ -1981,8 +2125,7 @@ public PagedIterable listRuns(String groupName, String filter, I
         if (skip != null) {
             requestOptions.addQueryParam("skip", String.valueOf(skip), false);
         }
-        return serviceClient
-                .listRuns(groupName, requestOptions)
-                .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoRunResult.class));
+        return serviceClient.listRuns(groupName, requestOptions)
+            .mapPage(bodyItemValue -> cleanUp(bodyItemValue).toObject(DiscoRunResult.class));
     }
 }
diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClientBuilder.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClientBuilder.java
index 3de38765d772..581b0c0128c3 100644
--- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClientBuilder.java
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClientBuilder.java
@@ -40,28 +40,32 @@
 import java.util.Map;
 import java.util.Objects;
 
-/** A builder for creating a new instance of the EasmClient type. */
-@ServiceClientBuilder(serviceClients = {EasmClient.class, EasmAsyncClient.class})
-public final class EasmClientBuilder
-        implements HttpTrait,
-                ConfigurationTrait,
-                TokenCredentialTrait,
-                EndpointTrait {
+/**
+ * A builder for creating a new instance of the EasmClient type.
+ */
+@ServiceClientBuilder(serviceClients = { EasmClient.class, EasmAsyncClient.class })
+public final class EasmClientBuilder implements HttpTrait, ConfigurationTrait,
+    TokenCredentialTrait, EndpointTrait {
 
-    @Generated private static final String SDK_NAME = "name";
+    @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://easm.defender.microsoft.com/.default"};
+    private static final String[] DEFAULT_SCOPES = new String[] { "https://easm.defender.microsoft.com/.default" };
 
     @Generated
-    private static final Map PROPERTIES =
-            CoreUtils.getProperties("azure-analytics-defender-easm.properties");
+    private static final Map PROPERTIES
+        = CoreUtils.getProperties("azure-analytics-defender-easm.properties");
 
-    @Generated private final List pipelinePolicies;
+    @Generated
+    private final List pipelinePolicies;
 
-    /** Create an instance of the EasmClientBuilder. */
+    /**
+     * Create an instance of the EasmClientBuilder.
+     */
     @Generated
     public EasmClientBuilder() {
         this.pipelinePolicies = new ArrayList<>();
@@ -70,9 +74,12 @@ public EasmClientBuilder() {
     /*
      * The HTTP pipeline to send requests through.
      */
-    @Generated private HttpPipeline pipeline;
+    @Generated
+    private HttpPipeline pipeline;
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder pipeline(HttpPipeline pipeline) {
@@ -86,9 +93,12 @@ public EasmClientBuilder pipeline(HttpPipeline pipeline) {
     /*
      * The HTTP client used to send the request.
      */
-    @Generated private HttpClient httpClient;
+    @Generated
+    private HttpClient httpClient;
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder httpClient(HttpClient httpClient) {
@@ -99,9 +109,12 @@ public EasmClientBuilder httpClient(HttpClient httpClient) {
     /*
      * The logging configuration for HTTP requests and responses.
      */
-    @Generated private HttpLogOptions httpLogOptions;
+    @Generated
+    private HttpLogOptions httpLogOptions;
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
@@ -112,9 +125,12 @@ public EasmClientBuilder 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 EasmClientBuilder clientOptions(ClientOptions clientOptions) {
@@ -125,9 +141,12 @@ public EasmClientBuilder 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 EasmClientBuilder retryOptions(RetryOptions retryOptions) {
@@ -135,7 +154,9 @@ public EasmClientBuilder retryOptions(RetryOptions retryOptions) {
         return this;
     }
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
@@ -147,9 +168,12 @@ public EasmClientBuilder 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 EasmClientBuilder configuration(Configuration configuration) {
@@ -160,9 +184,12 @@ public EasmClientBuilder configuration(Configuration configuration) {
     /*
      * The TokenCredential used for authentication.
      */
-    @Generated private TokenCredential tokenCredential;
+    @Generated
+    private TokenCredential tokenCredential;
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder credential(TokenCredential tokenCredential) {
@@ -173,9 +200,12 @@ public EasmClientBuilder credential(TokenCredential tokenCredential) {
     /*
      * The service endpoint
      */
-    @Generated private String endpoint;
+    @Generated
+    private String endpoint;
 
-    /** {@inheritDoc}. */
+    /**
+     * {@inheritDoc}.
+     */
     @Generated
     @Override
     public EasmClientBuilder endpoint(String endpoint) {
@@ -186,7 +216,8 @@ public EasmClientBuilder endpoint(String endpoint) {
     /*
      * The ID of the target subscription.
      */
-    @Generated private String subscriptionId;
+    @Generated
+    private String subscriptionId;
 
     /**
      * Sets The ID of the target subscription.
@@ -203,7 +234,8 @@ public EasmClientBuilder subscriptionId(String subscriptionId) {
     /*
      * The name of the Resource Group.
      */
-    @Generated private String resourceGroupName;
+    @Generated
+    private String resourceGroupName;
 
     /**
      * Sets The name of the Resource Group.
@@ -220,7 +252,8 @@ public EasmClientBuilder resourceGroupName(String resourceGroupName) {
     /*
      * The name of the Workspace.
      */
-    @Generated private String workspaceName;
+    @Generated
+    private String workspaceName;
 
     /**
      * Sets The name of the Workspace.
@@ -237,7 +270,8 @@ public EasmClientBuilder workspaceName(String workspaceName) {
     /*
      * Service version
      */
-    @Generated private EasmServiceVersion serviceVersion;
+    @Generated
+    private EasmServiceVersion serviceVersion;
 
     /**
      * Sets Service version.
@@ -254,7 +288,8 @@ public EasmClientBuilder serviceVersion(EasmServiceVersion serviceVersion) {
     /*
      * 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.
@@ -276,24 +311,17 @@ public EasmClientBuilder retryPolicy(RetryPolicy retryPolicy) {
     @Generated
     private EasmClientImpl buildInnerClient() {
         HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
-        EasmServiceVersion localServiceVersion =
-                (serviceVersion != null) ? serviceVersion : EasmServiceVersion.getLatest();
-        EasmClientImpl client =
-                new EasmClientImpl(
-                        localPipeline,
-                        JacksonAdapter.createDefaultSerializerAdapter(),
-                        this.endpoint,
-                        this.subscriptionId,
-                        this.resourceGroupName,
-                        this.workspaceName,
-                        localServiceVersion);
+        EasmServiceVersion localServiceVersion
+            = (serviceVersion != null) ? serviceVersion : EasmServiceVersion.getLatest();
+        EasmClientImpl client = new EasmClientImpl(localPipeline, JacksonAdapter.createDefaultSerializerAdapter(),
+            this.endpoint, this.subscriptionId, this.resourceGroupName, this.workspaceName, 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<>();
@@ -304,32 +332,25 @@ 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;
     }
 
diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmServiceVersion.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmServiceVersion.java
index 249b7de982ed..d117819faf17 100644
--- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmServiceVersion.java
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmServiceVersion.java
@@ -6,9 +6,13 @@
 
 import com.azure.core.util.ServiceVersion;
 
-/** Service version of EasmClient. */
+/**
+ * Service version of EasmClient.
+ */
 public enum EasmServiceVersion implements ServiceVersion {
-    /** Enum value 2023-03-01-preview. */
+    /**
+     * Enum value 2023-03-01-preview.
+     */
     V2023_03_01_PREVIEW("2023-03-01-preview");
 
     private final String version;
@@ -17,7 +21,9 @@ public enum EasmServiceVersion 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 EasmServiceVersion}.
      */
     public static EasmServiceVersion getLatest() {
diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/implementation/EasmClientImpl.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/implementation/EasmClientImpl.java
index 3d1cf89353f1..b62614d99e17 100644
--- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/implementation/EasmClientImpl.java
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/implementation/EasmClientImpl.java
@@ -46,89 +46,107 @@
 import java.util.stream.Collectors;
 import reactor.core.publisher.Mono;
 
-/** Initializes a new instance of the EasmClient type. */
+/**
+ * Initializes a new instance of the EasmClient type.
+ */
 public final class EasmClientImpl {
-    /** The proxy service used to perform REST calls. */
+    /**
+     * The proxy service used to perform REST calls.
+     */
     private final EasmClientService service;
 
-    /** The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com. */
+    /**
+     * The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com.
+     */
     private final String endpoint;
 
     /**
      * Gets The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com.
-     *
+     * 
      * @return the endpoint value.
      */
     public String getEndpoint() {
         return this.endpoint;
     }
 
-    /** The ID of the target subscription. */
+    /**
+     * The ID of the target subscription.
+     */
     private final String subscriptionId;
 
     /**
      * Gets The ID of the target subscription.
-     *
+     * 
      * @return the subscriptionId value.
      */
     public String getSubscriptionId() {
         return this.subscriptionId;
     }
 
-    /** The name of the Resource Group. */
+    /**
+     * The name of the Resource Group.
+     */
     private final String resourceGroupName;
 
     /**
      * Gets The name of the Resource Group.
-     *
+     * 
      * @return the resourceGroupName value.
      */
     public String getResourceGroupName() {
         return this.resourceGroupName;
     }
 
-    /** The name of the Workspace. */
+    /**
+     * The name of the Workspace.
+     */
     private final String workspaceName;
 
     /**
      * Gets The name of the Workspace.
-     *
+     * 
      * @return the workspaceName value.
      */
     public String getWorkspaceName() {
         return this.workspaceName;
     }
 
-    /** Service version. */
+    /**
+     * Service version.
+     */
     private final EasmServiceVersion serviceVersion;
 
     /**
      * Gets Service version.
-     *
+     * 
      * @return the serviceVersion value.
      */
     public EasmServiceVersion 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() {
@@ -137,78 +155,52 @@ public SerializerAdapter getSerializerAdapter() {
 
     /**
      * Initializes an instance of EasmClient client.
-     *
+     * 
      * @param endpoint The endpoint hosting the requested resource. For example,
-     *     https://{region}.easm.defender.microsoft.com.
+     * https://{region}.easm.defender.microsoft.com.
      * @param subscriptionId The ID of the target subscription.
      * @param resourceGroupName The name of the Resource Group.
      * @param workspaceName The name of the Workspace.
      * @param serviceVersion Service version.
      */
-    public EasmClientImpl(
-            String endpoint,
-            String subscriptionId,
-            String resourceGroupName,
-            String workspaceName,
-            EasmServiceVersion serviceVersion) {
-        this(
-                new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
-                JacksonAdapter.createDefaultSerializerAdapter(),
-                endpoint,
-                subscriptionId,
-                resourceGroupName,
-                workspaceName,
-                serviceVersion);
+    public EasmClientImpl(String endpoint, String subscriptionId, String resourceGroupName, String workspaceName,
+        EasmServiceVersion serviceVersion) {
+        this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
+            JacksonAdapter.createDefaultSerializerAdapter(), endpoint, subscriptionId, resourceGroupName, workspaceName,
+            serviceVersion);
     }
 
     /**
      * Initializes an instance of EasmClient client.
-     *
+     * 
      * @param httpPipeline The HTTP pipeline to send requests through.
      * @param endpoint The endpoint hosting the requested resource. For example,
-     *     https://{region}.easm.defender.microsoft.com.
+     * https://{region}.easm.defender.microsoft.com.
      * @param subscriptionId The ID of the target subscription.
      * @param resourceGroupName The name of the Resource Group.
      * @param workspaceName The name of the Workspace.
      * @param serviceVersion Service version.
      */
-    public EasmClientImpl(
-            HttpPipeline httpPipeline,
-            String endpoint,
-            String subscriptionId,
-            String resourceGroupName,
-            String workspaceName,
-            EasmServiceVersion serviceVersion) {
-        this(
-                httpPipeline,
-                JacksonAdapter.createDefaultSerializerAdapter(),
-                endpoint,
-                subscriptionId,
-                resourceGroupName,
-                workspaceName,
-                serviceVersion);
+    public EasmClientImpl(HttpPipeline httpPipeline, String endpoint, String subscriptionId, String resourceGroupName,
+        String workspaceName, EasmServiceVersion serviceVersion) {
+        this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, subscriptionId, resourceGroupName,
+            workspaceName, serviceVersion);
     }
 
     /**
      * Initializes an instance of EasmClient client.
-     *
+     * 
      * @param httpPipeline The HTTP pipeline to send requests through.
      * @param serializerAdapter The serializer to serialize an object into a string.
      * @param endpoint The endpoint hosting the requested resource. For example,
-     *     https://{region}.easm.defender.microsoft.com.
+     * https://{region}.easm.defender.microsoft.com.
      * @param subscriptionId The ID of the target subscription.
      * @param resourceGroupName The name of the Resource Group.
      * @param workspaceName The name of the Workspace.
      * @param serviceVersion Service version.
      */
-    public EasmClientImpl(
-            HttpPipeline httpPipeline,
-            SerializerAdapter serializerAdapter,
-            String endpoint,
-            String subscriptionId,
-            String resourceGroupName,
-            String workspaceName,
-            EasmServiceVersion serviceVersion) {
+    public EasmClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint,
+        String subscriptionId, String resourceGroupName, String workspaceName, EasmServiceVersion serviceVersion) {
         this.httpPipeline = httpPipeline;
         this.serializerAdapter = serializerAdapter;
         this.endpoint = endpoint;
@@ -219,1528 +211,855 @@ public EasmClientImpl(
         this.service = RestProxy.create(EasmClientService.class, this.httpPipeline, this.getSerializerAdapter());
     }
 
-    /** The interface defining all the services for EasmClient to be used by the proxy service to perform REST calls. */
+    /**
+     * The interface defining all the services for EasmClient to be used by the proxy service to perform REST calls.
+     */
     @Host("{endpoint}/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}")
     @ServiceInterface(name = "EasmClient")
     public interface EasmClientService {
         @Get("/assets")
-        @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> listAssetResource(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listAssetResource(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/assets")
-        @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 listAssetResourceSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listAssetResourceSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Post("/assets")
-        @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> updateAssets(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @QueryParam("filter") String filter,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData assetUpdateData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> updateAssets(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @QueryParam("filter") String filter,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData assetUpdateData,
+            RequestOptions requestOptions, Context context);
 
         @Post("/assets")
-        @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 updateAssetsSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @QueryParam("filter") String filter,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData assetUpdateData,
-                RequestOptions requestOptions,
-                Context context);
+        Response updateAssetsSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @QueryParam("filter") String filter,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData assetUpdateData,
+            RequestOptions requestOptions, Context context);
 
         @Get("/assets/{assetId}")
-        @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> getAssetResource(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("assetId") String assetId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getAssetResource(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("assetId") String assetId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/assets/{assetId}")
-        @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 getAssetResourceSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("assetId") String assetId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getAssetResourceSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("assetId") String assetId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/dataConnections")
-        @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> listDataConnection(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listDataConnection(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/dataConnections")
-        @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 listDataConnectionSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDataConnectionSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Post("/dataConnections:validate")
-        @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> validateDataConnection(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData dataConnectionData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> validateDataConnection(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData dataConnectionData, RequestOptions requestOptions,
+            Context context);
 
         @Post("/dataConnections:validate")
-        @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 validateDataConnectionSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData dataConnectionData,
-                RequestOptions requestOptions,
-                Context context);
+        Response validateDataConnectionSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData dataConnectionData, RequestOptions requestOptions,
+            Context context);
 
         @Get("/dataConnections/{dataConnectionName}")
-        @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> getDataConnection(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getDataConnection(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/dataConnections/{dataConnectionName}")
-        @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 getDataConnectionSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getDataConnectionSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Put("/dataConnections/{dataConnectionName}")
-        @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> createOrReplaceDataConnection(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData dataConnectionData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> createOrReplaceDataConnection(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData dataConnectionData,
+            RequestOptions requestOptions, Context context);
 
         @Put("/dataConnections/{dataConnectionName}")
-        @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 createOrReplaceDataConnectionSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData dataConnectionData,
-                RequestOptions requestOptions,
-                Context context);
+        Response createOrReplaceDataConnectionSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData dataConnectionData,
+            RequestOptions requestOptions, Context context);
 
         @Delete("/dataConnections/{dataConnectionName}")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Mono> deleteDataConnection(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> deleteDataConnection(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Delete("/dataConnections/{dataConnectionName}")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Response deleteDataConnectionSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("dataConnectionName") String dataConnectionName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response deleteDataConnectionSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("dataConnectionName") String dataConnectionName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups")
-        @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> listDiscoGroup(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listDiscoGroup(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups")
-        @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 listDiscoGroupSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDiscoGroupSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Post("/discoGroups:validate")
-        @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> validateDiscoGroup(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData discoGroupData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> validateDiscoGroup(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData discoGroupData, RequestOptions requestOptions, Context context);
 
         @Post("/discoGroups:validate")
-        @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 validateDiscoGroupSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData discoGroupData,
-                RequestOptions requestOptions,
-                Context context);
+        Response validateDiscoGroupSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData discoGroupData, RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups/{groupName}")
-        @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> getDiscoGroup(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getDiscoGroup(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups/{groupName}")
-        @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 getDiscoGroupSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getDiscoGroupSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Put("/discoGroups/{groupName}")
-        @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> createOrReplaceDiscoGroup(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData discoGroupData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> createOrReplaceDiscoGroup(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData discoGroupData,
+            RequestOptions requestOptions, Context context);
 
         @Put("/discoGroups/{groupName}")
-        @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 createOrReplaceDiscoGroupSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData discoGroupData,
-                RequestOptions requestOptions,
-                Context context);
+        Response createOrReplaceDiscoGroupSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData discoGroupData,
+            RequestOptions requestOptions, Context context);
 
         @Post("/discoGroups/{groupName}:run")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Mono> runDiscoGroup(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> runDiscoGroup(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Post("/discoGroups/{groupName}:run")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Response runDiscoGroupSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response runDiscoGroupSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups/{groupName}/runs")
-        @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> listRuns(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listRuns(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoGroups/{groupName}/runs")
-        @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 listRunsSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("groupName") String groupName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listRunsSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("groupName") String groupName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoTemplates")
-        @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> listDiscoTemplate(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listDiscoTemplate(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/discoTemplates")
-        @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 listDiscoTemplateSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDiscoTemplateSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/discoTemplates/{templateId}")
-        @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> getDiscoTemplate(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("templateId") String templateId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getDiscoTemplate(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("templateId") String templateId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/discoTemplates/{templateId}")
-        @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 getDiscoTemplateSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("templateId") String templateId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getDiscoTemplateSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("templateId") String templateId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Post("/reports/assets:getBillable")
-        @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> getBillable(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getBillable(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Post("/reports/assets:getBillable")
-        @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 getBillableSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getBillableSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Post("/reports/assets:getSnapshot")
-        @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> getSnapshot(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData reportAssetSnapshotRequest,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getSnapshot(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions,
+            Context context);
 
         @Post("/reports/assets:getSnapshot")
-        @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 getSnapshotSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData reportAssetSnapshotRequest,
-                RequestOptions requestOptions,
-                Context context);
+        Response getSnapshotSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions,
+            Context context);
 
         @Post("/reports/assets:getSummary")
-        @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> getSummary(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData reportAssetSummaryRequest,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getSummary(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData reportAssetSummaryRequest, RequestOptions requestOptions,
+            Context context);
 
         @Post("/reports/assets:getSummary")
-        @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 getSummarySync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData reportAssetSummaryRequest,
-                RequestOptions requestOptions,
-                Context context);
+        Response getSummarySync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            @BodyParam("application/json") BinaryData reportAssetSummaryRequest, RequestOptions requestOptions,
+            Context context);
 
         @Get("/savedFilters")
-        @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> listSavedFilter(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listSavedFilter(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/savedFilters")
-        @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 listSavedFilterSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listSavedFilterSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/savedFilters/{filterName}")
-        @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> getSavedFilter(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getSavedFilter(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/savedFilters/{filterName}")
-        @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 getSavedFilterSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getSavedFilterSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Put("/savedFilters/{filterName}")
-        @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> createOrReplaceSavedFilter(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData savedFilterData,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> createOrReplaceSavedFilter(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData savedFilterData,
+            RequestOptions requestOptions, Context context);
 
         @Put("/savedFilters/{filterName}")
-        @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 createOrReplaceSavedFilterSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                @BodyParam("application/json") BinaryData savedFilterData,
-                RequestOptions requestOptions,
-                Context context);
+        Response createOrReplaceSavedFilterSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, @BodyParam("application/json") BinaryData savedFilterData,
+            RequestOptions requestOptions, Context context);
 
         @Delete("/savedFilters/{filterName}")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Mono> deleteSavedFilter(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> deleteSavedFilter(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Delete("/savedFilters/{filterName}")
-        @ExpectedResponses({204})
-        @UnexpectedResponseExceptionType(
-                value = ClientAuthenticationException.class,
-                code = {401})
-        @UnexpectedResponseExceptionType(
-                value = ResourceNotFoundException.class,
-                code = {404})
-        @UnexpectedResponseExceptionType(
-                value = ResourceModifiedException.class,
-                code = {409})
+        @ExpectedResponses({ 204 })
+        @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+        @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+        @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
         @UnexpectedResponseExceptionType(HttpResponseException.class)
-        Response deleteSavedFilterSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("filterName") String filterName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response deleteSavedFilterSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("filterName") String filterName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/tasks")
-        @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> listTask(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listTask(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/tasks")
-        @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 listTaskSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listTaskSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+            RequestOptions requestOptions, Context context);
 
         @Get("/tasks/{taskId}")
-        @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> getTask(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("taskId") String taskId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> getTask(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("taskId") String taskId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Get("/tasks/{taskId}")
-        @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 getTaskSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("taskId") String taskId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response getTaskSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("taskId") String taskId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Post("/tasks/{taskId}:cancel")
-        @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> cancelTask(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("taskId") String taskId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> cancelTask(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("taskId") String taskId,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
 
         @Post("/tasks/{taskId}:cancel")
-        @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 cancelTaskSync(
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @QueryParam("api-version") String apiVersion,
-                @PathParam("taskId") String taskId,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response cancelTaskSync(@HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @QueryParam("api-version") String apiVersion, @PathParam("taskId") String taskId,
+            @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> listAssetResourceNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listAssetResourceNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listAssetResourceNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listAssetResourceNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listDataConnectionNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+            @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+            @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listDataConnectionNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDataConnectionNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listDiscoGroupNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listDiscoGroupNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listDiscoGroupNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDiscoGroupNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listRunsNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listRunsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listRunsNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listRunsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listDiscoTemplateNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listDiscoTemplateNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listDiscoTemplateNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listDiscoTemplateNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listSavedFilterNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listSavedFilterNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listSavedFilterNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listSavedFilterNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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> listTaskNext(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Mono> listTaskNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @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 listTaskNextSync(
-                @PathParam(value = "nextLink", encoded = true) String nextLink,
-                @HostParam("endpoint") String endpoint,
-                @HostParam("subscriptionId") String subscriptionId,
-                @HostParam("resourceGroupName") String resourceGroupName,
-                @HostParam("workspaceName") String workspaceName,
-                @HeaderParam("accept") String accept,
-                RequestOptions requestOptions,
-                Context context);
+        Response listTaskNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+            @HostParam("endpoint") String endpoint, @HostParam("subscriptionId") String subscriptionId,
+            @HostParam("resourceGroupName") String resourceGroupName, @HostParam("workspaceName") String workspaceName,
+            @HeaderParam("accept") String accept, RequestOptions requestOptions, Context context);
     }
 
     /**
      * Retrieve a list of assets for the provided search parameters.
-     *
-     * 

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1768,59 +1087,75 @@ Response listTaskNextSync(
      *     reason: String (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. * @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 paged collection of AssetResource items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAssetResourceSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listAssetResource( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listAssetResource(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of assets for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1848,7 +1183,7 @@ private Mono> listAssetResourceSinglePageAsync(Request
      *     reason: String (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. @@ -1860,56 +1195,80 @@ private Mono> listAssetResourceSinglePageAsync(Request public PagedFlux listAssetResourceAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listAssetResourceSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listAssetResourceNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listAssetResourceSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listAssetResourceNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of assets for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -1937,7 +1296,7 @@ public PagedFlux listAssetResourceAsync(RequestOptions requestOption
      *     reason: String (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. @@ -1948,44 +1307,62 @@ public PagedFlux listAssetResourceAsync(RequestOptions requestOption @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listAssetResourceSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAssetResourceSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listAssetResourceSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of assets for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
markStringNoSpecify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent + * values are returned in the response.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2013,7 +1390,7 @@ private PagedResponse listAssetResourceSinglePage(RequestOptions req
      *     reason: String (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. @@ -2025,42 +1402,36 @@ private PagedResponse listAssetResourceSinglePage(RequestOptions req public PagedIterable listAssetResource(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listAssetResourceSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listAssetResourceNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listAssetResourceSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listAssetResourceNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Update labels on assets matching the provided filter. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
@@ -2071,9 +1442,9 @@ public PagedIterable listAssetResource(RequestOptions requestOptions
      *     transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2088,7 +1459,7 @@ public PagedIterable listAssetResource(RequestOptions requestOptions
      *     }
      * }
      * }
- * + * * @param filter An expression on the resource type that selects the resources to be returned. * @param assetUpdateData A request body used to update an asset. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2099,29 +1470,19 @@ public PagedIterable listAssetResource(RequestOptions requestOptions * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateAssetsWithResponseAsync( - String filter, BinaryData assetUpdateData, RequestOptions requestOptions) { + public Mono> updateAssetsWithResponseAsync(String filter, BinaryData assetUpdateData, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.updateAssets( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filter, - accept, - assetUpdateData, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.updateAssets(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), filter, accept, + assetUpdateData, requestOptions, context)); } /** * Update labels on assets matching the provided filter. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
@@ -2132,9 +1493,9 @@ public Mono> updateAssetsWithResponseAsync(
      *     transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2149,7 +1510,7 @@ public Mono> updateAssetsWithResponseAsync(
      *     }
      * }
      * }
- * + * * @param filter An expression on the resource type that selects the resources to be returned. * @param assetUpdateData A request body used to update an asset. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2160,27 +1521,19 @@ public Mono> updateAssetsWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateAssetsWithResponse( - String filter, BinaryData assetUpdateData, RequestOptions requestOptions) { + public Response updateAssetsWithResponse(String filter, BinaryData assetUpdateData, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.updateAssetsSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filter, - accept, - assetUpdateData, - requestOptions, - Context.NONE); + return service.updateAssetsSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), filter, accept, assetUpdateData, + requestOptions, Context.NONE); } /** * Retrieve an asset by assetId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2208,38 +1561,29 @@ public Response updateAssetsWithResponse(
      *     reason: String (Optional)
      * }
      * }
- * + * * @param assetId The system generated unique id for the resource. * @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. * @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 items in the current page of results along with {@link Response} on successful completion of {@link - * Mono}. + * @return the items in the current page of results along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getAssetResourceWithResponseAsync(String assetId, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getAssetResource( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - assetId, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getAssetResource(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), assetId, + accept, requestOptions, context)); } /** * Retrieve an asset by assetId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -2267,7 +1611,7 @@ public Mono> getAssetResourceWithResponseAsync(String asset
      *     reason: String (Optional)
      * }
      * }
- * + * * @param assetId The system generated unique id for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2279,34 +1623,41 @@ public Mono> getAssetResourceWithResponseAsync(String asset @ServiceMethod(returns = ReturnType.SINGLE) public Response getAssetResourceWithResponse(String assetId, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getAssetResourceSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - assetId, - accept, - requestOptions, - Context.NONE); + return service.getAssetResourceSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), assetId, accept, requestOptions, + Context.NONE); } /** * Retrieve a list of data connections. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2322,56 +1673,56 @@ public Response getAssetResourceWithResponse(String assetId, Request
      *     inactiveMessage: String (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. * @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 paged collection of DataConnection items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDataConnectionSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDataConnection( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDataConnection(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of data connections. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2387,7 +1738,7 @@ private Mono> listDataConnectionSinglePageAsync(Reques
      *     inactiveMessage: String (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. @@ -2399,53 +1750,61 @@ private Mono> listDataConnectionSinglePageAsync(Reques public PagedFlux listDataConnectionAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDataConnectionSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDataConnectionNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDataConnectionSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDataConnectionNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of data connections. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2461,7 +1820,7 @@ public PagedFlux listDataConnectionAsync(RequestOptions requestOptio
      *     inactiveMessage: String (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. @@ -2472,41 +1831,43 @@ public PagedFlux listDataConnectionAsync(RequestOptions requestOptio @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDataConnectionSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDataConnectionSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDataConnectionSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of data connections. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2522,7 +1883,7 @@ private PagedResponse listDataConnectionSinglePage(RequestOptions re
      *     inactiveMessage: String (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. @@ -2534,42 +1895,36 @@ private PagedResponse listDataConnectionSinglePage(RequestOptions re public PagedIterable listDataConnection(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDataConnectionSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDataConnectionNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDataConnectionSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDataConnectionNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Validate a data connection with a given dataConnectionName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -2578,9 +1933,9 @@ public PagedIterable listDataConnection(RequestOptions requestOption
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -2597,7 +1952,7 @@ public PagedIterable listDataConnection(RequestOptions requestOption
      *     }
      * }
      * }
- * + * * @param dataConnectionData The dataConnectionData parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2607,28 +1962,19 @@ public PagedIterable listDataConnection(RequestOptions requestOption * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> validateDataConnectionWithResponseAsync( - BinaryData dataConnectionData, RequestOptions requestOptions) { + public Mono> validateDataConnectionWithResponseAsync(BinaryData dataConnectionData, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.validateDataConnection( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - dataConnectionData, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.validateDataConnection(this.getEndpoint(), + this.getSubscriptionId(), this.getResourceGroupName(), this.getWorkspaceName(), + this.getServiceVersion().getVersion(), accept, dataConnectionData, requestOptions, context)); } /** * Validate a data connection with a given dataConnectionName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -2637,9 +1983,9 @@ public Mono> validateDataConnectionWithResponseAsync(
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -2656,7 +2002,7 @@ public Mono> validateDataConnectionWithResponseAsync(
      *     }
      * }
      * }
- * + * * @param dataConnectionData The dataConnectionData parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2666,26 +2012,19 @@ public Mono> validateDataConnectionWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response validateDataConnectionWithResponse( - BinaryData dataConnectionData, RequestOptions requestOptions) { + public Response validateDataConnectionWithResponse(BinaryData dataConnectionData, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.validateDataConnectionSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - dataConnectionData, - requestOptions, - Context.NONE); + return service.validateDataConnectionSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + dataConnectionData, requestOptions, Context.NONE); } /** * Retrieve a data connection with a given dataConnectionName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2701,7 +2040,7 @@ public Response validateDataConnectionWithResponse(
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param dataConnectionName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2711,28 +2050,19 @@ public Response validateDataConnectionWithResponse( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getDataConnectionWithResponseAsync( - String dataConnectionName, RequestOptions requestOptions) { + public Mono> getDataConnectionWithResponseAsync(String dataConnectionName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getDataConnection( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getDataConnection(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), + dataConnectionName, accept, requestOptions, context)); } /** * Retrieve a data connection with a given dataConnectionName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2748,7 +2078,7 @@ public Mono> getDataConnectionWithResponseAsync(
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param dataConnectionName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2758,26 +2088,19 @@ public Mono> getDataConnectionWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDataConnectionWithResponse( - String dataConnectionName, RequestOptions requestOptions) { + public Response getDataConnectionWithResponse(String dataConnectionName, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.getDataConnectionSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - requestOptions, - Context.NONE); + return service.getDataConnectionSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), dataConnectionName, accept, requestOptions, + Context.NONE); } /** * Create or replace a data connection with a given dataConnectionName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -2786,9 +2109,9 @@ public Response getDataConnectionWithResponse(
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2804,7 +2127,7 @@ public Response getDataConnectionWithResponse(
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param dataConnectionName The caller provided unique name for the resource. * @param dataConnectionData The dataConnectionData parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2815,29 +2138,20 @@ public Response getDataConnectionWithResponse( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrReplaceDataConnectionWithResponseAsync( - String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) { + public Mono> createOrReplaceDataConnectionWithResponseAsync(String dataConnectionName, + BinaryData dataConnectionData, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.createOrReplaceDataConnection( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - dataConnectionData, - requestOptions, - context)); + return FluxUtil + .withContext(context -> service.createOrReplaceDataConnection(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), + dataConnectionName, accept, dataConnectionData, requestOptions, context)); } /** * Create or replace a data connection with a given dataConnectionName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -2846,9 +2160,9 @@ public Mono> createOrReplaceDataConnectionWithResponseAsync
      *     frequencyOffset: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -2864,7 +2178,7 @@ public Mono> createOrReplaceDataConnectionWithResponseAsync
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param dataConnectionName The caller provided unique name for the resource. * @param dataConnectionData The dataConnectionData parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2875,25 +2189,17 @@ public Mono> createOrReplaceDataConnectionWithResponseAsync * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrReplaceDataConnectionWithResponse( - String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) { + public Response createOrReplaceDataConnectionWithResponse(String dataConnectionName, + BinaryData dataConnectionData, RequestOptions requestOptions) { final String accept = "application/json"; - return service.createOrReplaceDataConnectionSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - dataConnectionData, - requestOptions, - Context.NONE); + return service.createOrReplaceDataConnectionSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), + dataConnectionName, accept, dataConnectionData, requestOptions, Context.NONE); } /** * Delete a data connection with a given dataConnectionName. - * + * * @param dataConnectionName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2903,26 +2209,17 @@ public Response createOrReplaceDataConnectionWithResponse( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteDataConnectionWithResponseAsync( - String dataConnectionName, RequestOptions requestOptions) { + public Mono> deleteDataConnectionWithResponseAsync(String dataConnectionName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.deleteDataConnection( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.deleteDataConnection(this.getEndpoint(), + this.getSubscriptionId(), this.getResourceGroupName(), this.getWorkspaceName(), + this.getServiceVersion().getVersion(), dataConnectionName, accept, requestOptions, context)); } /** * Delete a data connection with a given dataConnectionName. - * + * * @param dataConnectionName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2934,35 +2231,47 @@ public Mono> deleteDataConnectionWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteDataConnectionWithResponse(String dataConnectionName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.deleteDataConnectionSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - dataConnectionName, - accept, - requestOptions, - Context.NONE); + return service.deleteDataConnectionSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), + dataConnectionName, accept, requestOptions, Context.NONE); } /** * Retrieve a list of discovery group for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3004,57 +2313,62 @@ public Response deleteDataConnectionWithResponse(String dataConnectionName
      *     templateId: String (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. * @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 paged collection of DiscoGroup items along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return paged collection of DiscoGroup items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDiscoGroupSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDiscoGroup( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDiscoGroup(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of discovery group for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3096,7 +2410,7 @@ private Mono> listDiscoGroupSinglePageAsync(RequestOpt
      *     templateId: String (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. @@ -3108,54 +2422,67 @@ private Mono> listDiscoGroupSinglePageAsync(RequestOpt public PagedFlux listDiscoGroupAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoGroupSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoGroupNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDiscoGroupSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDiscoGroupNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of discovery group for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3197,7 +2524,7 @@ public PagedFlux listDiscoGroupAsync(RequestOptions requestOptions)
      *     templateId: String (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. @@ -3208,42 +2535,49 @@ public PagedFlux listDiscoGroupAsync(RequestOptions requestOptions) @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDiscoGroupSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDiscoGroupSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDiscoGroupSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of discovery group for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3285,7 +2619,7 @@ private PagedResponse listDiscoGroupSinglePage(RequestOptions reques
      *     templateId: String (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. @@ -3297,42 +2631,36 @@ private PagedResponse listDiscoGroupSinglePage(RequestOptions reques public PagedIterable listDiscoGroup(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoGroupSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoGroupNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDiscoGroupSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDiscoGroupNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Validate a discovery group with a given groupName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -3354,9 +2682,9 @@ public PagedIterable listDiscoGroup(RequestOptions requestOptions) {
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -3373,7 +2701,7 @@ public PagedIterable listDiscoGroup(RequestOptions requestOptions) {
      *     }
      * }
      * }
- * + * * @param discoGroupData A request body used to create a discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3383,28 +2711,19 @@ public PagedIterable listDiscoGroup(RequestOptions requestOptions) { * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> validateDiscoGroupWithResponseAsync( - BinaryData discoGroupData, RequestOptions requestOptions) { + public Mono> validateDiscoGroupWithResponseAsync(BinaryData discoGroupData, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.validateDiscoGroup( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - discoGroupData, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.validateDiscoGroup(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + discoGroupData, requestOptions, context)); } /** * Validate a discovery group with a given groupName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -3426,9 +2745,9 @@ public Mono> validateDiscoGroupWithResponseAsync(
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     error (Optional): {
@@ -3445,7 +2764,7 @@ public Mono> validateDiscoGroupWithResponseAsync(
      *     }
      * }
      * }
- * + * * @param discoGroupData A request body used to create a discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3455,26 +2774,19 @@ public Mono> validateDiscoGroupWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response validateDiscoGroupWithResponse( - BinaryData discoGroupData, RequestOptions requestOptions) { + public Response validateDiscoGroupWithResponse(BinaryData discoGroupData, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.validateDiscoGroupSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - discoGroupData, - requestOptions, - Context.NONE); + return service.validateDiscoGroupSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, discoGroupData, requestOptions, + Context.NONE); } /** * Retrieve a discovery group with a given groupName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3516,7 +2828,7 @@ public Response validateDiscoGroupWithResponse(
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param groupName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3528,25 +2840,16 @@ public Response validateDiscoGroupWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getDiscoGroupWithResponseAsync(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getDiscoGroup( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getDiscoGroup(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, + accept, requestOptions, context)); } /** * Retrieve a discovery group with a given groupName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3588,7 +2891,7 @@ public Mono> getDiscoGroupWithResponseAsync(String groupNam
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param groupName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3600,23 +2903,16 @@ public Mono> getDiscoGroupWithResponseAsync(String groupNam @ServiceMethod(returns = ReturnType.SINGLE) public Response getDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getDiscoGroupSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - requestOptions, - Context.NONE); + return service.getDiscoGroupSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, accept, requestOptions, + Context.NONE); } /** * Create a discovery group with a given groupName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -3638,9 +2934,9 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3682,7 +2978,7 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param groupName The caller provided unique name for the resource. * @param discoGroupData A request body used to create a discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3693,29 +2989,19 @@ public Response getDiscoGroupWithResponse(String groupName, RequestO * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrReplaceDiscoGroupWithResponseAsync( - String groupName, BinaryData discoGroupData, RequestOptions requestOptions) { + public Mono> createOrReplaceDiscoGroupWithResponseAsync(String groupName, + BinaryData discoGroupData, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.createOrReplaceDiscoGroup( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - discoGroupData, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.createOrReplaceDiscoGroup(this.getEndpoint(), + this.getSubscriptionId(), this.getResourceGroupName(), this.getWorkspaceName(), + this.getServiceVersion().getVersion(), groupName, accept, discoGroupData, requestOptions, context)); } /** * Create a discovery group with a given groupName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     name: String (Optional)
@@ -3737,9 +3023,9 @@ public Mono> createOrReplaceDiscoGroupWithResponseAsync(
      *     templateId: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -3781,7 +3067,7 @@ public Mono> createOrReplaceDiscoGroupWithResponseAsync(
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param groupName The caller provided unique name for the resource. * @param discoGroupData A request body used to create a discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3792,25 +3078,17 @@ public Mono> createOrReplaceDiscoGroupWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrReplaceDiscoGroupWithResponse( - String groupName, BinaryData discoGroupData, RequestOptions requestOptions) { + public Response createOrReplaceDiscoGroupWithResponse(String groupName, BinaryData discoGroupData, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.createOrReplaceDiscoGroupSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - discoGroupData, - requestOptions, - Context.NONE); + return service.createOrReplaceDiscoGroupSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, + accept, discoGroupData, requestOptions, Context.NONE); } /** * Run a discovery group with a given groupName. - * + * * @param groupName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3822,23 +3100,14 @@ public Response createOrReplaceDiscoGroupWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> runDiscoGroupWithResponseAsync(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.runDiscoGroup( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.runDiscoGroup(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, + accept, requestOptions, context)); } /** * Run a discovery group with a given groupName. - * + * * @param groupName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3850,35 +3119,47 @@ public Mono> runDiscoGroupWithResponseAsync(String groupName, Req @ServiceMethod(returns = ReturnType.SINGLE) public Response runDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.runDiscoGroupSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - accept, - requestOptions, - Context.NONE); + return service.runDiscoGroupSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, accept, requestOptions, + Context.NONE); } /** * Retrieve a collection of discovery run results for a discovery group with a given groupName. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -3901,7 +3182,7 @@ public Response runDiscoGroupWithResponse(String groupName, RequestOptions
      *     ]
      * }
      * }
- * + * * @param groupName The unique identifier for the discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3913,46 +3194,50 @@ public Response runDiscoGroupWithResponse(String groupName, RequestOptions @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listRunsSinglePageAsync(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listRuns( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - 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.listRuns(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, + accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a collection of discovery run results for a discovery group with a given groupName. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -3975,7 +3260,7 @@ private Mono> listRunsSinglePageAsync(String groupName
      *     ]
      * }
      * }
- * + * * @param groupName The unique identifier for the discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3988,54 +3273,67 @@ private Mono> listRunsSinglePageAsync(String groupName public PagedFlux listRunsAsync(String groupName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listRunsSinglePageAsync(groupName, requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listRunsNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listRunsSinglePageAsync(groupName, requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listRunsNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a collection of discovery run results for a discovery group with a given groupName. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -4058,7 +3356,7 @@ public PagedFlux listRunsAsync(String groupName, RequestOptions requ
      *     ]
      * }
      * }
- * + * * @param groupName The unique identifier for the discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4070,43 +3368,49 @@ public PagedFlux listRunsAsync(String groupName, RequestOptions requ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listRunsSinglePage(String groupName, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listRunsSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - groupName, - 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.listRunsSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), groupName, + accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a collection of discovery run results for a discovery group with a given groupName. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -4129,7 +3433,7 @@ private PagedResponse listRunsSinglePage(String groupName, RequestOp
      *     ]
      * }
      * }
- * + * * @param groupName The unique identifier for the discovery group. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4142,54 +3446,67 @@ private PagedResponse listRunsSinglePage(String groupName, RequestOp public PagedIterable listRuns(String groupName, RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listRunsSinglePage(groupName, requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listRunsNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listRunsSinglePage(groupName, requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listRunsNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of disco templates for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4211,57 +3528,62 @@ public PagedIterable listRuns(String groupName, RequestOptions reque
      *     ]
      * }
      * }
- * + * * @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. * @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 paged collection of DiscoTemplate items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDiscoTemplateSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDiscoTemplate( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDiscoTemplate(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of disco templates for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4283,7 +3605,7 @@ private Mono> listDiscoTemplateSinglePageAsync(Request
      *     ]
      * }
      * }
- * + * * @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. @@ -4295,54 +3617,67 @@ private Mono> listDiscoTemplateSinglePageAsync(Request public PagedFlux listDiscoTemplateAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoTemplateSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoTemplateNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDiscoTemplateSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDiscoTemplateNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of disco templates for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4364,7 +3699,7 @@ public PagedFlux listDiscoTemplateAsync(RequestOptions requestOption
      *     ]
      * }
      * }
- * + * * @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. @@ -4375,42 +3710,49 @@ public PagedFlux listDiscoTemplateAsync(RequestOptions requestOption @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDiscoTemplateSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDiscoTemplateSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listDiscoTemplateSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of disco templates for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4432,7 +3774,7 @@ private PagedResponse listDiscoTemplateSinglePage(RequestOptions req
      *     ]
      * }
      * }
- * + * * @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. @@ -4444,42 +3786,36 @@ private PagedResponse listDiscoTemplateSinglePage(RequestOptions req public PagedIterable listDiscoTemplate(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoTemplateSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listDiscoTemplateNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listDiscoTemplateSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listDiscoTemplateNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Retrieve a disco template with a given templateId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4501,39 +3837,30 @@ public PagedIterable listDiscoTemplate(RequestOptions requestOptions
      *     ]
      * }
      * }
- * + * * @param templateId The system generated unique id for the resource. * @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. * @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 items in the current page of results along with {@link Response} on successful completion of {@link - * Mono}. + * @return the items in the current page of results along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getDiscoTemplateWithResponseAsync( - String templateId, RequestOptions requestOptions) { + public Mono> getDiscoTemplateWithResponseAsync(String templateId, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getDiscoTemplate( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - templateId, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getDiscoTemplate(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), templateId, + accept, requestOptions, context)); } /** * Retrieve a disco template with a given templateId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -4555,7 +3882,7 @@ public Mono> getDiscoTemplateWithResponseAsync(
      *     ]
      * }
      * }
- * + * * @param templateId The system generated unique id for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4567,23 +3894,16 @@ public Mono> getDiscoTemplateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Response getDiscoTemplateWithResponse(String templateId, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getDiscoTemplateSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - templateId, - accept, - requestOptions, - Context.NONE); + return service.getDiscoTemplateSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), templateId, accept, requestOptions, + Context.NONE); } /** * Get billable assets summary for the workspace. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -4600,36 +3920,28 @@ public Response getDiscoTemplateWithResponse(String templateId, Requ
      *     ]
      * }
      * }
- * + * * @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. * @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 billable assets summary for the workspace along with {@link Response} on successful completion of {@link - * Mono}. + * @return billable assets summary for the workspace along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getBillableWithResponseAsync(RequestOptions requestOptions) { final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.getBillable( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - requestOptions, - context)); + context -> service.getBillable(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** * Get billable assets summary for the workspace. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -4646,7 +3958,7 @@ public Mono> getBillableWithResponseAsync(RequestOptions re
      *     ]
      * }
      * }
- * + * * @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. @@ -4657,22 +3969,15 @@ public Mono> getBillableWithResponseAsync(RequestOptions re @ServiceMethod(returns = ReturnType.SINGLE) public Response getBillableWithResponse(RequestOptions requestOptions) { final String accept = "application/json"; - return service.getBillableSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - requestOptions, - Context.NONE); + return service.getBillableSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } /** * Get the most recent snapshot of asset summary values for the snapshot request. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metric: String (Optional)
@@ -4681,9 +3986,9 @@ public Response getBillableWithResponse(RequestOptions requestOption
      *     page: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     displayName: String (Optional)
@@ -4725,7 +4030,7 @@ public Response getBillableWithResponse(RequestOptions requestOption
      *     }
      * }
      * }
- * + * * @param reportAssetSnapshotRequest A request body used to retrieve an asset report snapshot. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4733,31 +4038,22 @@ public Response getBillableWithResponse(RequestOptions requestOption * @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 most recent snapshot of asset summary values for the snapshot request along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSnapshotWithResponseAsync( - BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) { + public Mono> getSnapshotWithResponseAsync(BinaryData reportAssetSnapshotRequest, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getSnapshot( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - reportAssetSnapshotRequest, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getSnapshot(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + reportAssetSnapshotRequest, requestOptions, context)); } /** * Get the most recent snapshot of asset summary values for the snapshot request. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metric: String (Optional)
@@ -4766,9 +4062,9 @@ public Mono> getSnapshotWithResponseAsync(
      *     page: Integer (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     displayName: String (Optional)
@@ -4810,7 +4106,7 @@ public Mono> getSnapshotWithResponseAsync(
      *     }
      * }
      * }
- * + * * @param reportAssetSnapshotRequest A request body used to retrieve an asset report snapshot. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4820,26 +4116,19 @@ public Mono> getSnapshotWithResponseAsync( * @return the most recent snapshot of asset summary values for the snapshot request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSnapshotWithResponse( - BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) { + public Response getSnapshotWithResponse(BinaryData reportAssetSnapshotRequest, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.getSnapshotSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - reportAssetSnapshotRequest, - requestOptions, - Context.NONE); + return service.getSnapshotSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, reportAssetSnapshotRequest, + requestOptions, Context.NONE); } /** * Get asset summary details for the summary request. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metricCategories (Optional): [
@@ -4856,9 +4145,9 @@ public Response getSnapshotWithResponse(
      *     labelName: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -4879,40 +4168,31 @@ public Response getSnapshotWithResponse(
      *     ]
      * }
      * }
- * + * * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one - * collection of summary identifiers must be provided: filters, metrics, or metricCategories. + * collection of summary identifiers must be provided: filters, metrics, or metricCategories. * @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. * @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 asset summary details for the summary request along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSummaryWithResponseAsync( - BinaryData reportAssetSummaryRequest, RequestOptions requestOptions) { + public Mono> getSummaryWithResponseAsync(BinaryData reportAssetSummaryRequest, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getSummary( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - reportAssetSummaryRequest, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getSummary(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + reportAssetSummaryRequest, requestOptions, context)); } /** * Get asset summary details for the summary request. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     metricCategories (Optional): [
@@ -4929,9 +4209,9 @@ public Mono> getSummaryWithResponseAsync(
      *     labelName: String (Optional)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     assetSummaries (Optional): [
@@ -4952,9 +4232,9 @@ public Mono> getSummaryWithResponseAsync(
      *     ]
      * }
      * }
- * + * * @param reportAssetSummaryRequest A request body used to retrieve summary asset information. One and only one - * collection of summary identifiers must be provided: filters, metrics, or metricCategories. + * collection of summary identifiers must be provided: filters, metrics, or metricCategories. * @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. @@ -4963,38 +4243,50 @@ public Mono> getSummaryWithResponseAsync( * @return asset summary details for the summary request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSummaryWithResponse( - BinaryData reportAssetSummaryRequest, RequestOptions requestOptions) { + public Response getSummaryWithResponse(BinaryData reportAssetSummaryRequest, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.getSummarySync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - accept, - reportAssetSummaryRequest, - requestOptions, - Context.NONE); + return service.getSummarySync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, reportAssetSummaryRequest, + requestOptions, Context.NONE); } /** * Retrieve a list of saved filters for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5004,57 +4296,62 @@ public Response getSummaryWithResponse(
      *     description: String (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. * @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 paged collection of SavedFilter items along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return paged collection of SavedFilter items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSavedFilterSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listSavedFilter( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listSavedFilter(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, + requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of saved filters for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5064,7 +4361,7 @@ private Mono> listSavedFilterSinglePageAsync(RequestOp
      *     description: String (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. @@ -5076,54 +4373,67 @@ private Mono> listSavedFilterSinglePageAsync(RequestOp public PagedFlux listSavedFilterAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listSavedFilterSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listSavedFilterNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listSavedFilterSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listSavedFilterNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of saved filters for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5133,7 +4443,7 @@ public PagedFlux listSavedFilterAsync(RequestOptions requestOptions)
      *     description: String (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. @@ -5144,42 +4454,49 @@ public PagedFlux listSavedFilterAsync(RequestOptions requestOptions) @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSavedFilterSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listSavedFilterSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listSavedFilterSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of saved filters for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5189,7 +4506,7 @@ private PagedResponse listSavedFilterSinglePage(RequestOptions reque
      *     description: String (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. @@ -5201,42 +4518,36 @@ private PagedResponse listSavedFilterSinglePage(RequestOptions reque public PagedIterable listSavedFilter(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listSavedFilterSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listSavedFilterNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listSavedFilterSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listSavedFilterNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Retrieve a saved filter by filterName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5246,7 +4557,7 @@ public PagedIterable listSavedFilter(RequestOptions requestOptions)
      *     description: String (Optional)
      * }
      * }
- * + * * @param filterName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5256,28 +4567,19 @@ public PagedIterable listSavedFilter(RequestOptions requestOptions) * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSavedFilterWithResponseAsync( - String filterName, RequestOptions requestOptions) { + public Mono> getSavedFilterWithResponseAsync(String filterName, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getSavedFilter( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getSavedFilter(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), filterName, + accept, requestOptions, context)); } /** * Retrieve a saved filter by filterName. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5287,7 +4589,7 @@ public Mono> getSavedFilterWithResponseAsync(
      *     description: String (Optional)
      * }
      * }
- * + * * @param filterName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5299,32 +4601,25 @@ public Mono> getSavedFilterWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Response getSavedFilterWithResponse(String filterName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getSavedFilterSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - requestOptions, - Context.NONE); + return service.getSavedFilterSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), filterName, accept, requestOptions, + Context.NONE); } /** * Create or replace a saved filter with a given filterName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     filter: String (Required)
      *     description: String (Required)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5334,7 +4629,7 @@ public Response getSavedFilterWithResponse(String filterName, Reques
      *     description: String (Optional)
      * }
      * }
- * + * * @param filterName The caller provided unique name for the resource. * @param savedFilterData A request body used to create a saved filter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5345,38 +4640,28 @@ public Response getSavedFilterWithResponse(String filterName, Reques * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrReplaceSavedFilterWithResponseAsync( - String filterName, BinaryData savedFilterData, RequestOptions requestOptions) { + public Mono> createOrReplaceSavedFilterWithResponseAsync(String filterName, + BinaryData savedFilterData, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.createOrReplaceSavedFilter( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - savedFilterData, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.createOrReplaceSavedFilter(this.getEndpoint(), + this.getSubscriptionId(), this.getResourceGroupName(), this.getWorkspaceName(), + this.getServiceVersion().getVersion(), filterName, accept, savedFilterData, requestOptions, context)); } /** * Create or replace a saved filter with a given filterName. - * - *

Request Body Schema - * + *

+ * Request Body Schema + *

*
{@code
      * {
      *     filter: String (Required)
      *     description: String (Required)
      * }
      * }
- * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -5386,7 +4671,7 @@ public Mono> createOrReplaceSavedFilterWithResponseAsync(
      *     description: String (Optional)
      * }
      * }
- * + * * @param filterName The caller provided unique name for the resource. * @param savedFilterData A request body used to create a saved filter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5397,25 +4682,17 @@ public Mono> createOrReplaceSavedFilterWithResponseAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrReplaceSavedFilterWithResponse( - String filterName, BinaryData savedFilterData, RequestOptions requestOptions) { + public Response createOrReplaceSavedFilterWithResponse(String filterName, BinaryData savedFilterData, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.createOrReplaceSavedFilterSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - savedFilterData, - requestOptions, - Context.NONE); + return service.createOrReplaceSavedFilterSync(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), filterName, + accept, savedFilterData, requestOptions, Context.NONE); } /** * Delete a saved filter with a given filterName. - * + * * @param filterName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5427,23 +4704,14 @@ public Response createOrReplaceSavedFilterWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSavedFilterWithResponseAsync(String filterName, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.deleteSavedFilter( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.deleteSavedFilter(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), filterName, + accept, requestOptions, context)); } /** * Delete a saved filter with a given filterName. - * + * * @param filterName The caller provided unique name for the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5455,36 +4723,53 @@ public Mono> deleteSavedFilterWithResponseAsync(String filterName @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteSavedFilterWithResponse(String filterName, RequestOptions requestOptions) { final String accept = "application/json"; - return service.deleteSavedFilterSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - filterName, - accept, - requestOptions, - Context.NONE); + return service.deleteSavedFilterSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), filterName, accept, requestOptions, + Context.NONE); } /** * Retrieve a list of tasks for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5499,7 +4784,7 @@ public Response deleteSavedFilterWithResponse(String filterName, RequestOp
      *     }
      * }
      * }
- * + * * @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. @@ -5510,46 +4795,56 @@ public Response deleteSavedFilterWithResponse(String filterName, RequestOp @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listTaskSinglePageAsync(RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listTask( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listTask(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Retrieve a list of tasks for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5564,7 +4859,7 @@ private Mono> listTaskSinglePageAsync(RequestOptions r
      *     }
      * }
      * }
- * + * * @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. @@ -5576,55 +4871,73 @@ private Mono> listTaskSinglePageAsync(RequestOptions r public PagedFlux listTaskAsync(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedFlux<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listTaskSinglePageAsync(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listTaskNextSinglePageAsync(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listTaskSinglePageAsync(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listTaskNextSinglePageAsync(nextLink, requestOptionsLocal); + }); } /** * Retrieve a list of tasks for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5639,7 +4952,7 @@ public PagedFlux listTaskAsync(RequestOptions requestOptions) {
      *     }
      * }
      * }
- * + * * @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. @@ -5650,43 +4963,55 @@ public PagedFlux listTaskAsync(RequestOptions requestOptions) { @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listTaskSinglePage(RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listTaskSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - 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.listTaskSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Retrieve a list of tasks for the provided search parameters. - * - *

Query Parameters - * + *

+ * Query Parameters + *

* - * - * - * - * - * - * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
Query Parameters
NameTypeRequiredDescription
filterStringNoFilter the result list using the given expression.
orderbyStringNoA list of expressions that specify the order of the returned resources.
skipIntegerNoThe number of result items to skip.
maxpagesizeIntegerNoThe maximum number of result items per page.
- * * You can add these to a request with {@link RequestOptions#addQueryParam} - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5701,7 +5026,7 @@ private PagedResponse listTaskSinglePage(RequestOptions requestOptio
      *     }
      * }
      * }
- * + * * @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. @@ -5713,42 +5038,36 @@ private PagedResponse listTaskSinglePage(RequestOptions requestOptio public PagedIterable listTask(RequestOptions requestOptions) { RequestOptions requestOptionsForNextPage = new RequestOptions(); requestOptionsForNextPage.setContext( - requestOptions != null && requestOptions.getContext() != null - ? requestOptions.getContext() - : Context.NONE); - return new PagedIterable<>( - (pageSize) -> { - RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listTaskSinglePage(requestOptionsLocal); - }, - (nextLink, pageSize) -> { - RequestOptions requestOptionsLocal = new RequestOptions(); - requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); - if (pageSize != null) { - requestOptionsLocal.addRequestCallback( - requestLocal -> { - UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); - urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); - requestLocal.setUrl(urlBuilder.toString()); - }); - } - return listTaskNextSinglePage(nextLink, requestOptionsLocal); + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>((pageSize) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); }); + } + return listTaskSinglePage(requestOptionsLocal); + }, (nextLink, pageSize) -> { + RequestOptions requestOptionsLocal = new RequestOptions(); + requestOptionsLocal.setContext(requestOptionsForNextPage.getContext()); + if (pageSize != null) { + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("maxpagesize", String.valueOf(pageSize)); + requestLocal.setUrl(urlBuilder.toString()); + }); + } + return listTaskNextSinglePage(nextLink, requestOptionsLocal); + }); } /** * Retrieve a task by taskId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5763,7 +5082,7 @@ public PagedIterable listTask(RequestOptions requestOptions) {
      *     }
      * }
      * }
- * + * * @param taskId The unique identifier of the task. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5775,25 +5094,16 @@ public PagedIterable listTask(RequestOptions requestOptions) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getTaskWithResponseAsync(String taskId, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.getTask( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - taskId, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.getTask(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), taskId, accept, + requestOptions, context)); } /** * Retrieve a task by taskId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5808,7 +5118,7 @@ public Mono> getTaskWithResponseAsync(String taskId, Reques
      *     }
      * }
      * }
- * + * * @param taskId The unique identifier of the task. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5820,23 +5130,16 @@ public Mono> getTaskWithResponseAsync(String taskId, Reques @ServiceMethod(returns = ReturnType.SINGLE) public Response getTaskWithResponse(String taskId, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getTaskSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - taskId, - accept, - requestOptions, - Context.NONE); + return service.getTaskSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), taskId, accept, requestOptions, + Context.NONE); } /** * Cancel a task by taskId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5851,7 +5154,7 @@ public Response getTaskWithResponse(String taskId, RequestOptions re
      *     }
      * }
      * }
- * + * * @param taskId The unique identifier of the task. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5863,25 +5166,16 @@ public Response getTaskWithResponse(String taskId, RequestOptions re @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelTaskWithResponseAsync(String taskId, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.cancelTask( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - taskId, - accept, - requestOptions, - context)); + return FluxUtil.withContext(context -> service.cancelTask(this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), this.getServiceVersion().getVersion(), taskId, accept, + requestOptions, context)); } /** * Cancel a task by taskId. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5896,7 +5190,7 @@ public Mono> cancelTaskWithResponseAsync(String taskId, Req
      *     }
      * }
      * }
- * + * * @param taskId The unique identifier of the task. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5908,23 +5202,16 @@ public Mono> cancelTaskWithResponseAsync(String taskId, Req @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelTaskWithResponse(String taskId, RequestOptions requestOptions) { final String accept = "application/json"; - return service.cancelTaskSync( - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - this.getServiceVersion().getVersion(), - taskId, - accept, - requestOptions, - Context.NONE); + return service.cancelTaskSync(this.getEndpoint(), this.getSubscriptionId(), this.getResourceGroupName(), + this.getWorkspaceName(), this.getServiceVersion().getVersion(), taskId, accept, requestOptions, + Context.NONE); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -5952,48 +5239,35 @@ public Response cancelTaskWithResponse(String taskId, RequestOptions
      *     reason: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 paged collection of AssetResource items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAssetResourceNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listAssetResourceNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listAssetResourceNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listAssetResourceNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -6021,9 +5295,10 @@ private Mono> listAssetResourceNextSinglePageAsync(
      *     reason: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6034,30 +5309,18 @@ private Mono> listAssetResourceNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listAssetResourceNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listAssetResourceNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listAssetResourceNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6073,48 +5336,35 @@ private PagedResponse listAssetResourceNextSinglePage(String nextLin
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 paged collection of DataConnection items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDataConnectionNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listDataConnectionNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDataConnectionNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDataConnectionNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6130,9 +5380,10 @@ private Mono> listDataConnectionNextSinglePageAsync(
      *     inactiveMessage: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6143,30 +5394,18 @@ private Mono> listDataConnectionNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDataConnectionNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDataConnectionNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDataConnectionNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6208,48 +5447,34 @@ private PagedResponse listDataConnectionNextSinglePage(String nextLi
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 paged collection of DiscoGroup items along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return paged collection of DiscoGroup items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDiscoGroupNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listDiscoGroupNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDiscoGroupNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDiscoGroupNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6291,9 +5516,10 @@ private Mono> listDiscoGroupNextSinglePageAsync(
      *     templateId: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6304,30 +5530,18 @@ private Mono> listDiscoGroupNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDiscoGroupNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDiscoGroupNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDiscoGroupNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -6350,9 +5564,10 @@ private PagedResponse listDiscoGroupNextSinglePage(String nextLink,
      *     ]
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6361,36 +5576,21 @@ private PagedResponse listDiscoGroupNextSinglePage(String nextLink, * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listRunsNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listRunsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listRunsNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listRunsNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     submittedDate: OffsetDateTime (Optional)
@@ -6413,9 +5613,10 @@ private Mono> listRunsNextSinglePageAsync(
      *     ]
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6426,30 +5627,17 @@ private Mono> listRunsNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listRunsNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listRunsNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listRunsNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -6471,48 +5659,35 @@ private PagedResponse listRunsNextSinglePage(String nextLink, Reques
      *     ]
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 paged collection of DiscoTemplate items along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDiscoTemplateNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listDiscoTemplateNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listDiscoTemplateNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDiscoTemplateNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -6534,9 +5709,10 @@ private Mono> listDiscoTemplateNextSinglePageAsync(
      *     ]
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6547,30 +5723,18 @@ private Mono> listDiscoTemplateNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listDiscoTemplateNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listDiscoTemplateNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listDiscoTemplateNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6580,48 +5744,34 @@ private PagedResponse listDiscoTemplateNextSinglePage(String nextLin
      *     description: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. * @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 paged collection of SavedFilter items along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return paged collection of SavedFilter items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSavedFilterNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listSavedFilterNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listSavedFilterNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listSavedFilterNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Optional)
@@ -6631,9 +5781,10 @@ private Mono> listSavedFilterNextSinglePageAsync(
      *     description: String (Optional)
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6644,30 +5795,18 @@ private Mono> listSavedFilterNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSavedFilterNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listSavedFilterNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listSavedFilterNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -6682,9 +5821,10 @@ private PagedResponse listSavedFilterNextSinglePage(String nextLink,
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6693,36 +5833,21 @@ private PagedResponse listSavedFilterNextSinglePage(String nextLink, * @return paged collection of Task items along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listTaskNextSinglePageAsync( - String nextLink, RequestOptions requestOptions) { + private Mono> listTaskNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.listTaskNext( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listTaskNext(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null)); } /** * Get the next page of items. - * - *

Response Body Schema - * + *

+ * Response Body Schema + *

*
{@code
      * {
      *     id: String (Required)
@@ -6737,9 +5862,10 @@ private Mono> listTaskNextSinglePageAsync(
      *     }
      * }
      * }
- * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -6750,23 +5876,10 @@ private Mono> listTaskNextSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listTaskNextSinglePage(String nextLink, RequestOptions requestOptions) { final String accept = "application/json"; - Response res = - service.listTaskNextSync( - nextLink, - this.getEndpoint(), - this.getSubscriptionId(), - this.getResourceGroupName(), - this.getWorkspaceName(), - 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.listTaskNextSync(nextLink, this.getEndpoint(), this.getSubscriptionId(), + this.getResourceGroupName(), this.getWorkspaceName(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "value"), getNextLink(res.getValue(), "nextLink"), null); } private List getValues(BinaryData binaryData, String path) { diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AlexaDetails.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AlexaDetails.java index 0a6045aded4b..67a5ded022f7 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AlexaDetails.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AlexaDetails.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The AlexaDetails model. */ +/** + * The AlexaDetails model. + */ @Immutable public final class AlexaDetails { @@ -54,9 +56,12 @@ public final class AlexaDetails { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of AlexaDetails class. */ + /** + * Creates an instance of AlexaDetails class. + */ @Generated - private AlexaDetails() {} + private AlexaDetails() { + } /** * Get the alexaRank property: The alexaRank property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAsset.java index 1415a6a942f7..427f99e93c14 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The AsAsset model. */ +/** + * The AsAsset model. + */ @Immutable public final class AsAsset extends InventoryAsset { @@ -188,9 +190,12 @@ public final class AsAsset extends InventoryAsset { @JsonProperty(value = "detailedFromWhoisAt") private OffsetDateTime detailedFromWhoisAt; - /** Creates an instance of AsAsset class. */ + /** + * Creates an instance of AsAsset class. + */ @Generated - private AsAsset() {} + private AsAsset() { + } /** * Get the asn property: The asn property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAssetResource.java index 716f27808b08..81d9532f1f23 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The AsAssetResource model. */ +/** + * The AsAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("as") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetPageResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetPageResult.java index 04082fd84c1e..019921235e94 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetPageResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetPageResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The page of assets that match the provided metric. */ +/** + * The page of assets that match the provided metric. + */ @Immutable public final class AssetPageResult { @@ -20,14 +22,14 @@ public final class AssetPageResult { private Long totalElements; /* - * The cursor mark to be used on the next request. Not set if using paging. + * The cursor mark to be used on the next request. Not set if using paging. */ @Generated @JsonProperty(value = "mark") private String mark; /* - * The link to access the next page of results. Not set if at the end of the result set. + * The link to access the next page of results. Not set if at the end of the result set. */ @Generated @JsonProperty(value = "nextLink") @@ -40,9 +42,12 @@ public final class AssetPageResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of AssetPageResult class. */ + /** + * Creates an instance of AssetPageResult class. + */ @Generated - private AssetPageResult() {} + private AssetPageResult() { + } /** * Get the totalElements property: The total number of items available in the full result set. @@ -65,7 +70,8 @@ public String getMark() { } /** - * Get the nextLink property: The link to access the next page of results. Not set if at the end of the result set. + * Get the nextLink property: The link to access the next page of results. Not set if at the end of the result + * set. * * @return the nextLink value. */ diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetResource.java index cc18a54d6595..7bf8970da840 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetResource.java @@ -12,12 +12,14 @@ import java.time.OffsetDateTime; import java.util.List; -/** The items in the current page of results. */ +/** + * The items in the current page of results. + */ @JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "kind", - defaultImpl = AssetResource.class) + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = AssetResource.class) @JsonTypeName("AssetResource") @JsonSubTypes({ @JsonSubTypes.Type(name = "as", value = AsAssetResource.class), @@ -27,8 +29,7 @@ @JsonSubTypes.Type(name = "ipAddress", value = IpAddressAssetResource.class), @JsonSubTypes.Type(name = "ipBlock", value = IpBlockAssetResource.class), @JsonSubTypes.Type(name = "page", value = PageAssetResource.class), - @JsonSubTypes.Type(name = "sslCert", value = SslCertAssetResource.class) -}) + @JsonSubTypes.Type(name = "sslCert", value = SslCertAssetResource.class) }) @Immutable public class AssetResource { @@ -123,9 +124,12 @@ public class AssetResource { @JsonProperty(value = "reason") private String reason; - /** Creates an instance of AssetResource class. */ + /** + * Creates an instance of AssetResource class. + */ @Generated - protected AssetResource() {} + protected AssetResource() { + } /** * Get the id property: The system generated unique id for the resource. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSecurityPolicy.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSecurityPolicy.java index 395e7ab14119..aa705072f186 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSecurityPolicy.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSecurityPolicy.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The AssetSecurityPolicy model. */ +/** + * The AssetSecurityPolicy model. + */ @Immutable public final class AssetSecurityPolicy { @@ -69,9 +71,12 @@ public final class AssetSecurityPolicy { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of AssetSecurityPolicy class. */ + /** + * Creates an instance of AssetSecurityPolicy class. + */ @Generated - private AssetSecurityPolicy() {} + private AssetSecurityPolicy() { + } /** * Get the policyName property: The policyName property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetState.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetState.java index f3bc9e363620..bd60827d2ea0 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetState.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetState.java @@ -8,29 +8,52 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AssetState. */ +/** + * Defines values for AssetState. + */ public final class AssetState extends ExpandableStringEnum { - /** Static value candidate for AssetState. */ - @Generated public static final AssetState CANDIDATE = fromString("candidate"); + /** + * Static value candidate for AssetState. + */ + @Generated + public static final AssetState CANDIDATE = fromString("candidate"); - /** Static value confirmed for AssetState. */ - @Generated public static final AssetState CONFIRMED = fromString("confirmed"); + /** + * Static value confirmed for AssetState. + */ + @Generated + public static final AssetState CONFIRMED = fromString("confirmed"); - /** Static value dismissed for AssetState. */ - @Generated public static final AssetState DISMISSED = fromString("dismissed"); + /** + * Static value dismissed for AssetState. + */ + @Generated + public static final AssetState DISMISSED = fromString("dismissed"); - /** Static value candidateInvestigate for AssetState. */ - @Generated public static final AssetState CANDIDATE_INVESTIGATE = fromString("candidateInvestigate"); + /** + * Static value candidateInvestigate for AssetState. + */ + @Generated + public static final AssetState CANDIDATE_INVESTIGATE = fromString("candidateInvestigate"); - /** Static value associatedPartner for AssetState. */ - @Generated public static final AssetState ASSOCIATED_PARTNER = fromString("associatedPartner"); + /** + * Static value associatedPartner for AssetState. + */ + @Generated + public static final AssetState ASSOCIATED_PARTNER = fromString("associatedPartner"); - /** Static value associatedThirdparty for AssetState. */ - @Generated public static final AssetState ASSOCIATED_THIRDPARTY = fromString("associatedThirdparty"); + /** + * Static value associatedThirdparty for AssetState. + */ + @Generated + public static final AssetState ASSOCIATED_THIRDPARTY = fromString("associatedThirdparty"); - /** Static value archived for AssetState. */ - @Generated public static final AssetState ARCHIVED = fromString("archived"); + /** + * Static value archived for AssetState. + */ + @Generated + public static final AssetState ARCHIVED = fromString("archived"); /** * Creates a new instance of AssetState value. @@ -39,7 +62,8 @@ public final class AssetState extends ExpandableStringEnum { */ @Generated @Deprecated - public AssetState() {} + public AssetState() { + } /** * Creates or finds a AssetState from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSummaryResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSummaryResult.java index f457be1dfb9d..ba753567496a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSummaryResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetSummaryResult.java @@ -9,12 +9,14 @@ import java.time.OffsetDateTime; import java.util.List; -/** The collection of asset summaries. */ +/** + * The collection of asset summaries. + */ @Immutable public final class AssetSummaryResult { /* - * The name of the summary response. Depending on the request time this will either be the asset filter, risk + * The name of the summary response. Depending on the request time this will either be the asset filter, risk * category, or risk metric. */ @Generated @@ -22,7 +24,7 @@ public final class AssetSummaryResult { private String displayName; /* - * The description of the summary response. Filters don't have a description. + * The description of the summary response. Filters don't have a description. */ @Generated @JsonProperty(value = "description") @@ -79,20 +81,23 @@ public final class AssetSummaryResult { private String link; /* - * The corresponding child entities. For metric categories this will contain metrics. For filters with groupBy + * The corresponding child entities. For metric categories this will contain metrics. For filters with groupBy * and segmentBy this will contain facets. */ @Generated @JsonProperty(value = "children") private List children; - /** Creates an instance of AssetSummaryResult class. */ + /** + * Creates an instance of AssetSummaryResult class. + */ @Generated - private AssetSummaryResult() {} + private AssetSummaryResult() { + } /** - * Get the displayName property: The name of the summary response. Depending on the request time this will either be - * the asset filter, risk category, or risk metric. + * Get the displayName property: The name of the summary response. Depending on the request time this will either + * be the asset filter, risk category, or risk metric. * * @return the displayName value. */ @@ -184,8 +189,8 @@ public String getLink() { } /** - * Get the children property: The corresponding child entities. For metric categories this will contain metrics. For - * filters with groupBy and segmentBy this will contain facets. + * Get the children property: The corresponding child entities. For metric categories this will contain metrics. + * For filters with groupBy and segmentBy this will contain facets. * * @return the children value. */ diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateData.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateData.java index 67d129f402de..d27f26c9310d 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateData.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateData.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** A request body used to update an asset. */ +/** + * A request body used to update an asset. + */ @Fluent public final class AssetUpdateData { @@ -40,9 +42,12 @@ public final class AssetUpdateData { @JsonProperty(value = "transfers") private AssetUpdateTransfers transfers; - /** Creates an instance of AssetUpdateData class. */ + /** + * Creates an instance of AssetUpdateData class. + */ @Generated - public AssetUpdateData() {} + public AssetUpdateData() { + } /** * Get the state property: The state to update the asset to. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateState.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateState.java index 451110a27f3a..f2bdbfb6ba55 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateState.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AssetUpdateState.java @@ -8,26 +8,46 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The state to update the asset to. */ +/** + * The state to update the asset to. + */ public final class AssetUpdateState extends ExpandableStringEnum { - /** Static value candidate for AssetUpdateState. */ - @Generated public static final AssetUpdateState CANDIDATE = fromString("candidate"); + /** + * Static value candidate for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState CANDIDATE = fromString("candidate"); - /** Static value confirmed for AssetUpdateState. */ - @Generated public static final AssetUpdateState CONFIRMED = fromString("confirmed"); + /** + * Static value confirmed for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState CONFIRMED = fromString("confirmed"); - /** Static value dismissed for AssetUpdateState. */ - @Generated public static final AssetUpdateState DISMISSED = fromString("dismissed"); + /** + * Static value dismissed for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState DISMISSED = fromString("dismissed"); - /** Static value candidateInvestigate for AssetUpdateState. */ - @Generated public static final AssetUpdateState CANDIDATE_INVESTIGATE = fromString("candidateInvestigate"); + /** + * Static value candidateInvestigate for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState CANDIDATE_INVESTIGATE = fromString("candidateInvestigate"); - /** Static value associatedPartner for AssetUpdateState. */ - @Generated public static final AssetUpdateState ASSOCIATED_PARTNER = fromString("associatedPartner"); + /** + * Static value associatedPartner for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState ASSOCIATED_PARTNER = fromString("associatedPartner"); - /** Static value associatedThirdparty for AssetUpdateState. */ - @Generated public static final AssetUpdateState ASSOCIATED_THIRDPARTY = fromString("associatedThirdparty"); + /** + * Static value associatedThirdparty for AssetUpdateState. + */ + @Generated + public static final AssetUpdateState ASSOCIATED_THIRDPARTY = fromString("associatedThirdparty"); /** * Creates a new instance of AssetUpdateState value. @@ -36,7 +56,8 @@ public final class AssetUpdateState extends ExpandableStringEnum { - /** Static value as for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers AS = fromString("as"); + /** + * Static value as for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers AS = fromString("as"); - /** Static value contact for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers CONTACT = fromString("contact"); + /** + * Static value contact for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers CONTACT = fromString("contact"); - /** Static value domain for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers DOMAIN = fromString("domain"); + /** + * Static value domain for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers DOMAIN = fromString("domain"); - /** Static value host for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers HOST = fromString("host"); + /** + * Static value host for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers HOST = fromString("host"); - /** Static value ipAddress for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers IP_ADDRESS = fromString("ipAddress"); + /** + * Static value ipAddress for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers IP_ADDRESS = fromString("ipAddress"); - /** Static value ipBlock for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers IP_BLOCK = fromString("ipBlock"); + /** + * Static value ipBlock for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers IP_BLOCK = fromString("ipBlock"); - /** Static value page for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers PAGE = fromString("page"); + /** + * Static value page for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers PAGE = fromString("page"); - /** Static value sslCert for AssetUpdateTransfers. */ - @Generated public static final AssetUpdateTransfers SSL_CERT = fromString("sslCert"); + /** + * Static value sslCert for AssetUpdateTransfers. + */ + @Generated + public static final AssetUpdateTransfers SSL_CERT = fromString("sslCert"); /** * Creates a new instance of AssetUpdateTransfers value. @@ -42,7 +68,8 @@ public final class AssetUpdateTransfers extends ExpandableStringEnum { - /** Static value as for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind AS = fromString("as"); + /** + * Static value as for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind AS = fromString("as"); - /** Static value contact for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind CONTACT = fromString("contact"); + /** + * Static value contact for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind CONTACT = fromString("contact"); - /** Static value domain for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind DOMAIN = fromString("domain"); + /** + * Static value domain for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind DOMAIN = fromString("domain"); - /** Static value host for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind HOST = fromString("host"); + /** + * Static value host for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind HOST = fromString("host"); - /** Static value ipAddress for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind IP_ADDRESS = fromString("ipAddress"); + /** + * Static value ipAddress for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind IP_ADDRESS = fromString("ipAddress"); - /** Static value ipBlock for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind IP_BLOCK = fromString("ipBlock"); + /** + * Static value ipBlock for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind IP_BLOCK = fromString("ipBlock"); - /** Static value page for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind PAGE = fromString("page"); + /** + * Static value page for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind PAGE = fromString("page"); - /** Static value sslCert for AuditTrailItemKind. */ - @Generated public static final AuditTrailItemKind SSL_CERT = fromString("sslCert"); + /** + * Static value sslCert for AuditTrailItemKind. + */ + @Generated + public static final AuditTrailItemKind SSL_CERT = fromString("sslCert"); /** * Creates a new instance of AuditTrailItemKind value. @@ -42,7 +68,8 @@ public final class AuditTrailItemKind extends ExpandableStringEnum sources; - /** Creates an instance of Banner class. */ + /** + * Creates an instance of Banner class. + */ @Generated - private Banner() {} + private Banner() { + } /** * Get the port property: The port property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAsset.java index a3c373a5ba30..778fbdcf1bd7 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The ContactAsset model. */ +/** + * The ContactAsset model. + */ @Immutable public final class ContactAsset extends InventoryAsset { @@ -62,9 +64,12 @@ public final class ContactAsset extends InventoryAsset { @JsonProperty(value = "count") private Long count; - /** Creates an instance of ContactAsset class. */ + /** + * Creates an instance of ContactAsset class. + */ @Generated - private ContactAsset() {} + private ContactAsset() { + } /** * Get the email property: The email property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAssetResource.java index 7343b9970a41..6d2565450721 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ContactAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The ContactAssetResource model. */ +/** + * The ContactAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("contact") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cookie.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cookie.java index 59ddf8257757..f9bf7b175cc5 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cookie.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cookie.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The Cookie model. */ +/** + * The Cookie model. + */ @Immutable public final class Cookie { @@ -61,9 +63,12 @@ public final class Cookie { @JsonProperty(value = "cookieExpiryDate") private OffsetDateTime cookieExpiryDate; - /** Creates an instance of Cookie class. */ + /** + * Creates an instance of Cookie class. + */ @Generated - private Cookie() {} + private Cookie() { + } /** * Get the cookieName property: The cookieName property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cve.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cve.java index c60110e45ebc..ae73107aeda6 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cve.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cve.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Cve model. */ +/** + * The Cve model. + */ @Immutable public final class Cve { @@ -39,9 +41,12 @@ public final class Cve { @JsonProperty(value = "cvss3Summary") private Cvss3Summary cvss3Summary; - /** Creates an instance of Cve class. */ + /** + * Creates an instance of Cve class. + */ @Generated - private Cve() {} + private Cve() { + } /** * Get the name property: The name property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cvss3Summary.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cvss3Summary.java index f59523e19e20..870a77549158 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cvss3Summary.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Cvss3Summary.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Cvss3Summary model. */ +/** + * The Cvss3Summary model. + */ @Immutable public final class Cvss3Summary { @@ -130,9 +132,12 @@ public final class Cvss3Summary { @JsonProperty(value = "impactScore") private Double impactScore; - /** Creates an instance of Cvss3Summary class. */ + /** + * Creates an instance of Cvss3Summary class. + */ @Generated - private Cvss3Summary() {} + private Cvss3Summary() { + } /** * Get the version property: The version property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnection.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnection.java index e6603039762a..f97cf9330e4c 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnection.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnection.java @@ -11,17 +11,18 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.time.OffsetDateTime; -/** The DataConnection model. */ +/** + * The DataConnection model. + */ @JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "kind", - defaultImpl = DataConnection.class) + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = DataConnection.class) @JsonTypeName("DataConnection") @JsonSubTypes({ @JsonSubTypes.Type(name = "logAnalytics", value = LogAnalyticsDataConnection.class), - @JsonSubTypes.Type(name = "azureDataExplorer", value = AzureDataExplorerDataConnection.class) -}) + @JsonSubTypes.Type(name = "azureDataExplorer", value = AzureDataExplorerDataConnection.class) }) @Immutable public class DataConnection { @@ -102,9 +103,12 @@ public class DataConnection { @JsonProperty(value = "inactiveMessage", access = JsonProperty.Access.WRITE_ONLY) private String inactiveMessage; - /** Creates an instance of DataConnection class. */ + /** + * Creates an instance of DataConnection class. + */ @Generated - protected DataConnection() {} + protected DataConnection() { + } /** * Get the id property: The system generated unique id for the resource. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnectionContent.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnectionContent.java index 1ac57dde1e08..4b5431505df8 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnectionContent.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DataConnectionContent.java @@ -8,14 +8,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of data the data connection will transfer. */ +/** + * The type of data the data connection will transfer. + */ public final class DataConnectionContent extends ExpandableStringEnum { - /** Static value assets for DataConnectionContent. */ - @Generated public static final DataConnectionContent ASSETS = fromString("assets"); + /** + * Static value assets for DataConnectionContent. + */ + @Generated + public static final DataConnectionContent ASSETS = fromString("assets"); - /** Static value attackSurfaceInsights for DataConnectionContent. */ - @Generated public static final DataConnectionContent ATTACK_SURFACE_INSIGHTS = fromString("attackSurfaceInsights"); + /** + * Static value attackSurfaceInsights for DataConnectionContent. + */ + @Generated + public static final DataConnectionContent ATTACK_SURFACE_INSIGHTS = fromString("attackSurfaceInsights"); /** * Creates a new instance of DataConnectionContent value. @@ -24,7 +32,8 @@ public final class DataConnectionContent extends ExpandableStringEnum { - /** Static value daily for DataConnectionFrequency. */ - @Generated public static final DataConnectionFrequency DAILY = fromString("daily"); + /** + * Static value daily for DataConnectionFrequency. + */ + @Generated + public static final DataConnectionFrequency DAILY = fromString("daily"); - /** Static value weekly for DataConnectionFrequency. */ - @Generated public static final DataConnectionFrequency WEEKLY = fromString("weekly"); + /** + * Static value weekly for DataConnectionFrequency. + */ + @Generated + public static final DataConnectionFrequency WEEKLY = fromString("weekly"); - /** Static value monthly for DataConnectionFrequency. */ - @Generated public static final DataConnectionFrequency MONTHLY = fromString("monthly"); + /** + * Static value monthly for DataConnectionFrequency. + */ + @Generated + public static final DataConnectionFrequency MONTHLY = fromString("monthly"); /** * Creates a new instance of DataConnectionFrequency value. @@ -27,7 +38,8 @@ public final class DataConnectionFrequency extends ExpandableStringEnum names; - /** Creates an instance of DiscoRunResult class. */ + /** + * Creates an instance of DiscoRunResult class. + */ @Generated - private DiscoRunResult() {} + private DiscoRunResult() { + } /** * Get the submittedDate property: The date for when the disco run was created in the system. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoRunState.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoRunState.java index 1157826ac1c5..f6890f898356 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoRunState.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoRunState.java @@ -8,20 +8,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The State of the disco run. */ +/** + * The State of the disco run. + */ public final class DiscoRunState extends ExpandableStringEnum { - /** Static value pending for DiscoRunState. */ - @Generated public static final DiscoRunState PENDING = fromString("pending"); + /** + * Static value pending for DiscoRunState. + */ + @Generated + public static final DiscoRunState PENDING = fromString("pending"); - /** Static value running for DiscoRunState. */ - @Generated public static final DiscoRunState RUNNING = fromString("running"); + /** + * Static value running for DiscoRunState. + */ + @Generated + public static final DiscoRunState RUNNING = fromString("running"); - /** Static value completed for DiscoRunState. */ - @Generated public static final DiscoRunState COMPLETED = fromString("completed"); + /** + * Static value completed for DiscoRunState. + */ + @Generated + public static final DiscoRunState COMPLETED = fromString("completed"); - /** Static value failed for DiscoRunState. */ - @Generated public static final DiscoRunState FAILED = fromString("failed"); + /** + * Static value failed for DiscoRunState. + */ + @Generated + public static final DiscoRunState FAILED = fromString("failed"); /** * Creates a new instance of DiscoRunState value. @@ -30,7 +44,8 @@ public final class DiscoRunState extends ExpandableStringEnum { */ @Generated @Deprecated - public DiscoRunState() {} + public DiscoRunState() { + } /** * Creates or finds a DiscoRunState from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSource.java index 861c5be84924..dc7ff52a04f3 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSource.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Generated; import com.fasterxml.jackson.annotation.JsonProperty; -/** Source entity used to drive discovery. */ +/** + * Source entity used to drive discovery. + */ @Fluent public final class DiscoSource { @@ -25,9 +27,12 @@ public final class DiscoSource { @JsonProperty(value = "name") private String name; - /** Creates an instance of DiscoSource class. */ + /** + * Creates an instance of DiscoSource class. + */ @Generated - public DiscoSource() {} + public DiscoSource() { + } /** * Get the kind property: The kind of disco source. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSourceKind.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSourceKind.java index 0650f07a6d09..651df3cc24c9 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSourceKind.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoSourceKind.java @@ -8,26 +8,46 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The kind of disco source. */ +/** + * The kind of disco source. + */ public final class DiscoSourceKind extends ExpandableStringEnum { - /** Static value as for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind AS = fromString("as"); + /** + * Static value as for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind AS = fromString("as"); - /** Static value attribute for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind ATTRIBUTE = fromString("attribute"); + /** + * Static value attribute for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind ATTRIBUTE = fromString("attribute"); - /** Static value contact for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind CONTACT = fromString("contact"); + /** + * Static value contact for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind CONTACT = fromString("contact"); - /** Static value domain for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind DOMAIN = fromString("domain"); + /** + * Static value domain for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind DOMAIN = fromString("domain"); - /** Static value host for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind HOST = fromString("host"); + /** + * Static value host for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind HOST = fromString("host"); - /** Static value ipBlock for DiscoSourceKind. */ - @Generated public static final DiscoSourceKind IP_BLOCK = fromString("ipBlock"); + /** + * Static value ipBlock for DiscoSourceKind. + */ + @Generated + public static final DiscoSourceKind IP_BLOCK = fromString("ipBlock"); /** * Creates a new instance of DiscoSourceKind value. @@ -36,7 +56,8 @@ public final class DiscoSourceKind extends ExpandableStringEnum */ @Generated @Deprecated - public DiscoSourceKind() {} + public DiscoSourceKind() { + } /** * Creates or finds a DiscoSourceKind from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoTemplate.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoTemplate.java index 2ef21d65a9fc..cc5c9c32a19a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoTemplate.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DiscoTemplate.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The items in the current page of results. */ +/** + * The items in the current page of results. + */ @Immutable public final class DiscoTemplate { @@ -82,9 +84,12 @@ public final class DiscoTemplate { @JsonProperty(value = "names") private List names; - /** Creates an instance of DiscoTemplate class. */ + /** + * Creates an instance of DiscoTemplate class. + */ @Generated - private DiscoTemplate() {} + private DiscoTemplate() { + } /** * Get the id property: The system generated unique id for the resource. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAsset.java index 25b38f75607b..fb7e7a6b0301 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The DomainAsset model. */ +/** + * The DomainAsset model. + */ @Immutable public final class DomainAsset extends InventoryAsset { @@ -230,9 +232,12 @@ public final class DomainAsset extends InventoryAsset { @JsonProperty(value = "technicalPhones") private List technicalPhones; - /** Creates an instance of DomainAsset class. */ + /** + * Creates an instance of DomainAsset class. + */ @Generated - private DomainAsset() {} + private DomainAsset() { + } /** * Get the domain property: The domain property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAssetResource.java index 5bf1bb7c2b07..5b980461361a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/DomainAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The DomainAssetResource model. */ +/** + * The DomainAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("domain") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ErrorDetail.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ErrorDetail.java index 6ec44d028532..558e1c5edbf0 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ErrorDetail.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ErrorDetail.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** This is the top-level error object whose code matches the x-ms-error-code response header. */ +/** + * This is the top-level error object whose code matches the x-ms-error-code response header. + */ @Immutable public final class ErrorDetail { @@ -102,8 +104,8 @@ public List getDetails() { } /** - * Get the innererror property: This is an object containing more specific information than the current object about - * the error. + * Get the innererror property: This is an object containing more specific information than the current object + * about the error. * * @return the innererror value. */ diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/GuidPair.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/GuidPair.java index 7f77a19cb1e4..92d80118e0f5 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/GuidPair.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/GuidPair.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The GuidPair model. */ +/** + * The GuidPair model. + */ @Immutable public final class GuidPair { @@ -40,9 +42,12 @@ public final class GuidPair { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of GuidPair class. */ + /** + * Creates an instance of GuidPair class. + */ @Generated - private GuidPair() {} + private GuidPair() { + } /** * Get the pageGuid property: The pageGuid property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAsset.java index 3d021c73a152..5b97ccfac964 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The HostAsset model. */ +/** + * The HostAsset model. + */ @Immutable public final class HostAsset extends InventoryAsset { @@ -244,9 +246,12 @@ public final class HostAsset extends InventoryAsset { @JsonProperty(value = "ipv6") private List ipv6; - /** Creates an instance of HostAsset class. */ + /** + * Creates an instance of HostAsset class. + */ @Generated - private HostAsset() {} + private HostAsset() { + } /** * Get the host property: The host property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAssetResource.java index c19a8187c36f..f04bf6093763 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The HostAssetResource model. */ +/** + * The HostAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("host") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostCore.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostCore.java index 07f00c5d1ce9..b6a3d7c48bea 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostCore.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/HostCore.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The HostCore model. */ +/** + * The HostCore model. + */ @Immutable public final class HostCore { @@ -278,9 +280,12 @@ public final class HostCore { @JsonProperty(value = "uuid") private String uuid; - /** Creates an instance of HostCore class. */ + /** + * Creates an instance of HostCore class. + */ @Generated - private HostCore() {} + private HostCore() { + } /** * Get the host property: The host property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InnerError.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InnerError.java index 011096a97233..56cb78b3f89f 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InnerError.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InnerError.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** This is an object containing more specific information than the current object about the error. */ +/** + * This is an object containing more specific information than the current object about the error. + */ @Immutable public final class InnerError { @@ -25,9 +27,12 @@ public final class InnerError { @JsonProperty(value = "value") private Object value; - /** Creates an instance of InnerError class. */ + /** + * Creates an instance of InnerError class. + */ @Generated - private InnerError() {} + private InnerError() { + } /** * Get the code property: This is a more specific error code than was provided by the containing error. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InventoryAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InventoryAsset.java index 2176024a6993..6c2733b2b67e 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InventoryAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/InventoryAsset.java @@ -6,11 +6,16 @@ import com.azure.core.annotation.Generated; import com.azure.core.annotation.Immutable; -/** The InventoryAsset model. */ +/** + * The InventoryAsset model. + */ @Immutable public class InventoryAsset { - /** Creates an instance of InventoryAsset class. */ + /** + * Creates an instance of InventoryAsset class. + */ @Generated - protected InventoryAsset() {} + protected InventoryAsset() { + } } diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAsset.java index 369accf13dbe..eaf55f17626a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The IpAddressAsset model. */ +/** + * The IpAddressAsset model. + */ @Immutable public final class IpAddressAsset extends InventoryAsset { @@ -188,9 +190,12 @@ public final class IpAddressAsset extends InventoryAsset { @JsonProperty(value = "ipv6") private Boolean ipv6; - /** Creates an instance of IpAddressAsset class. */ + /** + * Creates an instance of IpAddressAsset class. + */ @Generated - private IpAddressAsset() {} + private IpAddressAsset() { + } /** * Get the ipAddress property: The ipAddress property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAssetResource.java index 96d6f9023ebe..029cc6522c38 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpAddressAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The IpAddressAssetResource model. */ +/** + * The IpAddressAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("ipAddress") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlock.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlock.java index 58aa86b326c5..5fcb98c8e52f 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlock.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlock.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The IpBlock model. */ +/** + * The IpBlock model. + */ @Immutable public final class IpBlock { @@ -55,9 +57,12 @@ public final class IpBlock { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of IpBlock class. */ + /** + * Creates an instance of IpBlock class. + */ @Generated - private IpBlock() {} + private IpBlock() { + } /** * Get the ipBlock property: The ipBlock property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAsset.java index 3de362ee3822..98127ba9d076 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The IpBlockAsset model. */ +/** + * The IpBlockAsset model. + */ @Immutable public final class IpBlockAsset extends InventoryAsset { @@ -230,9 +232,12 @@ public final class IpBlockAsset extends InventoryAsset { @JsonProperty(value = "ipv6") private Boolean ipv6; - /** Creates an instance of IpBlockAsset class. */ + /** + * Creates an instance of IpBlockAsset class. + */ @Generated - private IpBlockAsset() {} + private IpBlockAsset() { + } /** * Get the ipBlock property: The ipBlock property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAssetResource.java index 1437a0121064..4d8d6492fd71 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/IpBlockAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The IpBlockAssetResource model. */ +/** + * The IpBlockAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("ipBlock") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Location.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Location.java index c37a964981d4..4ec7e4a3ae6f 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Location.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Location.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Location model. */ +/** + * The Location model. + */ @Immutable public final class Location { @@ -88,9 +90,12 @@ public final class Location { @JsonProperty(value = "metroCodeId") private Integer metroCodeId; - /** Creates an instance of Location class. */ + /** + * Creates an instance of Location class. + */ @Generated - private Location() {} + private Location() { + } /** * Get the countryCode property: The countryCode property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnection.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnection.java index 099c6fff4220..b25ea5b035f7 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnection.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnection.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The LogAnalyticsDataConnection model. */ +/** + * The LogAnalyticsDataConnection model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("logAnalytics") @Immutable @@ -31,7 +33,7 @@ public final class LogAnalyticsDataConnection extends DataConnection { @Generated @JsonCreator private LogAnalyticsDataConnection( - @JsonProperty(value = "properties") LogAnalyticsDataConnectionProperties properties) { + @JsonProperty(value = "properties") LogAnalyticsDataConnectionProperties properties) { this.properties = properties; } diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionData.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionData.java index df09586cdefd..abd036df7b33 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionData.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionData.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The LogAnalyticsDataConnectionData model. */ +/** + * The LogAnalyticsDataConnectionData model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("logAnalytics") @Fluent @@ -31,7 +33,7 @@ public final class LogAnalyticsDataConnectionData extends DataConnectionData { @Generated @JsonCreator public LogAnalyticsDataConnectionData( - @JsonProperty(value = "properties") LogAnalyticsDataConnectionProperties properties) { + @JsonProperty(value = "properties") LogAnalyticsDataConnectionProperties properties) { this.properties = properties; } @@ -45,7 +47,9 @@ public LogAnalyticsDataConnectionProperties getProperties() { return this.properties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Generated @Override public LogAnalyticsDataConnectionData setName(String name) { @@ -53,7 +57,9 @@ public LogAnalyticsDataConnectionData setName(String name) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Generated @Override public LogAnalyticsDataConnectionData setContent(DataConnectionContent content) { @@ -61,7 +67,9 @@ public LogAnalyticsDataConnectionData setContent(DataConnectionContent content) return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Generated @Override public LogAnalyticsDataConnectionData setFrequency(DataConnectionFrequency frequency) { @@ -69,7 +77,9 @@ public LogAnalyticsDataConnectionData setFrequency(DataConnectionFrequency frequ return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Generated @Override public LogAnalyticsDataConnectionData setFrequencyOffset(Integer frequencyOffset) { diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionProperties.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionProperties.java index 06d3c21f96a1..2930c3aed109 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionProperties.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/LogAnalyticsDataConnectionProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Generated; import com.fasterxml.jackson.annotation.JsonProperty; -/** The LogAnalyticsDataConnectionProperties model. */ +/** + * The LogAnalyticsDataConnectionProperties model. + */ @Fluent public final class LogAnalyticsDataConnectionProperties extends DataConnectionProperties { @@ -25,9 +27,12 @@ public final class LogAnalyticsDataConnectionProperties extends DataConnectionPr @JsonProperty(value = "workspaceId") private String workspaceId; - /** Creates an instance of LogAnalyticsDataConnectionProperties class. */ + /** + * Creates an instance of LogAnalyticsDataConnectionProperties class. + */ @Generated - public LogAnalyticsDataConnectionProperties() {} + public LogAnalyticsDataConnectionProperties() { + } /** * Get the apiKey property: log analytics api key. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedBoolean.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedBoolean.java index 1a0ef65cce55..f57d558ca0cb 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedBoolean.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedBoolean.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ObservedBoolean model. */ +/** + * The ObservedBoolean model. + */ @Immutable public final class ObservedBoolean extends ObservedValue { @@ -26,9 +28,12 @@ public final class ObservedBoolean extends ObservedValue { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of ObservedBoolean class. */ + /** + * Creates an instance of ObservedBoolean class. + */ @Generated - private ObservedBoolean() {} + private ObservedBoolean() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedHeader.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedHeader.java index 0ce52cd1a61e..9900e02b2a07 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedHeader.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedHeader.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ObservedHeader model. */ +/** + * The ObservedHeader model. + */ @Immutable public final class ObservedHeader extends ObservedValue { @@ -25,9 +27,12 @@ public final class ObservedHeader extends ObservedValue { @JsonProperty(value = "headerValue") private String headerValue; - /** Creates an instance of ObservedHeader class. */ + /** + * Creates an instance of ObservedHeader class. + */ @Generated - private ObservedHeader() {} + private ObservedHeader() { + } /** * Get the headerName property: The headerName property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedInteger.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedInteger.java index e9ce1ccc9ea8..354c6e49c38a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedInteger.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedInteger.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ObservedInteger model. */ +/** + * The ObservedInteger model. + */ @Immutable public final class ObservedInteger extends ObservedValue { @@ -26,9 +28,12 @@ public final class ObservedInteger extends ObservedValue { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of ObservedInteger class. */ + /** + * Creates an instance of ObservedInteger class. + */ @Generated - private ObservedInteger() {} + private ObservedInteger() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedIntegers.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedIntegers.java index 2434beea6339..fb054fc9848d 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedIntegers.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedIntegers.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ObservedIntegers model. */ +/** + * The ObservedIntegers model. + */ @Immutable public final class ObservedIntegers extends ObservedValue { @@ -26,9 +28,12 @@ public final class ObservedIntegers extends ObservedValue { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of ObservedIntegers class. */ + /** + * Creates an instance of ObservedIntegers class. + */ @Generated - private ObservedIntegers() {} + private ObservedIntegers() { + } /** * Get the values property: The values property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLocation.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLocation.java index 7d954355460b..8ce15dbc2f44 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLocation.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLocation.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ObservedLocation model. */ +/** + * The ObservedLocation model. + */ @Immutable public final class ObservedLocation extends ObservedValue { @@ -26,9 +28,12 @@ public final class ObservedLocation extends ObservedValue { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of ObservedLocation class. */ + /** + * Creates an instance of ObservedLocation class. + */ @Generated - private ObservedLocation() {} + private ObservedLocation() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLong.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLong.java index 5d281023d1a3..1a24f738235d 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLong.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedLong.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ObservedLong model. */ +/** + * The ObservedLong model. + */ @Immutable public final class ObservedLong extends ObservedValue { @@ -26,9 +28,12 @@ public final class ObservedLong extends ObservedValue { @JsonProperty(value = "sources") private List sources; - /** Creates an instance of ObservedLong class. */ + /** + * Creates an instance of ObservedLong class. + */ @Generated - private ObservedLong() {} + private ObservedLong() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortState.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortState.java index db30fdea6c16..f963d7753d79 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortState.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortState.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ObservedPortState model. */ +/** + * The ObservedPortState model. + */ @Immutable public final class ObservedPortState extends ObservedValue { @@ -25,9 +27,12 @@ public final class ObservedPortState extends ObservedValue { @JsonProperty(value = "port") private Integer port; - /** Creates an instance of ObservedPortState class. */ + /** + * Creates an instance of ObservedPortState class. + */ @Generated - private ObservedPortState() {} + private ObservedPortState() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortStateValue.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortStateValue.java index 4a92cd66192e..9f338eca6e81 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortStateValue.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedPortStateValue.java @@ -8,17 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ObservedPortStateValue. */ +/** + * Defines values for ObservedPortStateValue. + */ public final class ObservedPortStateValue extends ExpandableStringEnum { - /** Static value open for ObservedPortStateValue. */ - @Generated public static final ObservedPortStateValue OPEN = fromString("open"); + /** + * Static value open for ObservedPortStateValue. + */ + @Generated + public static final ObservedPortStateValue OPEN = fromString("open"); - /** Static value closed for ObservedPortStateValue. */ - @Generated public static final ObservedPortStateValue CLOSED = fromString("closed"); + /** + * Static value closed for ObservedPortStateValue. + */ + @Generated + public static final ObservedPortStateValue CLOSED = fromString("closed"); - /** Static value filtered for ObservedPortStateValue. */ - @Generated public static final ObservedPortStateValue FILTERED = fromString("filtered"); + /** + * Static value filtered for ObservedPortStateValue. + */ + @Generated + public static final ObservedPortStateValue FILTERED = fromString("filtered"); /** * Creates a new instance of ObservedPortStateValue value. @@ -27,7 +38,8 @@ public final class ObservedPortStateValue extends ExpandableStringEnum sources; - /** Creates an instance of ObservedString class. */ + /** + * Creates an instance of ObservedString class. + */ @Generated - private ObservedString() {} + private ObservedString() { + } /** * Get the value property: The value property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedValue.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedValue.java index 733814b3b1c1..ab0fdf306fb7 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedValue.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ObservedValue.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Template model for observed values. */ +/** + * Template model for observed values. + */ @Immutable public class ObservedValue { @@ -40,9 +42,12 @@ public class ObservedValue { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of ObservedValue class. */ + /** + * Creates an instance of ObservedValue class. + */ @Generated - protected ObservedValue() {} + protected ObservedValue() { + } /** * Get the firstSeen property: The firstSeen property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAsset.java index 76eeb4ef1df1..77ad911f0dc3 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The PageAsset model. */ +/** + * The PageAsset model. + */ @Immutable public final class PageAsset extends InventoryAsset { @@ -440,9 +442,12 @@ public final class PageAsset extends InventoryAsset { @JsonProperty(value = "ipv6") private List ipv6; - /** Creates an instance of PageAsset class. */ + /** + * Creates an instance of PageAsset class. + */ @Generated - private PageAsset() {} + private PageAsset() { + } /** * Get the url property: The url property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAssetRedirectType.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAssetRedirectType.java index 1febbad7771a..721cb1606eb9 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAssetRedirectType.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/PageAssetRedirectType.java @@ -8,20 +8,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PageAssetRedirectType. */ +/** + * Defines values for PageAssetRedirectType. + */ public final class PageAssetRedirectType extends ExpandableStringEnum { - /** Static value httpHeader for PageAssetRedirectType. */ - @Generated public static final PageAssetRedirectType HTTP_HEADER = fromString("httpHeader"); + /** + * Static value httpHeader for PageAssetRedirectType. + */ + @Generated + public static final PageAssetRedirectType HTTP_HEADER = fromString("httpHeader"); - /** Static value metaRefresh for PageAssetRedirectType. */ - @Generated public static final PageAssetRedirectType META_REFRESH = fromString("metaRefresh"); + /** + * Static value metaRefresh for PageAssetRedirectType. + */ + @Generated + public static final PageAssetRedirectType META_REFRESH = fromString("metaRefresh"); - /** Static value javascript for PageAssetRedirectType. */ - @Generated public static final PageAssetRedirectType JAVASCRIPT = fromString("javascript"); + /** + * Static value javascript for PageAssetRedirectType. + */ + @Generated + public static final PageAssetRedirectType JAVASCRIPT = fromString("javascript"); - /** Static value final for PageAssetRedirectType. */ - @Generated public static final PageAssetRedirectType FINAL = fromString("final"); + /** + * Static value final for PageAssetRedirectType. + */ + @Generated + public static final PageAssetRedirectType FINAL = fromString("final"); /** * Creates a new instance of PageAssetRedirectType value. @@ -30,7 +44,8 @@ public final class PageAssetRedirectType extends ExpandableStringEnum filters) { } /** - * Get the groupBy property: A parameter to group the assets by (first level facet field), only used when the chosen - * summary identifier is filters. + * Get the groupBy property: A parameter to group the assets by (first level facet field), only used when the + * chosen summary identifier is filters. * * @return the groupBy value. */ @@ -141,8 +144,8 @@ public String getGroupBy() { } /** - * Set the groupBy property: A parameter to group the assets by (first level facet field), only used when the chosen - * summary identifier is filters. + * Set the groupBy property: A parameter to group the assets by (first level facet field), only used when the + * chosen summary identifier is filters. * * @param groupBy the groupBy value to set. * @return the ReportAssetSummaryRequest object itself. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportAssetSummaryResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportAssetSummaryResult.java index 2c5357ca6f9e..741fc6ada32d 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportAssetSummaryResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportAssetSummaryResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ReportAssetSummaryResult model. */ +/** + * The ReportAssetSummaryResult model. + */ @Immutable public final class ReportAssetSummaryResult { @@ -19,9 +21,12 @@ public final class ReportAssetSummaryResult { @JsonProperty(value = "assetSummaries") private List assetSummaries; - /** Creates an instance of ReportAssetSummaryResult class. */ + /** + * Creates an instance of ReportAssetSummaryResult class. + */ @Generated - private ReportAssetSummaryResult() {} + private ReportAssetSummaryResult() { + } /** * Get the assetSummaries property: The collection of asset summaries. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdown.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdown.java index 04af1d712bc4..2d45a7ad7307 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdown.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdown.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The breakdown of billable asset counts for each asset type. */ +/** + * The breakdown of billable asset counts for each asset type. + */ @Immutable public final class ReportBillableAssetBreakdown { @@ -25,9 +27,12 @@ public final class ReportBillableAssetBreakdown { @JsonProperty(value = "count") private Long count; - /** Creates an instance of ReportBillableAssetBreakdown class. */ + /** + * Creates an instance of ReportBillableAssetBreakdown class. + */ @Generated - private ReportBillableAssetBreakdown() {} + private ReportBillableAssetBreakdown() { + } /** * Get the kind property: The kind of billable asset. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdownKind.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdownKind.java index 5151b9e50191..55229ae7b785 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdownKind.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetBreakdownKind.java @@ -8,17 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The kind of billable asset. */ +/** + * The kind of billable asset. + */ public final class ReportBillableAssetBreakdownKind extends ExpandableStringEnum { - /** Static value domain for ReportBillableAssetBreakdownKind. */ - @Generated public static final ReportBillableAssetBreakdownKind DOMAIN = fromString("domain"); + /** + * Static value domain for ReportBillableAssetBreakdownKind. + */ + @Generated + public static final ReportBillableAssetBreakdownKind DOMAIN = fromString("domain"); - /** Static value host for ReportBillableAssetBreakdownKind. */ - @Generated public static final ReportBillableAssetBreakdownKind HOST = fromString("host"); + /** + * Static value host for ReportBillableAssetBreakdownKind. + */ + @Generated + public static final ReportBillableAssetBreakdownKind HOST = fromString("host"); - /** Static value ipAddress for ReportBillableAssetBreakdownKind. */ - @Generated public static final ReportBillableAssetBreakdownKind IP_ADDRESS = fromString("ipAddress"); + /** + * Static value ipAddress for ReportBillableAssetBreakdownKind. + */ + @Generated + public static final ReportBillableAssetBreakdownKind IP_ADDRESS = fromString("ipAddress"); /** * Creates a new instance of ReportBillableAssetBreakdownKind value. @@ -27,7 +38,8 @@ public final class ReportBillableAssetBreakdownKind extends ExpandableStringEnum */ @Generated @Deprecated - public ReportBillableAssetBreakdownKind() {} + public ReportBillableAssetBreakdownKind() { + } /** * Creates or finds a ReportBillableAssetBreakdownKind from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSnapshotResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSnapshotResult.java index ff405f5e8512..576253258e14 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSnapshotResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSnapshotResult.java @@ -9,7 +9,9 @@ import java.time.LocalDate; import java.util.List; -/** The ReportBillableAssetSnapshotResult model. */ +/** + * The ReportBillableAssetSnapshotResult model. + */ @Immutable public final class ReportBillableAssetSnapshotResult { @@ -34,9 +36,12 @@ public final class ReportBillableAssetSnapshotResult { @JsonProperty(value = "assetBreakdown") private List assetBreakdown; - /** Creates an instance of ReportBillableAssetSnapshotResult class. */ + /** + * Creates an instance of ReportBillableAssetSnapshotResult class. + */ @Generated - private ReportBillableAssetSnapshotResult() {} + private ReportBillableAssetSnapshotResult() { + } /** * Get the date property: The date these assets were billed on. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSummaryResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSummaryResult.java index d5e0e60302eb..385bf08ede65 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSummaryResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ReportBillableAssetSummaryResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ReportBillableAssetSummaryResult model. */ +/** + * The ReportBillableAssetSummaryResult model. + */ @Immutable public final class ReportBillableAssetSummaryResult { @@ -19,9 +21,12 @@ public final class ReportBillableAssetSummaryResult { @JsonProperty(value = "assetSummaries") private List assetSummaries; - /** Creates an instance of ReportBillableAssetSummaryResult class. */ + /** + * Creates an instance of ReportBillableAssetSummaryResult class. + */ @Generated - private ReportBillableAssetSummaryResult() {} + private ReportBillableAssetSummaryResult() { + } /** * Get the assetSummaries property: The assetSummaries property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Reputation.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Reputation.java index 1896e90d3423..7a1c2eb3519f 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Reputation.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Reputation.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The Reputation model. */ +/** + * The Reputation model. + */ @Immutable public final class Reputation { @@ -68,9 +70,12 @@ public final class Reputation { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of Reputation class. */ + /** + * Creates an instance of Reputation class. + */ @Generated - private Reputation() {} + private Reputation() { + } /** * Get the listName property: The listName property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ResourceUrl.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ResourceUrl.java index 3d3c02bfbd4f..f5a19a5f77f3 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ResourceUrl.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ResourceUrl.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The ResourceUrl model. */ +/** + * The ResourceUrl model. + */ @Immutable public final class ResourceUrl { @@ -55,9 +57,12 @@ public final class ResourceUrl { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of ResourceUrl class. */ + /** + * Creates an instance of ResourceUrl class. + */ @Generated - private ResourceUrl() {} + private ResourceUrl() { + } /** * Get the url property: The url property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilter.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilter.java index 96cd8f475d9f..a0e6a7024668 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilter.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilter.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The SavedFilter model. */ +/** + * The SavedFilter model. + */ @Immutable public final class SavedFilter { @@ -46,9 +48,12 @@ public final class SavedFilter { @JsonProperty(value = "description") private String description; - /** Creates an instance of SavedFilter class. */ + /** + * Creates an instance of SavedFilter class. + */ @Generated - private SavedFilter() {} + private SavedFilter() { + } /** * Get the id property: The system generated unique id for the resource. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilterData.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilterData.java index a266977809ee..f6b93139db67 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilterData.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SavedFilterData.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -/** A request body used to create a saved filter. */ +/** + * A request body used to create a saved filter. + */ @Immutable public final class SavedFilterData { @@ -34,8 +36,8 @@ public final class SavedFilterData { */ @Generated @JsonCreator - public SavedFilterData( - @JsonProperty(value = "filter") String filter, @JsonProperty(value = "description") String description) { + public SavedFilterData(@JsonProperty(value = "filter") String filter, + @JsonProperty(value = "description") String description) { this.filter = filter; this.description = description; } diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ScanMetadata.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ScanMetadata.java index 1b5161ac59bf..fc511abe3aff 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ScanMetadata.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ScanMetadata.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The ScanMetadata model. */ +/** + * The ScanMetadata model. + */ @Immutable public final class ScanMetadata { @@ -40,9 +42,12 @@ public final class ScanMetadata { @JsonProperty(value = "endScan") private OffsetDateTime endScan; - /** Creates an instance of ScanMetadata class. */ + /** + * Creates an instance of ScanMetadata class. + */ @Generated - private ScanMetadata() {} + private ScanMetadata() { + } /** * Get the port property: The port property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Service.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Service.java index 90d6bd55647f..f545fdea9168 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Service.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Service.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The Service model. */ +/** + * The Service model. + */ @Immutable public final class Service { @@ -90,9 +92,12 @@ public final class Service { @JsonProperty(value = "portStates") private List portStates; - /** Creates an instance of Service class. */ + /** + * Creates an instance of Service class. + */ @Generated - private Service() {} + private Service() { + } /** * Get the scheme property: The scheme property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SoaRecord.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SoaRecord.java index e0ded0f90387..495d426be3e6 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SoaRecord.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SoaRecord.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The SoaRecord model. */ +/** + * The SoaRecord model. + */ @Immutable public final class SoaRecord { @@ -61,9 +63,12 @@ public final class SoaRecord { @JsonProperty(value = "recent") private Boolean recent; - /** Creates an instance of SoaRecord class. */ + /** + * Creates an instance of SoaRecord class. + */ @Generated - private SoaRecord() {} + private SoaRecord() { + } /** * Get the nameServer property: The nameServer property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Source.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Source.java index eb2980004322..017c05a3a6d1 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Source.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Source.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The Source model. */ +/** + * The Source model. + */ @Immutable public final class Source { @@ -47,9 +49,12 @@ public final class Source { @JsonProperty(value = "reason") private String reason; - /** Creates an instance of Source class. */ + /** + * Creates an instance of Source class. + */ @Generated - private Source() {} + private Source() { + } /** * Get the source property: The source property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAsset.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAsset.java index 1eb1f00466ae..6af69ffcd8d0 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAsset.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAsset.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The SslCertAsset model. */ +/** + * The SslCertAsset model. + */ @Immutable public final class SslCertAsset extends InventoryAsset { @@ -244,9 +246,12 @@ public final class SslCertAsset extends InventoryAsset { @JsonProperty(value = "validationType") private SslCertAssetValidationType validationType; - /** Creates an instance of SslCertAsset class. */ + /** + * Creates an instance of SslCertAsset class. + */ @Generated - private SslCertAsset() {} + private SslCertAsset() { + } /** * Get the sha1 property: The sha1 property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetResource.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetResource.java index 445dc0656111..6b5fe624b3a5 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetResource.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetResource.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The SslCertAssetResource model. */ +/** + * The SslCertAssetResource model. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("sslCert") @Immutable diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetValidationType.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetValidationType.java index 3980cb245793..036d92554a38 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetValidationType.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SslCertAssetValidationType.java @@ -8,18 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SslCertAssetValidationType. */ +/** + * Defines values for SslCertAssetValidationType. + */ public final class SslCertAssetValidationType extends ExpandableStringEnum { - /** Static value domainValidation for SslCertAssetValidationType. */ - @Generated public static final SslCertAssetValidationType DOMAIN_VALIDATION = fromString("domainValidation"); + /** + * Static value domainValidation for SslCertAssetValidationType. + */ + @Generated + public static final SslCertAssetValidationType DOMAIN_VALIDATION = fromString("domainValidation"); - /** Static value organizationValidation for SslCertAssetValidationType. */ + /** + * Static value organizationValidation for SslCertAssetValidationType. + */ @Generated public static final SslCertAssetValidationType ORGANIZATION_VALIDATION = fromString("organizationValidation"); - /** Static value extendedValidation for SslCertAssetValidationType. */ - @Generated public static final SslCertAssetValidationType EXTENDED_VALIDATION = fromString("extendedValidation"); + /** + * Static value extendedValidation for SslCertAssetValidationType. + */ + @Generated + public static final SslCertAssetValidationType EXTENDED_VALIDATION = fromString("extendedValidation"); /** * Creates a new instance of SslCertAssetValidationType value. @@ -28,7 +38,8 @@ public final class SslCertAssetValidationType extends ExpandableStringEnum sources; - /** Creates an instance of SslServerConfig class. */ + /** + * Creates an instance of SslServerConfig class. + */ @Generated - private SslServerConfig() {} + private SslServerConfig() { + } /** * Get the tlsVersions property: The tlsVersions property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SubResourceIntegrityCheck.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SubResourceIntegrityCheck.java index 70746158d820..eb4a4eee6269 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SubResourceIntegrityCheck.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/SubResourceIntegrityCheck.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The SubResourceIntegrityCheck model. */ +/** + * The SubResourceIntegrityCheck model. + */ @Immutable public final class SubResourceIntegrityCheck { @@ -75,9 +77,12 @@ public final class SubResourceIntegrityCheck { @JsonProperty(value = "expectedHash") private String expectedHash; - /** Creates an instance of SubResourceIntegrityCheck class. */ + /** + * Creates an instance of SubResourceIntegrityCheck class. + */ @Generated - private SubResourceIntegrityCheck() {} + private SubResourceIntegrityCheck() { + } /** * Get the violation property: The violation property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Task.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Task.java index a05eda79c414..997c8ac9d655 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Task.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/Task.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.Map; -/** The Task model. */ +/** + * The Task model. + */ @Immutable public final class Task { @@ -63,15 +65,18 @@ public final class Task { private String reason; /* - * Attributes unique to the task. This differs by task type. + * Attributes unique to the task. This differs by task type. */ @Generated @JsonProperty(value = "metadata") private Map metadata; - /** Creates an instance of Task class. */ + /** + * Creates an instance of Task class. + */ @Generated - private Task() {} + private Task() { + } /** * Get the id property: The unique identifier of the task. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskPhase.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskPhase.java index 3b8cafc35e19..b5e76a5ea727 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskPhase.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskPhase.java @@ -8,17 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The phase the task is in. */ +/** + * The phase the task is in. + */ public final class TaskPhase extends ExpandableStringEnum { - /** Static value running for TaskPhase. */ - @Generated public static final TaskPhase RUNNING = fromString("running"); + /** + * Static value running for TaskPhase. + */ + @Generated + public static final TaskPhase RUNNING = fromString("running"); - /** Static value polling for TaskPhase. */ - @Generated public static final TaskPhase POLLING = fromString("polling"); + /** + * Static value polling for TaskPhase. + */ + @Generated + public static final TaskPhase POLLING = fromString("polling"); - /** Static value complete for TaskPhase. */ - @Generated public static final TaskPhase COMPLETE = fromString("complete"); + /** + * Static value complete for TaskPhase. + */ + @Generated + public static final TaskPhase COMPLETE = fromString("complete"); /** * Creates a new instance of TaskPhase value. @@ -27,7 +38,8 @@ public final class TaskPhase extends ExpandableStringEnum { */ @Generated @Deprecated - public TaskPhase() {} + public TaskPhase() { + } /** * Creates or finds a TaskPhase from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskState.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskState.java index 1c8b5a47419b..1276ae239723 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskState.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/TaskState.java @@ -8,29 +8,52 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The state the task is in. */ +/** + * The state the task is in. + */ public final class TaskState extends ExpandableStringEnum { - /** Static value pending for TaskState. */ - @Generated public static final TaskState PENDING = fromString("pending"); + /** + * Static value pending for TaskState. + */ + @Generated + public static final TaskState PENDING = fromString("pending"); - /** Static value running for TaskState. */ - @Generated public static final TaskState RUNNING = fromString("running"); + /** + * Static value running for TaskState. + */ + @Generated + public static final TaskState RUNNING = fromString("running"); - /** Static value paused for TaskState. */ - @Generated public static final TaskState PAUSED = fromString("paused"); + /** + * Static value paused for TaskState. + */ + @Generated + public static final TaskState PAUSED = fromString("paused"); - /** Static value complete for TaskState. */ - @Generated public static final TaskState COMPLETE = fromString("complete"); + /** + * Static value complete for TaskState. + */ + @Generated + public static final TaskState COMPLETE = fromString("complete"); - /** Static value incomplete for TaskState. */ - @Generated public static final TaskState INCOMPLETE = fromString("incomplete"); + /** + * Static value incomplete for TaskState. + */ + @Generated + public static final TaskState INCOMPLETE = fromString("incomplete"); - /** Static value failed for TaskState. */ - @Generated public static final TaskState FAILED = fromString("failed"); + /** + * Static value failed for TaskState. + */ + @Generated + public static final TaskState FAILED = fromString("failed"); - /** Static value warning for TaskState. */ - @Generated public static final TaskState WARNING = fromString("warning"); + /** + * Static value warning for TaskState. + */ + @Generated + public static final TaskState WARNING = fromString("warning"); /** * Creates a new instance of TaskState value. @@ -39,7 +62,8 @@ public final class TaskState extends ExpandableStringEnum { */ @Generated @Deprecated - public TaskState() {} + public TaskState() { + } /** * Creates or finds a TaskState from its string representation. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ValidateResult.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ValidateResult.java index 565b68dfdff2..aa7c7fa0ed1d 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ValidateResult.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/ValidateResult.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ValidateResult model. */ +/** + * The ValidateResult model. + */ @Immutable public final class ValidateResult { @@ -18,9 +20,12 @@ public final class ValidateResult { @JsonProperty(value = "error") private ErrorDetail error; - /** Creates an instance of ValidateResult class. */ + /** + * Creates an instance of ValidateResult class. + */ @Generated - private ValidateResult() {} + private ValidateResult() { + } /** * Get the error property: This is the top-level error object whose code matches the x-ms-error-code response diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/WebComponent.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/WebComponent.java index 4c6bed446a17..be1f5502a81a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/WebComponent.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/WebComponent.java @@ -9,7 +9,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** The WebComponent model. */ +/** + * The WebComponent model. + */ @Immutable public final class WebComponent { @@ -104,9 +106,12 @@ public final class WebComponent { @JsonProperty(value = "service") private String service; - /** Creates an instance of WebComponent class. */ + /** + * Creates an instance of WebComponent class. + */ @Generated - private WebComponent() {} + private WebComponent() { + } /** * Get the name property: The name property. diff --git a/sdk/easm/azure-analytics-defender-easm/src/main/java/module-info.java b/sdk/easm/azure-analytics-defender-easm/src/main/java/module-info.java index 3d8dace02f7c..c6bc1c21f30a 100644 --- a/sdk/easm/azure-analytics-defender-easm/src/main/java/module-info.java +++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/module-info.java @@ -8,7 +8,5 @@ exports com.azure.analytics.defender.easm; exports com.azure.analytics.defender.easm.models; - opens com.azure.analytics.defender.easm.models to - com.azure.core, - com.fasterxml.jackson.databind; + opens com.azure.analytics.defender.easm.models to com.azure.core, com.fasterxml.jackson.databind; }