operationPreviews() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationPreviews();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
index 44ef47e9ee44..96ba211961d3 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
@@ -7,14 +7,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.PublicNetworkSolution;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
import com.azure.resourcemanager.servicelinker.models.VNetSolution;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of the linker. */
+/** The properties of the Linker. */
@Fluent
-public final class LinkerProperties {
+public class LinkerProperties {
/*
* The target service properties
*/
@@ -57,6 +59,22 @@ public final class LinkerProperties {
@JsonProperty(value = "scope")
private String scope;
+ /*
+ * The network solution.
+ */
+ @JsonProperty(value = "publicNetworkSolution")
+ private PublicNetworkSolution publicNetworkSolution;
+
+ /*
+ * The connection information consumed by applications, including secrets, connection strings.
+ */
+ @JsonProperty(value = "configurationInfo")
+ private ConfigurationInfo configurationInfo;
+
+ /** Creates an instance of LinkerProperties class. */
+ public LinkerProperties() {
+ }
+
/**
* Get the targetService property: The target service properties.
*
@@ -186,6 +204,48 @@ public LinkerProperties withScope(String scope) {
return this;
}
+ /**
+ * Get the publicNetworkSolution property: The network solution.
+ *
+ * @return the publicNetworkSolution value.
+ */
+ public PublicNetworkSolution publicNetworkSolution() {
+ return this.publicNetworkSolution;
+ }
+
+ /**
+ * Set the publicNetworkSolution property: The network solution.
+ *
+ * @param publicNetworkSolution the publicNetworkSolution value to set.
+ * @return the LinkerProperties object itself.
+ */
+ public LinkerProperties withPublicNetworkSolution(PublicNetworkSolution publicNetworkSolution) {
+ this.publicNetworkSolution = publicNetworkSolution;
+ return this;
+ }
+
+ /**
+ * Get the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @return the configurationInfo value.
+ */
+ public ConfigurationInfo configurationInfo() {
+ return this.configurationInfo;
+ }
+
+ /**
+ * Set the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @param configurationInfo the configurationInfo value to set.
+ * @return the LinkerProperties object itself.
+ */
+ public LinkerProperties withConfigurationInfo(ConfigurationInfo configurationInfo) {
+ this.configurationInfo = configurationInfo;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -204,5 +264,11 @@ public void validate() {
if (secretStore() != null) {
secretStore().validate();
}
+ if (publicNetworkSolution() != null) {
+ publicNetworkSolution().validate();
+ }
+ if (configurationInfo() != null) {
+ configurationInfo().validate();
+ }
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
index 44f17614df63..0057565c9e87 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
@@ -10,6 +10,8 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.PublicNetworkSolution;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
import com.azure.resourcemanager.servicelinker.models.VNetSolution;
@@ -19,19 +21,23 @@
@Fluent
public final class LinkerResourceInner extends ProxyResource {
/*
- * The properties of the linker.
+ * The properties of the Linker.
*/
@JsonProperty(value = "properties", required = true)
private LinkerProperties innerProperties = new LinkerProperties();
/*
- * The system data.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of LinkerResourceInner class. */
+ public LinkerResourceInner() {
+ }
+
/**
- * Get the innerProperties property: The properties of the linker.
+ * Get the innerProperties property: The properties of the Linker.
*
* @return the innerProperties value.
*/
@@ -40,7 +46,7 @@ private LinkerProperties innerProperties() {
}
/**
- * Get the systemData property: The system data.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -195,6 +201,54 @@ public LinkerResourceInner withScope(String scope) {
return this;
}
+ /**
+ * Get the publicNetworkSolution property: The network solution.
+ *
+ * @return the publicNetworkSolution value.
+ */
+ public PublicNetworkSolution publicNetworkSolution() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkSolution();
+ }
+
+ /**
+ * Set the publicNetworkSolution property: The network solution.
+ *
+ * @param publicNetworkSolution the publicNetworkSolution value to set.
+ * @return the LinkerResourceInner object itself.
+ */
+ public LinkerResourceInner withPublicNetworkSolution(PublicNetworkSolution publicNetworkSolution) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkerProperties();
+ }
+ this.innerProperties().withPublicNetworkSolution(publicNetworkSolution);
+ return this;
+ }
+
+ /**
+ * Get the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @return the configurationInfo value.
+ */
+ public ConfigurationInfo configurationInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().configurationInfo();
+ }
+
+ /**
+ * Set the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @param configurationInfo the configurationInfo value to set.
+ * @return the LinkerResourceInner object itself.
+ */
+ public LinkerResourceInner withConfigurationInfo(ConfigurationInfo configurationInfo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkerProperties();
+ }
+ this.innerProperties().withConfigurationInfo(configurationInfo);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
index 3d520cb77233..e9d065fb7e7a 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
@@ -10,20 +10,23 @@
import com.azure.resourcemanager.servicelinker.models.Origin;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for
- * data-plane operations and "false" for ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -35,19 +38,22 @@ public final class OperationInner {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access
- * Control (RBAC) and audit logs UX. Default value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
index 5d622571c49f..2df3a38b7164 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
@@ -11,7 +11,7 @@
import java.time.OffsetDateTime;
import java.util.List;
-/** The validation operation result for a linker. */
+/** The validation operation result for a Linker. */
@Fluent
public final class ValidateOperationResultInner {
/*
@@ -21,7 +21,7 @@ public final class ValidateOperationResultInner {
private ValidateResult innerProperties;
/*
- * Validated linker id.
+ * Validated Linker id.
*/
@JsonProperty(value = "resourceId")
private String resourceId;
@@ -32,6 +32,10 @@ public final class ValidateOperationResultInner {
@JsonProperty(value = "status")
private String status;
+ /** Creates an instance of ValidateOperationResultInner class. */
+ public ValidateOperationResultInner() {
+ }
+
/**
* Get the innerProperties property: The validation result detail.
*
@@ -42,7 +46,7 @@ private ValidateResult innerProperties() {
}
/**
- * Get the resourceId property: Validated linker id.
+ * Get the resourceId property: Validated Linker id.
*
* @return the resourceId value.
*/
@@ -51,7 +55,7 @@ public String resourceId() {
}
/**
- * Set the resourceId property: Validated linker id.
+ * Set the resourceId property: Validated Linker id.
*
* @param resourceId the resourceId value to set.
* @return the ValidateOperationResultInner object itself.
@@ -174,7 +178,7 @@ public ValidateOperationResultInner withReportEndTimeUtc(OffsetDateTime reportEn
}
/**
- * Get the sourceId property: The resource id of the linker source application.
+ * Get the sourceId property: The resource id of the Linker source application.
*
* @return the sourceId value.
*/
@@ -183,7 +187,7 @@ public String sourceId() {
}
/**
- * Set the sourceId property: The resource id of the linker source application.
+ * Set the sourceId property: The resource id of the Linker source application.
*
* @param sourceId the sourceId value to set.
* @return the ValidateOperationResultInner object itself.
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
index 77eda44f84be..c2a2bbbfeea0 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
@@ -11,7 +11,7 @@
import java.time.OffsetDateTime;
import java.util.List;
-/** The validation result for a linker. */
+/** The validation result for a Linker. */
@Fluent
public final class ValidateResult {
/*
@@ -39,7 +39,7 @@ public final class ValidateResult {
private OffsetDateTime reportEndTimeUtc;
/*
- * The resource id of the linker source application.
+ * The resource id of the Linker source application.
*/
@JsonProperty(value = "sourceId")
private String sourceId;
@@ -62,6 +62,10 @@ public final class ValidateResult {
@JsonProperty(value = "validationDetail")
private List validationDetail;
+ /** Creates an instance of ValidateResult class. */
+ public ValidateResult() {
+ }
+
/**
* Get the linkerName property: The linker name.
*
@@ -143,7 +147,7 @@ public ValidateResult withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) {
}
/**
- * Get the sourceId property: The resource id of the linker source application.
+ * Get the sourceId property: The resource id of the Linker source application.
*
* @return the sourceId value.
*/
@@ -152,7 +156,7 @@ public String sourceId() {
}
/**
- * Set the sourceId property: The resource id of the linker source application.
+ * Set the sourceId property: The resource id of the Linker source application.
*
* @param sourceId the sourceId value to set.
* @return the ValidateResult object itself.
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java
new file mode 100644
index 000000000000..7f33b55f2b36
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.AuthType;
+import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationName;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameItem;
+import java.util.Collections;
+import java.util.List;
+
+public final class ConfigurationNameItemImpl implements ConfigurationNameItem {
+ private ConfigurationNameItemInner innerObject;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ ConfigurationNameItemImpl(
+ ConfigurationNameItemInner innerObject,
+ com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String targetService() {
+ return this.innerModel().targetService();
+ }
+
+ public ClientType clientType() {
+ return this.innerModel().clientType();
+ }
+
+ public AuthType authType() {
+ return this.innerModel().authType();
+ }
+
+ public List names() {
+ List inner = this.innerModel().names();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ConfigurationNameItemInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java
new file mode 100644
index 000000000000..7eec3b8b1253
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java
@@ -0,0 +1,316 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.servicelinker.fluent.ConfigurationNamesOperationsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ConfigurationNamesOperationsClient. */
+public final class ConfigurationNamesOperationsClientImpl implements ConfigurationNamesOperationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConfigurationNamesOperationsService service;
+
+ /** The service client containing this operation class. */
+ private final ServiceLinkerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ConfigurationNamesOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConfigurationNamesOperationsClientImpl(ServiceLinkerManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ ConfigurationNamesOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceLinkerManagementClientConfigurationNamesOperations to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceLinkerManagem")
+ public interface ConfigurationNamesOperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.ServiceLinker/configurationNames")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @QueryParam("$filter") String filter,
+ @QueryParam("$skipToken") String skipToken,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter, String skipToken) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(), this.client.getApiVersion(), filter, skipToken, accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String filter, String skipToken, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), filter, skipToken, accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter, String skipToken) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, skipToken), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final String filter = null;
+ final String skipToken = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, skipToken), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter, String skipToken, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, skipToken, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final String filter = null;
+ final String skipToken = null;
+ return new PagedIterable<>(listAsync(filter, skipToken));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String filter, String skipToken, Context context) {
+ return new PagedIterable<>(listAsync(filter, skipToken, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java
new file mode 100644
index 000000000000..3f11fef1411a
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.servicelinker.fluent.ConfigurationNamesOperationsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameItem;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNamesOperations;
+
+public final class ConfigurationNamesOperationsImpl implements ConfigurationNamesOperations {
+ private static final ClientLogger LOGGER = new ClientLogger(ConfigurationNamesOperationsImpl.class);
+
+ private final ConfigurationNamesOperationsClient innerClient;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public ConfigurationNamesOperationsImpl(
+ ConfigurationNamesOperationsClient innerClient,
+ com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new ConfigurationNameItemImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String filter, String skipToken, Context context) {
+ PagedIterable inner = this.serviceClient().list(filter, skipToken, context);
+ return Utils.mapPage(inner, inner1 -> new ConfigurationNameItemImpl(inner1, this.manager()));
+ }
+
+ private ConfigurationNamesOperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
similarity index 70%
rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java
rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
index b0ea8b17ee5f..4f2738a1b604 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
@@ -4,19 +4,19 @@
package com.azure.resourcemanager.servicelinker.implementation;
-import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationResult;
import com.azure.resourcemanager.servicelinker.models.SourceConfiguration;
-import com.azure.resourcemanager.servicelinker.models.SourceConfigurationResult;
import java.util.Collections;
import java.util.List;
-public final class SourceConfigurationResultImpl implements SourceConfigurationResult {
- private SourceConfigurationResultInner innerObject;
+public final class ConfigurationResultImpl implements ConfigurationResult {
+ private ConfigurationResultInner innerObject;
private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
- SourceConfigurationResultImpl(
- SourceConfigurationResultInner innerObject,
+ ConfigurationResultImpl(
+ ConfigurationResultInner innerObject,
com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
@@ -31,7 +31,7 @@ public List configurations() {
}
}
- public SourceConfigurationResultInner innerModel() {
+ public ConfigurationResultInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
new file mode 100644
index 000000000000..795ffe79b422
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
@@ -0,0 +1,3326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+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.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+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.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicelinker.fluent.ConnectorsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.DryrunList;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
+import com.azure.resourcemanager.servicelinker.models.ResourceList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ConnectorsClient. */
+public final class ConnectorsClientImpl implements ConnectorsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectorsService service;
+
+ /** The service client containing this operation class. */
+ private final ServiceLinkerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectorsClientImpl(ServiceLinkerManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ConnectorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceLinkerManagementClientConnectors to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceLinkerManagem")
+ public interface ConnectorsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/dryruns")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDryrun(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDryrun(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("dryrunName") String dryrunName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createDryrun(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("dryrunName") String dryrunName,
+ @BodyParam("application/json") DryrunResourceInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> updateDryrun(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("dryrunName") String dryrunName,
+ @BodyParam("application/json") DryrunPatch parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> deleteDryrun(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("dryrunName") String dryrunName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LinkerResourceInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LinkerPatch parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}/validate")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> validate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker"
+ + "/locations/{location}/connectors/{connectorName}/generateConfigurations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> generateConfigurations(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ConfigurationInfo parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDryrunNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunSinglePageAsync(
+ String subscriptionId, String resourceGroupName, String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunSinglePageAsync(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location) {
+ return new PagedFlux<>(
+ () -> listDryrunSinglePageAsync(subscriptionId, resourceGroupName, location),
+ nextLink -> listDryrunNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ return new PagedFlux<>(
+ () -> listDryrunSinglePageAsync(subscriptionId, resourceGroupName, location, context),
+ nextLink -> listDryrunNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDryrun(
+ String subscriptionId, String resourceGroupName, String location) {
+ return new PagedIterable<>(listDryrunAsync(subscriptionId, resourceGroupName, location));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDryrun(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ return new PagedIterable<>(listDryrunAsync(subscriptionId, resourceGroupName, location, context));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDryrunWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDryrunWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ accept,
+ context);
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ return getDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDryrunWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ return getDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, context).block();
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner getDryrun(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ return getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE).getValue();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createDryrunWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createDryrunWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginCreateDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters) {
+ Mono>> mono =
+ createDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DryrunResourceInner.class,
+ DryrunResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginCreateDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), DryrunResourceInner.class, DryrunResourceInner.class, context);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginCreateDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginCreateDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters,
+ Context context) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters,
+ Context context) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner createDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters) {
+ return createDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).block();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner createDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunResourceInner parameters,
+ Context context) {
+ return createDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context).block();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateDryrunWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateDryrunWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunPatch parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginUpdateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ Mono>> mono =
+ updateDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DryrunResourceInner.class,
+ DryrunResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginUpdateDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunPatch parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), DryrunResourceInner.class, DryrunResourceInner.class, context);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginUpdateDryrun(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginUpdateDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunPatch parameters,
+ Context context) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateDryrunAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunPatch parameters,
+ Context context) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner updateDryrun(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ return updateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).block();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner updateDryrun(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String dryrunName,
+ DryrunPatch parameters,
+ Context context) {
+ return updateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context).block();
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteDryrunWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .deleteDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteDryrunWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .deleteDryrun(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ dryrunName,
+ accept,
+ context);
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ return deleteDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteDryrunWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ return deleteDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, context).block();
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE);
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String subscriptionId, String resourceGroupName, String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String subscriptionId, String resourceGroupName, String location) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(subscriptionId, resourceGroupName, location),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(subscriptionId, resourceGroupName, location, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location) {
+ return new PagedIterable<>(listAsync(subscriptionId, resourceGroupName, location));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ return new PagedIterable<>(listAsync(subscriptionId, resourceGroupName, location, context));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return getWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return getWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner get(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return getWithResponse(subscriptionId, resourceGroupName, location, connectorName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginCreateOrUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ LinkerResourceInner.class,
+ LinkerResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginCreateOrUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), LinkerResourceInner.class, LinkerResourceInner.class, context);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginCreateOrUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginCreateOrUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters,
+ Context context) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters,
+ Context context) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner createOrUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters) {
+ return createOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).block();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner createOrUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerResourceInner parameters,
+ Context context) {
+ return createOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ Mono>> mono =
+ deleteWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName).getSyncPoller();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ deleteAsync(subscriptionId, resourceGroupName, location, connectorName).block();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ deleteAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters) {
+ Mono>> mono =
+ updateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ LinkerResourceInner.class,
+ LinkerResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginUpdateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), LinkerResourceInner.class, LinkerResourceInner.class, context);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginUpdate(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters,
+ Context context) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters,
+ Context context) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner update(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters) {
+ return updateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).block();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner update(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ LinkerPatch parameters,
+ Context context) {
+ return updateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context).block();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> validateWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .validate(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> validateWithResponseAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .validate(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ValidateOperationResultInner> beginValidateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ Mono>> mono =
+ validateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ValidateOperationResultInner.class,
+ ValidateOperationResultInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ValidateOperationResultInner> beginValidateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ validateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ValidateOperationResultInner.class,
+ ValidateOperationResultInner.class,
+ context);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ValidateOperationResultInner> beginValidate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName).getSyncPoller();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ValidateOperationResultInner> beginValidate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName, context).getSyncPoller();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono validateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono validateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateOperationResultInner validate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return validateAsync(subscriptionId, resourceGroupName, location, connectorName).block();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateOperationResultInner validate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return validateAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generateConfigurationsWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ ConfigurationInfo parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .generateConfigurations(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generateConfigurationsWithResponseAsync(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ ConfigurationInfo parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .generateConfigurations(
+ this.client.getEndpoint(),
+ subscriptionId,
+ resourceGroupName,
+ location,
+ connectorName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono generateConfigurationsAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ final ConfigurationInfo parameters = null;
+ return generateConfigurationsWithResponseAsync(
+ subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response generateConfigurationsWithResponse(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ ConfigurationInfo parameters,
+ Context context) {
+ return generateConfigurationsWithResponseAsync(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationResultInner generateConfigurations(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ final ConfigurationInfo parameters = null;
+ return generateConfigurationsWithResponse(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listDryrunNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listDryrunNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java
new file mode 100644
index 000000000000..f2a159e70d7a
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java
@@ -0,0 +1,475 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.servicelinker.fluent.ConnectorsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationResult;
+import com.azure.resourcemanager.servicelinker.models.Connectors;
+import com.azure.resourcemanager.servicelinker.models.DryrunResource;
+import com.azure.resourcemanager.servicelinker.models.LinkerResource;
+import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult;
+
+public final class ConnectorsImpl implements Connectors {
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectorsImpl.class);
+
+ private final ConnectorsClient innerClient;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public ConnectorsImpl(
+ ConnectorsClient innerClient, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location) {
+ PagedIterable inner =
+ this.serviceClient().listDryrun(subscriptionId, resourceGroupName, location);
+ return Utils.mapPage(inner, inner1 -> new DryrunResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listDryrun(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listDryrun(subscriptionId, resourceGroupName, location, context);
+ return Utils.mapPage(inner, inner1 -> new DryrunResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getDryrunWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DryrunResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DryrunResource getDryrun(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ DryrunResourceInner inner =
+ this.serviceClient().getDryrun(subscriptionId, resourceGroupName, location, dryrunName);
+ if (inner != null) {
+ return new DryrunResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteDryrunWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, Context context) {
+ return this
+ .serviceClient()
+ .deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ }
+
+ public void deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ this.serviceClient().deleteDryrun(subscriptionId, resourceGroupName, location, dryrunName);
+ }
+
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location) {
+ PagedIterable inner =
+ this.serviceClient().list(subscriptionId, resourceGroupName, location);
+ return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String subscriptionId, String resourceGroupName, String location, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(subscriptionId, resourceGroupName, location, context);
+ return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(subscriptionId, resourceGroupName, location, connectorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new LinkerResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public LinkerResource get(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ LinkerResourceInner inner =
+ this.serviceClient().get(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new LinkerResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ this.serviceClient().delete(subscriptionId, resourceGroupName, location, connectorName);
+ }
+
+ public void delete(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ this.serviceClient().delete(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ public ValidateOperationResult validate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ ValidateOperationResultInner inner =
+ this.serviceClient().validate(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new ValidateOperationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ValidateOperationResult validate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ ValidateOperationResultInner inner =
+ this.serviceClient().validate(subscriptionId, resourceGroupName, location, connectorName, context);
+ if (inner != null) {
+ return new ValidateOperationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response generateConfigurationsWithResponse(
+ String subscriptionId,
+ String resourceGroupName,
+ String location,
+ String connectorName,
+ ConfigurationInfo parameters,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .generateConfigurationsWithResponse(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ConfigurationResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ConfigurationResult generateConfigurations(
+ String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ ConfigurationResultInner inner =
+ this.serviceClient().generateConfigurations(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new ConfigurationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public DryrunResource getDryrunById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this
+ .getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getDryrunByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this.getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ }
+
+ public LinkerResource getById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ return this
+ .getWithResponse(subscriptionId, resourceGroupName, location, connectorName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ return this.getWithResponse(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ public void deleteDryrunById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ this.deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE);
+ }
+
+ public Response deleteDryrunByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this.deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ }
+
+ public void deleteById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ this.delete(subscriptionId, resourceGroupName, location, connectorName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id)));
+ }
+ String location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ this.delete(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ private ConnectorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+
+ public DryrunResourceImpl defineDryrun(String name) {
+ return new DryrunResourceImpl(name, this.manager());
+ }
+
+ public LinkerResourceImpl define(String name) {
+ return new LinkerResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
new file mode 100644
index 000000000000..3daebc4a6ce2
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
+import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
+import com.azure.resourcemanager.servicelinker.models.DryrunResource;
+import java.util.Collections;
+import java.util.List;
+
+public final class DryrunResourceImpl implements DryrunResource, DryrunResource.Definition, DryrunResource.Update {
+ private DryrunResourceInner innerObject;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DryrunParameters parameters() {
+ return this.innerModel().parameters();
+ }
+
+ public List prerequisiteResults() {
+ List inner = this.innerModel().prerequisiteResults();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List operationPreviews() {
+ List inner = this.innerModel().operationPreviews();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public DryrunResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+
+ private String subscriptionId;
+
+ private String resourceGroupName;
+
+ private String location;
+
+ private String dryrunName;
+
+ private DryrunPatch updateParameters;
+
+ public DryrunResourceImpl withExistingLocation(String subscriptionId, String resourceGroupName, String location) {
+ this.subscriptionId = subscriptionId;
+ this.resourceGroupName = resourceGroupName;
+ this.location = location;
+ return this;
+ }
+
+ public DryrunResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .createDryrun(subscriptionId, resourceGroupName, location, dryrunName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public DryrunResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .createDryrun(subscriptionId, resourceGroupName, location, dryrunName, this.innerModel(), context);
+ return this;
+ }
+
+ DryrunResourceImpl(String name, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerObject = new DryrunResourceInner();
+ this.serviceManager = serviceManager;
+ this.dryrunName = name;
+ }
+
+ public DryrunResourceImpl update() {
+ this.updateParameters = new DryrunPatch();
+ return this;
+ }
+
+ public DryrunResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .updateDryrun(subscriptionId, resourceGroupName, location, dryrunName, updateParameters, Context.NONE);
+ return this;
+ }
+
+ public DryrunResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .updateDryrun(subscriptionId, resourceGroupName, location, dryrunName, updateParameters, context);
+ return this;
+ }
+
+ DryrunResourceImpl(
+ DryrunResourceInner innerObject, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.subscriptionId = Utils.getValueFromIdByName(innerObject.id(), "subscriptions");
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.location = Utils.getValueFromIdByName(innerObject.id(), "locations");
+ this.dryrunName = Utils.getValueFromIdByName(innerObject.id(), "dryruns");
+ }
+
+ public DryrunResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DryrunResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context)
+ .getValue();
+ return this;
+ }
+
+ public DryrunResourceImpl withParameters(DryrunParameters parameters) {
+ if (isInCreateMode()) {
+ this.innerModel().withParameters(parameters);
+ return this;
+ } else {
+ this.updateParameters.withParameters(parameters);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
index c8fff03eab9a..1e14717eb308 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
@@ -10,10 +10,12 @@
import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationResult;
import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
import com.azure.resourcemanager.servicelinker.models.LinkerResource;
+import com.azure.resourcemanager.servicelinker.models.PublicNetworkSolution;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
-import com.azure.resourcemanager.servicelinker.models.SourceConfigurationResult;
import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
import com.azure.resourcemanager.servicelinker.models.VNetSolution;
import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult;
@@ -67,6 +69,18 @@ public String scope() {
return this.innerModel().scope();
}
+ public PublicNetworkSolution publicNetworkSolution() {
+ return this.innerModel().publicNetworkSolution();
+ }
+
+ public ConfigurationInfo configurationInfo() {
+ return this.innerModel().configurationInfo();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public LinkerResourceInner innerModel() {
return this.innerObject;
}
@@ -75,14 +89,20 @@ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
return this.serviceManager;
}
- private String resourceUri;
+ private String subscriptionId;
+
+ private String resourceGroupName;
+
+ private String location;
- private String linkerName;
+ private String connectorName;
private LinkerPatch updateParameters;
- public LinkerResourceImpl withExistingResourceUri(String resourceUri) {
- this.resourceUri = resourceUri;
+ public LinkerResourceImpl withExistingLocation(String subscriptionId, String resourceGroupName, String location) {
+ this.subscriptionId = subscriptionId;
+ this.resourceGroupName = resourceGroupName;
+ this.location = location;
return this;
}
@@ -90,8 +110,9 @@ public LinkerResource create() {
this.innerObject =
serviceManager
.serviceClient()
- .getLinkers()
- .createOrUpdate(resourceUri, linkerName, this.innerModel(), Context.NONE);
+ .getConnectors()
+ .createOrUpdate(
+ subscriptionId, resourceGroupName, location, connectorName, this.innerModel(), Context.NONE);
return this;
}
@@ -99,15 +120,15 @@ public LinkerResource create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getLinkers()
- .createOrUpdate(resourceUri, linkerName, this.innerModel(), context);
+ .getConnectors()
+ .createOrUpdate(subscriptionId, resourceGroupName, location, connectorName, this.innerModel(), context);
return this;
}
LinkerResourceImpl(String name, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
this.innerObject = new LinkerResourceInner();
this.serviceManager = serviceManager;
- this.linkerName = name;
+ this.connectorName = name;
}
public LinkerResourceImpl update() {
@@ -117,13 +138,19 @@ public LinkerResourceImpl update() {
public LinkerResource apply() {
this.innerObject =
- serviceManager.serviceClient().getLinkers().update(resourceUri, linkerName, updateParameters, Context.NONE);
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .update(subscriptionId, resourceGroupName, location, connectorName, updateParameters, Context.NONE);
return this;
}
public LinkerResource apply(Context context) {
this.innerObject =
- serviceManager.serviceClient().getLinkers().update(resourceUri, linkerName, updateParameters, context);
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .update(subscriptionId, resourceGroupName, location, connectorName, updateParameters, context);
return this;
}
@@ -131,50 +158,54 @@ public LinkerResource apply(Context context) {
LinkerResourceInner innerObject, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceUri =
- Utils
- .getValueFromIdByParameterName(
- innerObject.id(),
- "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",
- "resourceUri");
- this.linkerName =
- Utils
- .getValueFromIdByParameterName(
- innerObject.id(),
- "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",
- "linkerName");
+ this.subscriptionId = Utils.getValueFromIdByName(innerObject.id(), "subscriptions");
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.location = Utils.getValueFromIdByName(innerObject.id(), "locations");
+ this.connectorName = Utils.getValueFromIdByName(innerObject.id(), "connectors");
}
public LinkerResource refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getLinkers()
- .getWithResponse(resourceUri, linkerName, Context.NONE)
+ .getConnectors()
+ .getWithResponse(subscriptionId, resourceGroupName, location, connectorName, Context.NONE)
.getValue();
return this;
}
public LinkerResource refresh(Context context) {
this.innerObject =
- serviceManager.serviceClient().getLinkers().getWithResponse(resourceUri, linkerName, context).getValue();
+ serviceManager
+ .serviceClient()
+ .getConnectors()
+ .getWithResponse(subscriptionId, resourceGroupName, location, connectorName, context)
+ .getValue();
return this;
}
public ValidateOperationResult validate() {
- return serviceManager.linkers().validate(resourceUri, linkerName);
+ return serviceManager.connectors().validate(subscriptionId, resourceGroupName, location, connectorName);
}
public ValidateOperationResult validate(Context context) {
- return serviceManager.linkers().validate(resourceUri, linkerName, context);
+ return serviceManager
+ .connectors()
+ .validate(subscriptionId, resourceGroupName, location, connectorName, context);
}
- public SourceConfigurationResult listConfigurations() {
- return serviceManager.linkers().listConfigurations(resourceUri, linkerName);
+ public Response generateConfigurationsWithResponse(
+ ConfigurationInfo parameters, Context context) {
+ return serviceManager
+ .connectors()
+ .generateConfigurationsWithResponse(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, context);
}
- public Response listConfigurationsWithResponse(Context context) {
- return serviceManager.linkers().listConfigurationsWithResponse(resourceUri, linkerName, context);
+ public ConfigurationResult generateConfigurations() {
+ return serviceManager
+ .connectors()
+ .generateConfigurations(subscriptionId, resourceGroupName, location, connectorName);
}
public LinkerResourceImpl withTargetService(TargetServiceBase targetService) {
@@ -237,6 +268,26 @@ public LinkerResourceImpl withScope(String scope) {
}
}
+ public LinkerResourceImpl withPublicNetworkSolution(PublicNetworkSolution publicNetworkSolution) {
+ if (isInCreateMode()) {
+ this.innerModel().withPublicNetworkSolution(publicNetworkSolution);
+ return this;
+ } else {
+ this.updateParameters.withPublicNetworkSolution(publicNetworkSolution);
+ return this;
+ }
+ }
+
+ public LinkerResourceImpl withConfigurationInfo(ConfigurationInfo configurationInfo) {
+ if (isInCreateMode()) {
+ this.innerModel().withConfigurationInfo(configurationInfo);
+ return this;
+ } else {
+ this.updateParameters.withConfigurationInfo(configurationInfo);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
index 033bdccd2382..44b916c0d6db 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
@@ -34,11 +34,11 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicelinker.fluent.LinkersClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
-import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner;
import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
-import com.azure.resourcemanager.servicelinker.models.LinkerList;
import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
+import com.azure.resourcemanager.servicelinker.models.ResourceList;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,12 +67,12 @@ public final class LinkersClientImpl implements LinkersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ServiceLinkerManagem")
- private interface LinkersService {
+ public interface LinkersService {
@Headers({"Content-Type: application/json"})
@Get("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
+ Mono> list(
@HostParam("$host") String endpoint,
@PathParam(value = "resourceUri", encoded = true) String resourceUri,
@QueryParam("api-version") String apiVersion,
@@ -145,7 +145,7 @@ Mono>> validate(
@Post("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listConfigurations(
+ Mono> listConfigurations(
@HostParam("$host") String endpoint,
@PathParam(value = "resourceUri", encoded = true) String resourceUri,
@QueryParam("api-version") String apiVersion,
@@ -157,7 +157,7 @@ Mono> listConfigurations(
@Get("{nextLink}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
+ Mono