diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index b0d76a6ece1f..b503673532a8 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -190,6 +190,7 @@ com.azure:azure-template-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-verticals-agrifood-farming;1.0.0-beta.3;1.0.0-beta.4
com.azure:azure-xml;1.0.0-beta.2;1.0.0-beta.3
com.azure:perf-test-core;1.0.0-beta.1;1.0.0-beta.1
+com.azure:azure-analytics-defender-easm;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:azure-monitor-spring-native;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:azure-monitor-spring-native-test;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:spring-cloud-azure-appconfiguration-config-web;4.11.0;4.12.0-beta.1
diff --git a/pom.xml b/pom.xml
index 2933b7b5264a..3d4a2f8fa612 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,7 @@
sdk/digitaltwins
sdk/dnsresolver
sdk/dynatrace
+ sdk/easm
sdk/edgeorder
sdk/education
sdk/elastic
diff --git a/sdk/easm/azure-analytics-defender-easm/CHANGELOG.md b/sdk/easm/azure-analytics-defender-easm/CHANGELOG.md
new file mode 100644
index 000000000000..805f8168b64b
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/CHANGELOG.md
@@ -0,0 +1,13 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+- Azure Easm client library for Java. This package contains Microsoft Azure Easm client library.
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
diff --git a/sdk/easm/azure-analytics-defender-easm/README.md b/sdk/easm/azure-analytics-defender-easm/README.md
new file mode 100644
index 000000000000..96bcddc7329d
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/README.md
@@ -0,0 +1,65 @@
+# Azure Easm client library for Java
+
+Azure Easm client library for Java.
+
+This package contains Microsoft Azure Easm client library.
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+- [Product documentation][product_documentation]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure:azure-analytics-defender-easm;current})
+```xml
+
+ com.azure
+ azure-analytics-defender-easm
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Authentication
+
+[Azure Identity][azure_identity] package provides the default implementation for authenticating the client.
+
+## Key concepts
+
+## Examples
+
+```java com.azure.analytics.defender.easm.readme
+```
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[product_documentation]: https://azure.microsoft.com/services/
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+
+
diff --git a/sdk/easm/azure-analytics-defender-easm/assets.json b/sdk/easm/azure-analytics-defender-easm/assets.json
new file mode 100644
index 000000000000..6cd5b0d6112f
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo" : "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath" : "java",
+ "TagPrefix" : "java/easm/azure-analytics-defender-easm",
+ "Tag" : ""
+}
\ No newline at end of file
diff --git a/sdk/easm/azure-analytics-defender-easm/pom.xml b/sdk/easm/azure-analytics-defender-easm/pom.xml
new file mode 100644
index 000000000000..37009ac0857b
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/pom.xml
@@ -0,0 +1,95 @@
+
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure
+ azure-analytics-defender-easm
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Easm
+ This package contains Microsoft Azure Easm client library.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+ com.azure
+ azure-core
+ 1.44.0
+
+
+ com.azure
+ azure-core-http-netty
+ 1.13.8
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ 5.9.3
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.9.3
+ test
+
+
+ org.mockito
+ mockito-core
+ 4.11.0
+ test
+
+
+ com.azure
+ azure-core-test
+ 1.21.0
+ test
+
+
+ com.azure
+ azure-identity
+ 1.10.3
+ test
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.36
+ test
+
+
+
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
new file mode 100644
index 000000000000..a1302216c97e
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmAsyncClient.java
@@ -0,0 +1,2322 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.analytics.defender.easm;
+
+import com.azure.analytics.defender.easm.implementation.EasmClientImpl;
+import com.azure.analytics.defender.easm.models.AssetResource;
+import com.azure.analytics.defender.easm.models.AssetUpdateData;
+import com.azure.analytics.defender.easm.models.DataConnection;
+import com.azure.analytics.defender.easm.models.DataConnectionData;
+import com.azure.analytics.defender.easm.models.DiscoGroup;
+import com.azure.analytics.defender.easm.models.DiscoGroupData;
+import com.azure.analytics.defender.easm.models.DiscoRunResult;
+import com.azure.analytics.defender.easm.models.DiscoTemplate;
+import com.azure.analytics.defender.easm.models.ReportAssetSnapshotRequest;
+import com.azure.analytics.defender.easm.models.ReportAssetSnapshotResult;
+import com.azure.analytics.defender.easm.models.ReportAssetSummaryRequest;
+import com.azure.analytics.defender.easm.models.ReportAssetSummaryResult;
+import com.azure.analytics.defender.easm.models.ReportBillableAssetSummaryResult;
+import com.azure.analytics.defender.easm.models.SavedFilter;
+import com.azure.analytics.defender.easm.models.SavedFilterData;
+import com.azure.analytics.defender.easm.models.Task;
+import com.azure.analytics.defender.easm.models.ValidateResult;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.FluxUtil;
+import java.util.stream.Collectors;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the asynchronous EasmClient type. */
+@ServiceClient(builder = EasmClientBuilder.class, isAsync = true)
+public final class EasmAsyncClient {
+ @Generated private final EasmClientImpl serviceClient;
+
+ /**
+ * Initializes an instance of EasmAsyncClient class.
+ *
+ * @param serviceClient the service client implementation.
+ */
+ @Generated
+ EasmAsyncClient(EasmClientImpl serviceClient) {
+ this.serviceClient = serviceClient;
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ *
Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAssetResource(RequestOptions requestOptions) {
+ return this.serviceClient.listAssetResourceAsync(requestOptions);
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): {
+ * String: boolean (Optional)
+ * }
+ * transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> updateAssetsWithResponse(
+ String filter, BinaryData assetUpdateData, RequestOptions requestOptions) {
+ return this.serviceClient.updateAssetsWithResponseAsync(filter, assetUpdateData, requestOptions);
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getAssetResourceWithResponse(String assetId, RequestOptions requestOptions) {
+ return this.serviceClient.getAssetResourceWithResponseAsync(assetId, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDataConnection(RequestOptions requestOptions) {
+ return this.serviceClient.listDataConnectionAsync(requestOptions);
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateDataConnectionWithResponse(
+ BinaryData dataConnectionData, RequestOptions requestOptions) {
+ return this.serviceClient.validateDataConnectionWithResponseAsync(dataConnectionData, requestOptions);
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrReplaceDataConnectionWithResponse(
+ String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceDataConnectionWithResponseAsync(
+ dataConnectionName, dataConnectionData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDiscoGroup(RequestOptions requestOptions) {
+ return this.serviceClient.listDiscoGroupAsync(requestOptions);
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateDiscoGroupWithResponse(
+ BinaryData discoGroupData, RequestOptions requestOptions) {
+ return this.serviceClient.validateDiscoGroupWithResponseAsync(discoGroupData, requestOptions);
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.getDiscoGroupWithResponseAsync(groupName, requestOptions);
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrReplaceDiscoGroupWithResponse(
+ String groupName, BinaryData discoGroupData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceDiscoGroupWithResponseAsync(groupName, discoGroupData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> runDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.runDiscoGroupWithResponseAsync(groupName, requestOptions);
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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 paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listRuns(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.listRunsAsync(groupName, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * industry: String (Optional)
+ * region: String (Optional)
+ * countryCode: String (Optional)
+ * stateCode: String (Optional)
+ * city: String (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * 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 DiscoTemplate items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDiscoTemplate(RequestOptions requestOptions) {
+ return this.serviceClient.listDiscoTemplateAsync(requestOptions);
+ }
+
+ /**
+ * Retrieve a disco template with a given templateId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * industry: String (Optional)
+ * region: String (Optional)
+ * countryCode: String (Optional)
+ * stateCode: String (Optional)
+ * city: String (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getDiscoTemplateWithResponse(String templateId, RequestOptions requestOptions) {
+ return this.serviceClient.getDiscoTemplateWithResponseAsync(templateId, requestOptions);
+ }
+
+ /**
+ * Get billable assets summary for the workspace.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * assetSummaries (Optional): [
+ * (Optional){
+ * date: LocalDate (Optional)
+ * total: Long (Optional)
+ * assetBreakdown (Optional): [
+ * (Optional){
+ * kind: String(domain/host/ipAddress) (Optional)
+ * count: Long (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 billable assets summary for the workspace along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getBillableWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.getBillableWithResponseAsync(requestOptions);
+ }
+
+ /**
+ * Get the most recent snapshot of asset summary values for the snapshot request.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * metric: String (Optional)
+ * labelName: String (Optional)
+ * size: Integer (Optional)
+ * page: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * displayName: String (Optional)
+ * metric: String (Optional)
+ * labelName: String (Optional)
+ * updatedAt: OffsetDateTime (Optional)
+ * description: String (Optional)
+ * assets (Optional): {
+ * totalElements: Long (Optional)
+ * mark: String (Optional)
+ * nextLink: String (Optional)
+ * value (Optional): [
+ * (Optional){
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * reason: String (Optional)
+ * }
+ * ]
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 most recent snapshot of asset summary values for the snapshot request along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getSnapshotWithResponse(
+ BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) {
+ return this.serviceClient.getSnapshotWithResponseAsync(reportAssetSnapshotRequest, requestOptions);
+ }
+
+ /**
+ * Get asset summary details for the summary request.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * metricCategories (Optional): [
+ * String (Optional)
+ * ]
+ * metrics (Optional): [
+ * String (Optional)
+ * ]
+ * filters (Optional): [
+ * String (Optional)
+ * ]
+ * groupBy: String (Optional)
+ * segmentBy: String (Optional)
+ * labelName: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * assetSummaries (Optional): [
+ * (Optional){
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * updatedAt: OffsetDateTime (Optional)
+ * metricCategory: String (Optional)
+ * metric: String (Optional)
+ * filter: String (Optional)
+ * labelName: String (Optional)
+ * count: Long (Optional)
+ * link: String (Optional)
+ * children (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listSavedFilter(RequestOptions requestOptions) {
+ return this.serviceClient.listSavedFilterAsync(requestOptions);
+ }
+
+ /**
+ * Retrieve a saved filter by filterName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getSavedFilterWithResponse(String filterName, RequestOptions requestOptions) {
+ return this.serviceClient.getSavedFilterWithResponseAsync(filterName, requestOptions);
+ }
+
+ /**
+ * Create or replace a saved filter with a given filterName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * filter: String (Required)
+ * description: String (Required)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrReplaceSavedFilterWithResponse(
+ String filterName, BinaryData savedFilterData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceSavedFilterWithResponseAsync(
+ filterName, savedFilterData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteSavedFilterWithResponse(String filterName, RequestOptions requestOptions) {
+ return this.serviceClient.deleteSavedFilterWithResponseAsync(filterName, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (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 Task items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTask(RequestOptions requestOptions) {
+ return this.serviceClient.listTaskAsync(requestOptions);
+ }
+
+ /**
+ * Retrieve a task by taskId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getTaskWithResponse(String taskId, RequestOptions requestOptions) {
+ return this.serviceClient.getTaskWithResponseAsync(taskId, requestOptions);
+ }
+
+ /**
+ * Cancel a task by taskId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> cancelTaskWithResponse(String taskId, RequestOptions requestOptions) {
+ return this.serviceClient.cancelTaskWithResponseAsync(taskId, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AssetResource items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAssetResource(String filter, String orderBy, Integer skip, String mark) {
+ // Generated convenience method for listAssetResource
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (mark != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AssetResource items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * @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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 -> protocolMethodData.toObject(Task.class));
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * @param assetId The system generated unique id for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the items in the current page of results on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAssetResource(String assetId) {
+ // Generated convenience method for getAssetResourceWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAssetResourceWithResponse(assetId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AssetResource.class));
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DataConnection items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDataConnection(Integer skip) {
+ // Generated convenience method for listDataConnection
+ RequestOptions requestOptions = new RequestOptions();
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DataConnection items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionData The dataConnectionData parameter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono validateDataConnection(DataConnectionData dataConnectionData) {
+ // Generated convenience method for validateDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return validateDataConnectionWithResponse(BinaryData.fromObject(dataConnectionData), requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(ValidateResult.class));
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getDataConnection(String dataConnectionName) {
+ // Generated convenience method for getDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDataConnectionWithResponse(dataConnectionName, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(DataConnection.class));
+ }
+
+ /**
+ * Create or replace a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @param dataConnectionData The dataConnectionData parameter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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)
+ .map(protocolMethodData -> protocolMethodData.toObject(DataConnection.class));
+ }
+
+ /**
+ * Delete a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteDataConnection(String dataConnectionName) {
+ // Generated convenience method for deleteDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return deleteDataConnectionWithResponse(dataConnectionName, requestOptions).flatMap(FluxUtil::toMono);
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoGroup items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDiscoGroup(String filter, Integer skip) {
+ // Generated convenience method for listDiscoGroup
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoGroup items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * @param discoGroupData A request body used to create a discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 -> protocolMethodData.toObject(ValidateResult.class));
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getDiscoGroup(String groupName) {
+ // Generated convenience method for getDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDiscoGroupWithResponse(groupName, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(DiscoGroup.class));
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @param discoGroupData A request body used to create a discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrReplaceDiscoGroup(String groupName, DiscoGroupData discoGroupData) {
+ // Generated convenience method for createOrReplaceDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return createOrReplaceDiscoGroupWithResponse(groupName, BinaryData.fromObject(discoGroupData), requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(DiscoGroup.class));
+ }
+
+ /**
+ * Run a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono runDiscoGroup(String groupName) {
+ // Generated convenience method for runDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return runDiscoGroupWithResponse(groupName, requestOptions).flatMap(FluxUtil::toMono);
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * @param groupName The unique identifier for the discovery group.
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listRuns(String groupName, String filter, Integer skip) {
+ // Generated convenience method for listRuns
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * @param groupName The unique identifier for the discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoTemplate items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDiscoTemplate(String filter, Integer skip) {
+ // Generated convenience method for listDiscoTemplate
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoTemplate items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a disco template with a given templateId.
+ *
+ * @param templateId The system generated unique id for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the items in the current page of results on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getDiscoTemplate(String templateId) {
+ // Generated convenience method for getDiscoTemplateWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDiscoTemplateWithResponse(templateId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(DiscoTemplate.class));
+ }
+
+ /**
+ * Get billable assets summary for the workspace.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return billable assets summary for the workspace on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getBillable() {
+ // Generated convenience method for getBillableWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getBillableWithResponse(requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(ReportBillableAssetSummaryResult.class));
+ }
+
+ /**
+ * Get the most recent snapshot of asset summary values for the snapshot request.
+ *
+ * @param reportAssetSnapshotRequest A request body used to retrieve an asset report snapshot.
+ * @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.
+ * @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.
+ * @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}.
+ */
+ @Generated
+ @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 -> 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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return asset summary details for the summary request on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSummary(ReportAssetSummaryRequest reportAssetSummaryRequest) {
+ // Generated convenience method for getSummaryWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSummaryWithResponse(BinaryData.fromObject(reportAssetSummaryRequest), requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(ReportAssetSummaryResult.class));
+ }
+
+ /**
+ * Retrieve a list of saved filters for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of SavedFilter items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listSavedFilter(String filter, Integer skip) {
+ // Generated convenience method for listSavedFilter
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of saved filters for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of SavedFilter items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a saved filter by filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSavedFilter(String filterName) {
+ // Generated convenience method for getSavedFilterWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSavedFilterWithResponse(filterName, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(SavedFilter.class));
+ }
+
+ /**
+ * Create or replace a saved filter with a given filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @param savedFilterData A request body used to create a saved filter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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)
+ .map(protocolMethodData -> protocolMethodData.toObject(SavedFilter.class));
+ }
+
+ /**
+ * Delete a saved filter with a given filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteSavedFilter(String filterName) {
+ // Generated convenience method for deleteSavedFilterWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return deleteSavedFilterWithResponse(filterName, requestOptions).flatMap(FluxUtil::toMono);
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param orderBy A list of expressions that specify the order of the returned resources.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of Task items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTask(String filter, String orderBy, Integer skip) {
+ // Generated convenience method for listTask
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (skip != null) {
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of Task items as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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));
+ });
+ }
+
+ /**
+ * Retrieve a task by taskId.
+ *
+ * @param taskId The unique identifier of the task.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTask(String taskId) {
+ // Generated convenience method for getTaskWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTaskWithResponse(taskId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(Task.class));
+ }
+
+ /**
+ * Cancel a task by taskId.
+ *
+ * @param taskId The unique identifier of the task.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono cancelTask(String taskId) {
+ // Generated convenience method for cancelTaskWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return cancelTaskWithResponse(taskId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(Task.class));
+ }
+}
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
new file mode 100644
index 000000000000..8027fdbfc230
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClient.java
@@ -0,0 +1,2009 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.analytics.defender.easm;
+
+import com.azure.analytics.defender.easm.implementation.EasmClientImpl;
+import com.azure.analytics.defender.easm.models.AssetResource;
+import com.azure.analytics.defender.easm.models.AssetUpdateData;
+import com.azure.analytics.defender.easm.models.DataConnection;
+import com.azure.analytics.defender.easm.models.DataConnectionData;
+import com.azure.analytics.defender.easm.models.DiscoGroup;
+import com.azure.analytics.defender.easm.models.DiscoGroupData;
+import com.azure.analytics.defender.easm.models.DiscoRunResult;
+import com.azure.analytics.defender.easm.models.DiscoTemplate;
+import com.azure.analytics.defender.easm.models.ReportAssetSnapshotRequest;
+import com.azure.analytics.defender.easm.models.ReportAssetSnapshotResult;
+import com.azure.analytics.defender.easm.models.ReportAssetSummaryRequest;
+import com.azure.analytics.defender.easm.models.ReportAssetSummaryResult;
+import com.azure.analytics.defender.easm.models.ReportBillableAssetSummaryResult;
+import com.azure.analytics.defender.easm.models.SavedFilter;
+import com.azure.analytics.defender.easm.models.SavedFilterData;
+import com.azure.analytics.defender.easm.models.Task;
+import com.azure.analytics.defender.easm.models.ValidateResult;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.BinaryData;
+
+/** Initializes a new instance of the synchronous EasmClient type. */
+@ServiceClient(builder = EasmClientBuilder.class)
+public final class EasmClient {
+ @Generated private final EasmClientImpl serviceClient;
+
+ /**
+ * Initializes an instance of EasmClient class.
+ *
+ * @param serviceClient the service client implementation.
+ */
+ @Generated
+ EasmClient(EasmClientImpl serviceClient) {
+ this.serviceClient = serviceClient;
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAssetResource(RequestOptions requestOptions) {
+ return this.serviceClient.listAssetResource(requestOptions);
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): {
+ * String: boolean (Optional)
+ * }
+ * transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateAssetsWithResponse(
+ String filter, BinaryData assetUpdateData, RequestOptions requestOptions) {
+ return this.serviceClient.updateAssetsWithResponse(filter, assetUpdateData, requestOptions);
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAssetResourceWithResponse(String assetId, RequestOptions requestOptions) {
+ return this.serviceClient.getAssetResourceWithResponse(assetId, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDataConnection(RequestOptions requestOptions) {
+ return this.serviceClient.listDataConnection(requestOptions);
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response validateDataConnectionWithResponse(
+ BinaryData dataConnectionData, RequestOptions requestOptions) {
+ return this.serviceClient.validateDataConnectionWithResponse(dataConnectionData, requestOptions);
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrReplaceDataConnectionWithResponse(
+ String dataConnectionName, BinaryData dataConnectionData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceDataConnectionWithResponse(
+ dataConnectionName, dataConnectionData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteDataConnectionWithResponse(String dataConnectionName, RequestOptions requestOptions) {
+ return this.serviceClient.deleteDataConnectionWithResponse(dataConnectionName, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoGroup(RequestOptions requestOptions) {
+ return this.serviceClient.listDiscoGroup(requestOptions);
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response validateDiscoGroupWithResponse(
+ BinaryData discoGroupData, RequestOptions requestOptions) {
+ return this.serviceClient.validateDiscoGroupWithResponse(discoGroupData, requestOptions);
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.getDiscoGroupWithResponse(groupName, requestOptions);
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrReplaceDiscoGroupWithResponse(
+ String groupName, BinaryData discoGroupData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceDiscoGroupWithResponse(groupName, discoGroupData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response runDiscoGroupWithResponse(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.runDiscoGroupWithResponse(groupName, requestOptions);
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listRuns(String groupName, RequestOptions requestOptions) {
+ return this.serviceClient.listRuns(groupName, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * industry: String (Optional)
+ * region: String (Optional)
+ * countryCode: String (Optional)
+ * stateCode: String (Optional)
+ * city: String (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * 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 DiscoTemplate items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoTemplate(RequestOptions requestOptions) {
+ return this.serviceClient.listDiscoTemplate(requestOptions);
+ }
+
+ /**
+ * Retrieve a disco template with a given templateId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * industry: String (Optional)
+ * region: String (Optional)
+ * countryCode: String (Optional)
+ * stateCode: String (Optional)
+ * city: String (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDiscoTemplateWithResponse(String templateId, RequestOptions requestOptions) {
+ return this.serviceClient.getDiscoTemplateWithResponse(templateId, requestOptions);
+ }
+
+ /**
+ * Get billable assets summary for the workspace.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * assetSummaries (Optional): [
+ * (Optional){
+ * date: LocalDate (Optional)
+ * total: Long (Optional)
+ * assetBreakdown (Optional): [
+ * (Optional){
+ * kind: String(domain/host/ipAddress) (Optional)
+ * count: Long (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 billable assets summary for the workspace along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getBillableWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.getBillableWithResponse(requestOptions);
+ }
+
+ /**
+ * Get the most recent snapshot of asset summary values for the snapshot request.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * metric: String (Optional)
+ * labelName: String (Optional)
+ * size: Integer (Optional)
+ * page: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * displayName: String (Optional)
+ * metric: String (Optional)
+ * labelName: String (Optional)
+ * updatedAt: OffsetDateTime (Optional)
+ * description: String (Optional)
+ * assets (Optional): {
+ * totalElements: Long (Optional)
+ * mark: String (Optional)
+ * nextLink: String (Optional)
+ * value (Optional): [
+ * (Optional){
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * reason: String (Optional)
+ * }
+ * ]
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 most recent snapshot of asset summary values for the snapshot request along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSnapshotWithResponse(
+ BinaryData reportAssetSnapshotRequest, RequestOptions requestOptions) {
+ return this.serviceClient.getSnapshotWithResponse(reportAssetSnapshotRequest, requestOptions);
+ }
+
+ /**
+ * Get asset summary details for the summary request.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * metricCategories (Optional): [
+ * String (Optional)
+ * ]
+ * metrics (Optional): [
+ * String (Optional)
+ * ]
+ * filters (Optional): [
+ * String (Optional)
+ * ]
+ * groupBy: String (Optional)
+ * segmentBy: String (Optional)
+ * labelName: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * assetSummaries (Optional): [
+ * (Optional){
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * updatedAt: OffsetDateTime (Optional)
+ * metricCategory: String (Optional)
+ * metric: String (Optional)
+ * filter: String (Optional)
+ * labelName: String (Optional)
+ * count: Long (Optional)
+ * link: String (Optional)
+ * children (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listSavedFilter(RequestOptions requestOptions) {
+ return this.serviceClient.listSavedFilter(requestOptions);
+ }
+
+ /**
+ * Retrieve a saved filter by filterName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSavedFilterWithResponse(String filterName, RequestOptions requestOptions) {
+ return this.serviceClient.getSavedFilterWithResponse(filterName, requestOptions);
+ }
+
+ /**
+ * Create or replace a saved filter with a given filterName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * filter: String (Required)
+ * description: String (Required)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * filter: String (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrReplaceSavedFilterWithResponse(
+ String filterName, BinaryData savedFilterData, RequestOptions requestOptions) {
+ return this.serviceClient.createOrReplaceSavedFilterWithResponse(filterName, savedFilterData, requestOptions);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteSavedFilterWithResponse(String filterName, RequestOptions requestOptions) {
+ return this.serviceClient.deleteSavedFilterWithResponse(filterName, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (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 Task items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTask(RequestOptions requestOptions) {
+ return this.serviceClient.listTask(requestOptions);
+ }
+
+ /**
+ * Retrieve a task by taskId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getTaskWithResponse(String taskId, RequestOptions requestOptions) {
+ return this.serviceClient.getTaskWithResponse(taskId, requestOptions);
+ }
+
+ /**
+ * Cancel a task by taskId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response cancelTaskWithResponse(String taskId, RequestOptions requestOptions) {
+ return this.serviceClient.cancelTaskWithResponse(taskId, requestOptions);
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AssetResource items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAssetResource(String filter, String orderBy, Integer skip, String mark) {
+ // Generated convenience method for listAssetResource
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (mark != null) {
+ requestOptions.addQueryParam("mark", mark, false);
+ }
+ return serviceClient
+ .listAssetResource(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AssetResource.class));
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AssetResource items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAssetResource() {
+ // Generated convenience method for listAssetResource
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listAssetResource(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AssetResource.class));
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * @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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Task updateAssets(String filter, AssetUpdateData assetUpdateData) {
+ // Generated convenience method for updateAssetsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return updateAssetsWithResponse(filter, BinaryData.fromObject(assetUpdateData), requestOptions)
+ .getValue()
+ .toObject(Task.class);
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * @param assetId The system generated unique id for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the items in the current page of results.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AssetResource getAssetResource(String assetId) {
+ // Generated convenience method for getAssetResourceWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAssetResourceWithResponse(assetId, requestOptions).getValue().toObject(AssetResource.class);
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DataConnection items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDataConnection(Integer skip) {
+ // Generated convenience method for listDataConnection
+ RequestOptions requestOptions = new RequestOptions();
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .listDataConnection(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DataConnection.class));
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DataConnection items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDataConnection() {
+ // Generated convenience method for listDataConnection
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listDataConnection(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DataConnection.class));
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionData The dataConnectionData parameter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateResult validateDataConnection(DataConnectionData dataConnectionData) {
+ // Generated convenience method for validateDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return validateDataConnectionWithResponse(BinaryData.fromObject(dataConnectionData), requestOptions)
+ .getValue()
+ .toObject(ValidateResult.class);
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataConnection getDataConnection(String dataConnectionName) {
+ // Generated convenience method for getDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDataConnectionWithResponse(dataConnectionName, requestOptions)
+ .getValue()
+ .toObject(DataConnection.class);
+ }
+
+ /**
+ * Create or replace a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @param dataConnectionData The dataConnectionData parameter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataConnection createOrReplaceDataConnection(
+ String dataConnectionName, DataConnectionData dataConnectionData) {
+ // Generated convenience method for createOrReplaceDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return createOrReplaceDataConnectionWithResponse(
+ dataConnectionName, BinaryData.fromObject(dataConnectionData), requestOptions)
+ .getValue()
+ .toObject(DataConnection.class);
+ }
+
+ /**
+ * Delete a data connection with a given dataConnectionName.
+ *
+ * @param dataConnectionName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void deleteDataConnection(String dataConnectionName) {
+ // Generated convenience method for deleteDataConnectionWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ deleteDataConnectionWithResponse(dataConnectionName, requestOptions).getValue();
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoGroup items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoGroup(String filter, Integer skip) {
+ // Generated convenience method for listDiscoGroup
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .listDiscoGroup(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoGroup.class));
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoGroup items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoGroup() {
+ // Generated convenience method for listDiscoGroup
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listDiscoGroup(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoGroup.class));
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * @param discoGroupData A request body used to create a discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateResult validateDiscoGroup(DiscoGroupData discoGroupData) {
+ // Generated convenience method for validateDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return validateDiscoGroupWithResponse(BinaryData.fromObject(discoGroupData), requestOptions)
+ .getValue()
+ .toObject(ValidateResult.class);
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoGroup getDiscoGroup(String groupName) {
+ // Generated convenience method for getDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDiscoGroupWithResponse(groupName, requestOptions).getValue().toObject(DiscoGroup.class);
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @param discoGroupData A request body used to create a discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoGroup createOrReplaceDiscoGroup(String groupName, DiscoGroupData discoGroupData) {
+ // Generated convenience method for createOrReplaceDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return createOrReplaceDiscoGroupWithResponse(groupName, BinaryData.fromObject(discoGroupData), requestOptions)
+ .getValue()
+ .toObject(DiscoGroup.class);
+ }
+
+ /**
+ * Run a discovery group with a given groupName.
+ *
+ * @param groupName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void runDiscoGroup(String groupName) {
+ // Generated convenience method for runDiscoGroupWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ runDiscoGroupWithResponse(groupName, requestOptions).getValue();
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * @param groupName The unique identifier for the discovery group.
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listRuns(String groupName, String filter, Integer skip) {
+ // Generated convenience method for listRuns
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .listRuns(groupName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoRunResult.class));
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * @param groupName The unique identifier for the discovery group.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listRuns(String groupName) {
+ // Generated convenience method for listRuns
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listRuns(groupName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoRunResult.class));
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoTemplate items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoTemplate(String filter, Integer skip) {
+ // Generated convenience method for listDiscoTemplate
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .listDiscoTemplate(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoTemplate.class));
+ }
+
+ /**
+ * Retrieve a list of disco templates for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of DiscoTemplate items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDiscoTemplate() {
+ // Generated convenience method for listDiscoTemplate
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listDiscoTemplate(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(DiscoTemplate.class));
+ }
+
+ /**
+ * Retrieve a disco template with a given templateId.
+ *
+ * @param templateId The system generated unique id for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the items in the current page of results.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoTemplate getDiscoTemplate(String templateId) {
+ // Generated convenience method for getDiscoTemplateWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDiscoTemplateWithResponse(templateId, requestOptions).getValue().toObject(DiscoTemplate.class);
+ }
+
+ /**
+ * Get billable assets summary for the workspace.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return billable assets summary for the workspace.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ReportBillableAssetSummaryResult getBillable() {
+ // Generated convenience method for getBillableWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getBillableWithResponse(requestOptions).getValue().toObject(ReportBillableAssetSummaryResult.class);
+ }
+
+ /**
+ * Get the most recent snapshot of asset summary values for the snapshot request.
+ *
+ * @param reportAssetSnapshotRequest A request body used to retrieve an asset report snapshot.
+ * @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.
+ * @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.
+ * @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.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ReportAssetSnapshotResult getSnapshot(ReportAssetSnapshotRequest reportAssetSnapshotRequest) {
+ // Generated convenience method for getSnapshotWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSnapshotWithResponse(BinaryData.fromObject(reportAssetSnapshotRequest), requestOptions)
+ .getValue()
+ .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.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return asset summary details for the summary request.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ReportAssetSummaryResult getSummary(ReportAssetSummaryRequest reportAssetSummaryRequest) {
+ // Generated convenience method for getSummaryWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSummaryWithResponse(BinaryData.fromObject(reportAssetSummaryRequest), requestOptions)
+ .getValue()
+ .toObject(ReportAssetSummaryResult.class);
+ }
+
+ /**
+ * Retrieve a list of saved filters for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of SavedFilter items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listSavedFilter(String filter, Integer skip) {
+ // Generated convenience method for listSavedFilter
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .listSavedFilter(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(SavedFilter.class));
+ }
+
+ /**
+ * Retrieve a list of saved filters for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of SavedFilter items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listSavedFilter() {
+ // Generated convenience method for listSavedFilter
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .listSavedFilter(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(SavedFilter.class));
+ }
+
+ /**
+ * Retrieve a saved filter by filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SavedFilter getSavedFilter(String filterName) {
+ // Generated convenience method for getSavedFilterWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSavedFilterWithResponse(filterName, requestOptions).getValue().toObject(SavedFilter.class);
+ }
+
+ /**
+ * Create or replace a saved filter with a given filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @param savedFilterData A request body used to create a saved filter.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SavedFilter createOrReplaceSavedFilter(String filterName, SavedFilterData savedFilterData) {
+ // Generated convenience method for createOrReplaceSavedFilterWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return createOrReplaceSavedFilterWithResponse(
+ filterName, BinaryData.fromObject(savedFilterData), requestOptions)
+ .getValue()
+ .toObject(SavedFilter.class);
+ }
+
+ /**
+ * Delete a saved filter with a given filterName.
+ *
+ * @param filterName The caller provided unique name for the resource.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void deleteSavedFilter(String filterName) {
+ // Generated convenience method for deleteSavedFilterWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ deleteSavedFilterWithResponse(filterName, requestOptions).getValue();
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * @param filter Filter the result list using the given expression.
+ * @param orderBy A list of expressions that specify the order of the returned resources.
+ * @param skip The number of result items to skip.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of Task items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTask(String filter, String orderBy, Integer skip) {
+ // Generated convenience method for listTask
+ RequestOptions requestOptions = new RequestOptions();
+ if (filter != null) {
+ requestOptions.addQueryParam("filter", filter, false);
+ }
+ if (orderBy != null) {
+ requestOptions.addQueryParam("orderby", orderBy, false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listTask(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(Task.class));
+ }
+
+ /**
+ * Retrieve a list of tasks for the provided search parameters.
+ *
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of Task items as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTask() {
+ // Generated convenience method for listTask
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listTask(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(Task.class));
+ }
+
+ /**
+ * Retrieve a task by taskId.
+ *
+ * @param taskId The unique identifier of the task.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Task getTask(String taskId) {
+ // Generated convenience method for getTaskWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTaskWithResponse(taskId, requestOptions).getValue().toObject(Task.class);
+ }
+
+ /**
+ * Cancel a task by taskId.
+ *
+ * @param taskId The unique identifier of the task.
+ * @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.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Task cancelTask(String taskId) {
+ // Generated convenience method for cancelTaskWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return cancelTaskWithResponse(taskId, requestOptions).getValue().toObject(Task.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
new file mode 100644
index 000000000000..db3738be473b
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmClientBuilder.java
@@ -0,0 +1,357 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.analytics.defender.easm;
+
+import com.azure.analytics.defender.easm.implementation.EasmClientImpl;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.client.traits.ConfigurationTrait;
+import com.azure.core.client.traits.EndpointTrait;
+import com.azure.core.client.traits.HttpTrait;
+import com.azure.core.client.traits.TokenCredentialTrait;
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.AddHeadersPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.util.ClientOptions;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.builder.ClientBuilderUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.serializer.JacksonAdapter;
+import java.util.ArrayList;
+import java.util.List;
+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 {
+ @Generated private static final String SDK_NAME = "name";
+
+ @Generated private static final String SDK_VERSION = "version";
+
+ @Generated
+ 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");
+
+ @Generated private final List pipelinePolicies;
+
+ /** Create an instance of the EasmClientBuilder. */
+ @Generated
+ public EasmClientBuilder() {
+ this.pipelinePolicies = new ArrayList<>();
+ }
+
+ /*
+ * The HTTP pipeline to send requests through.
+ */
+ @Generated private HttpPipeline pipeline;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder pipeline(HttpPipeline pipeline) {
+ if (this.pipeline != null && pipeline == null) {
+ LOGGER.info("HttpPipeline is being set to 'null' when it was previously configured.");
+ }
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The HTTP client used to send the request.
+ */
+ @Generated private HttpClient httpClient;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder httpClient(HttpClient httpClient) {
+ this.httpClient = httpClient;
+ return this;
+ }
+
+ /*
+ * The logging configuration for HTTP requests and responses.
+ */
+ @Generated private HttpLogOptions httpLogOptions;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = httpLogOptions;
+ return this;
+ }
+
+ /*
+ * The client options such as application ID and custom headers to set on a request.
+ */
+ @Generated private ClientOptions clientOptions;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder clientOptions(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ return this;
+ }
+
+ /*
+ * The retry options to configure retry policy for failed requests.
+ */
+ @Generated private RetryOptions retryOptions;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder retryOptions(RetryOptions retryOptions) {
+ this.retryOptions = retryOptions;
+ return this;
+ }
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
+ Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
+ pipelinePolicies.add(customPolicy);
+ return this;
+ }
+
+ /*
+ * The configuration store that is used during construction of the service client.
+ */
+ @Generated private Configuration configuration;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder configuration(Configuration configuration) {
+ this.configuration = configuration;
+ return this;
+ }
+
+ /*
+ * The TokenCredential used for authentication.
+ */
+ @Generated private TokenCredential tokenCredential;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder credential(TokenCredential tokenCredential) {
+ this.tokenCredential = tokenCredential;
+ return this;
+ }
+
+ /*
+ * The service endpoint
+ */
+ @Generated private String endpoint;
+
+ /** {@inheritDoc}. */
+ @Generated
+ @Override
+ public EasmClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription.
+ */
+ @Generated private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the EasmClientBuilder.
+ */
+ @Generated
+ public EasmClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The name of the Resource Group.
+ */
+ @Generated private String resourceGroupName;
+
+ /**
+ * Sets The name of the Resource Group.
+ *
+ * @param resourceGroupName the resourceGroupName value.
+ * @return the EasmClientBuilder.
+ */
+ @Generated
+ public EasmClientBuilder resourceGroupName(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ /*
+ * The name of the Workspace.
+ */
+ @Generated private String workspaceName;
+
+ /**
+ * Sets The name of the Workspace.
+ *
+ * @param workspaceName the workspaceName value.
+ * @return the EasmClientBuilder.
+ */
+ @Generated
+ public EasmClientBuilder workspaceName(String workspaceName) {
+ this.workspaceName = workspaceName;
+ return this;
+ }
+
+ /*
+ * Service version
+ */
+ @Generated private EasmServiceVersion serviceVersion;
+
+ /**
+ * Sets Service version.
+ *
+ * @param serviceVersion the serviceVersion value.
+ * @return the EasmClientBuilder.
+ */
+ @Generated
+ public EasmClientBuilder serviceVersion(EasmServiceVersion serviceVersion) {
+ this.serviceVersion = serviceVersion;
+ return this;
+ }
+
+ /*
+ * The retry policy that will attempt to retry failed requests, if applicable.
+ */
+ @Generated private RetryPolicy retryPolicy;
+
+ /**
+ * Sets The retry policy that will attempt to retry failed requests, if applicable.
+ *
+ * @param retryPolicy the retryPolicy value.
+ * @return the EasmClientBuilder.
+ */
+ @Generated
+ public EasmClientBuilder retryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = retryPolicy;
+ return this;
+ }
+
+ /**
+ * Builds an instance of EasmClientImpl with the provided parameters.
+ *
+ * @return an instance of EasmClientImpl.
+ */
+ @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);
+ return client;
+ }
+
+ @Generated
+ private HttpPipeline createHttpPipeline() {
+ 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<>();
+ String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+ String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
+ policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
+ policies.add(new RequestIdPolicy());
+ policies.add(new AddHeadersFromContextPolicy());
+ HttpHeaders headers = new HttpHeaders();
+ 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));
+ 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));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .httpClient(httpClient)
+ .clientOptions(localClientOptions)
+ .build();
+ return httpPipeline;
+ }
+
+ /**
+ * Builds an instance of EasmAsyncClient class.
+ *
+ * @return an instance of EasmAsyncClient.
+ */
+ @Generated
+ public EasmAsyncClient buildAsyncClient() {
+ return new EasmAsyncClient(buildInnerClient());
+ }
+
+ /**
+ * Builds an instance of EasmClient class.
+ *
+ * @return an instance of EasmClient.
+ */
+ @Generated
+ public EasmClient buildClient() {
+ return new EasmClient(buildInnerClient());
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(EasmClientBuilder.class);
+}
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
new file mode 100644
index 000000000000..e11eb8d56973
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/EasmServiceVersion.java
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.analytics.defender.easm;
+
+import com.azure.core.util.ServiceVersion;
+
+/** Service version of EasmClient. */
+public enum EasmServiceVersion implements ServiceVersion {
+ /** Enum value 2023-03-01-preview. */
+ V2023_03_01_PREVIEW("2023-03-01-preview");
+
+ private final String version;
+
+ EasmServiceVersion(String version) {
+ this.version = version;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public String getVersion() {
+ return this.version;
+ }
+
+ /**
+ * Gets the latest service version supported by this client library.
+ *
+ * @return The latest {@link EasmServiceVersion}.
+ */
+ public static EasmServiceVersion getLatest() {
+ return V2023_03_01_PREVIEW;
+ }
+}
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
new file mode 100644
index 000000000000..1a6689bceff5
--- /dev/null
+++ b/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/implementation/EasmClientImpl.java
@@ -0,0 +1,6790 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.analytics.defender.easm.implementation;
+
+import com.azure.analytics.defender.easm.EasmServiceVersion;
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.UrlBuilder;
+import com.azure.core.util.serializer.JacksonAdapter;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the EasmClient type. */
+public final class EasmClientImpl {
+ /** 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. */
+ 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. */
+ 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. */
+ 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. */
+ private final String workspaceName;
+
+ /**
+ * Gets The name of the Workspace.
+ *
+ * @return the workspaceName value.
+ */
+ public String getWorkspaceName() {
+ return this.workspaceName;
+ }
+
+ /** 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. */
+ 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. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ public SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * Initializes an instance of EasmClient client.
+ *
+ * @param endpoint The endpoint hosting the requested resource. For example,
+ * 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);
+ }
+
+ /**
+ * 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.
+ * @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);
+ }
+
+ /**
+ * 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.
+ * @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) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.resourceGroupName = resourceGroupName;
+ this.workspaceName = workspaceName;
+ this.serviceVersion = serviceVersion;
+ 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. */
+ @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})
+ @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);
+
+ @Get("/assets")
+ @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);
+
+ @Post("/assets")
+ @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);
+
+ @Post("/assets")
+ @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);
+
+ @Get("/assets/{assetId}")
+ @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);
+
+ @Get("/assets/{assetId}")
+ @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);
+
+ @Get("/dataConnections")
+ @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);
+
+ @Get("/dataConnections")
+ @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);
+
+ @Post("/dataConnections:validate")
+ @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);
+
+ @Post("/dataConnections:validate")
+ @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);
+
+ @Get("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Get("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Put("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Put("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Delete("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Delete("/dataConnections/{dataConnectionName}")
+ @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);
+
+ @Get("/discoGroups")
+ @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);
+
+ @Get("/discoGroups")
+ @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);
+
+ @Post("/discoGroups:validate")
+ @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);
+
+ @Post("/discoGroups:validate")
+ @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);
+
+ @Get("/discoGroups/{groupName}")
+ @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);
+
+ @Get("/discoGroups/{groupName}")
+ @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);
+
+ @Put("/discoGroups/{groupName}")
+ @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);
+
+ @Put("/discoGroups/{groupName}")
+ @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);
+
+ @Post("/discoGroups/{groupName}:run")
+ @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);
+
+ @Post("/discoGroups/{groupName}:run")
+ @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);
+
+ @Get("/discoGroups/{groupName}/runs")
+ @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);
+
+ @Get("/discoGroups/{groupName}/runs")
+ @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);
+
+ @Get("/discoTemplates")
+ @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);
+
+ @Get("/discoTemplates")
+ @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);
+
+ @Get("/discoTemplates/{templateId}")
+ @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);
+
+ @Get("/discoTemplates/{templateId}")
+ @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);
+
+ @Post("/reports/assets:getBillable")
+ @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);
+
+ @Post("/reports/assets:getBillable")
+ @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);
+
+ @Post("/reports/assets:getSnapshot")
+ @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);
+
+ @Post("/reports/assets:getSnapshot")
+ @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);
+
+ @Post("/reports/assets:getSummary")
+ @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);
+
+ @Post("/reports/assets:getSummary")
+ @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);
+
+ @Get("/savedFilters")
+ @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);
+
+ @Get("/savedFilters")
+ @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);
+
+ @Get("/savedFilters/{filterName}")
+ @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);
+
+ @Get("/savedFilters/{filterName}")
+ @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);
+
+ @Put("/savedFilters/{filterName}")
+ @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);
+
+ @Put("/savedFilters/{filterName}")
+ @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);
+
+ @Delete("/savedFilters/{filterName}")
+ @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);
+
+ @Delete("/savedFilters/{filterName}")
+ @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);
+
+ @Get("/tasks")
+ @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);
+
+ @Get("/tasks")
+ @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);
+
+ @Get("/tasks/{taskId}")
+ @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);
+
+ @Get("/tasks/{taskId}")
+ @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);
+
+ @Post("/tasks/{taskId}:cancel")
+ @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);
+
+ @Post("/tasks/{taskId}:cancel")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+
+ @Get("{nextLink}")
+ @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);
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a list of assets for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | orderby | String | No | A list of expressions that specify the order of the returned resources. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ * | mark | String | No | Specify 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
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): {
+ * String: boolean (Optional)
+ * }
+ * transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 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) {
+ 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));
+ }
+
+ /**
+ * Update labels on assets matching the provided filter.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): {
+ * String: boolean (Optional)
+ * }
+ * transfers: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * startedAt: OffsetDateTime (Optional)
+ * completedAt: OffsetDateTime (Optional)
+ * lastPolledAt: OffsetDateTime (Optional)
+ * state: String(pending/running/paused/complete/incomplete/failed/warning) (Optional)
+ * phase: String(running/polling/complete) (Optional)
+ * reason: String (Optional)
+ * metadata (Optional): {
+ * String: Object (Optional)
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve an asset by assetId.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Required)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * uuid: String (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * state: String(candidate/confirmed/dismissed/candidateInvestigate/associatedPartner/associatedThirdparty/archived) (Optional)
+ * externalId: String (Optional)
+ * labels (Optional): [
+ * String (Optional)
+ * ]
+ * wildcard: Boolean (Optional)
+ * discoGroupName: String (Optional)
+ * auditTrail (Optional): [
+ * (Optional){
+ * id: String (Optional)
+ * name: String (Optional)
+ * displayName: String (Optional)
+ * kind: String(as/contact/domain/host/ipAddress/ipBlock/page/sslCert) (Optional)
+ * reason: String (Optional)
+ * }
+ * ]
+ * 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}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a list of data connections.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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));
+ }
+
+ /**
+ * Validate a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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));
+ }
+
+ /**
+ * Retrieve a data connection with a given dataConnectionName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * Create or replace a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 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) {
+ 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));
+ }
+
+ /**
+ * Create or replace a data connection with a given dataConnectionName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * content: String(assets/attackSurfaceInsights) (Optional)
+ * createdDate: OffsetDateTime (Optional)
+ * frequency: String(daily/weekly/monthly) (Optional)
+ * frequencyOffset: Integer (Optional)
+ * updatedDate: OffsetDateTime (Optional)
+ * userUpdatedAt: OffsetDateTime (Optional)
+ * active: Boolean (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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));
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a list of discovery group for the provided search parameters.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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));
+ }
+
+ /**
+ * Validate a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * error (Optional): {
+ * code: String (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String (Optional)
+ * value: Object (Optional)
+ * }
+ * }
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve a discovery group with a given groupName.
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @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);
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 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) {
+ 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));
+ }
+
+ /**
+ * Create a discovery group with a given groupName.
+ *
+ * Request Body Schema
+ *
+ *
{@code
+ * {
+ * name: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * templateId: String (Optional)
+ * }
+ * }
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * id: String (Optional)
+ * name: String (Required)
+ * displayName: String (Optional)
+ * description: String (Optional)
+ * tier: String (Optional)
+ * frequencyMilliseconds: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * latestRun (Optional): {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * createdDate: OffsetDateTime (Optional)
+ * 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.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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);
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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));
+ }
+
+ /**
+ * 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.
+ * @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 {@link Response}.
+ */
+ @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);
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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 response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @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));
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | filter | String | No | Filter the result list using the given expression. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * Response Body Schema
+ *
+ *
{@code
+ * {
+ * submittedDate: OffsetDateTime (Optional)
+ * startedDate: OffsetDateTime (Optional)
+ * completedDate: OffsetDateTime (Optional)
+ * tier: String (Optional)
+ * state: String(pending/running/completed/failed) (Optional)
+ * totalAssetsFoundCount: Long (Optional)
+ * seeds (Optional): [
+ * (Optional){
+ * kind: String(as/attribute/contact/domain/host/ipBlock) (Optional)
+ * name: String (Optional)
+ * }
+ * ]
+ * excludes (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * names (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ * @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.
+ * @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 paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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);
+ });
+ }
+
+ /**
+ * Retrieve a collection of discovery run results for a discovery group with a given groupName.
+ *
+ * Query Parameters
+ *
+ *
+ * Query Parameters
+ * |