diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index a9fd85631a6f7..342b44dfae072 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -400,7 +400,7 @@ com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.4;1.0.0-b
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.3.0;1.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-azureadexternalidentities;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-dashboard;1.1.0;1.2.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-servicelinker;1.0.0-beta.4;1.0.0-beta.5
+com.azure.resourcemanager:azure-resourcemanager-servicelinker;1.0.0-beta.4;1.0.0
com.azure.resourcemanager:azure-resourcemanager-appcontainers;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-scvmm;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hardwaresecuritymodules;1.0.0;1.1.0-beta.1
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md b/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md
index 8c70fcb99b3f6..5300e4c94dba5 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.5 (Unreleased)
+## 1.0.0 (2024-12-26)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- Azure Resource Manager ServiceLinker client library for Java. This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2022-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Other Changes
+- Release for Azure Resource Manager ServiceLinker client library for Java.
+
## 1.0.0-beta.4 (2024-10-09)
- Azure Resource Manager ServiceLinker client library for Java. This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2024-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md b/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md
index 7351ec3469ce7..febe99d4091df 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ServiceLinker client library for Java.
-This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2024-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2022-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-servicelinker
- 1.0.0-beta.4
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/SAMPLE.md b/sdk/servicelinker/azure-resourcemanager-servicelinker/SAMPLE.md
index 4de60a381893c..414362be96f90 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/SAMPLE.md
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/SAMPLE.md
@@ -1,25 +1,6 @@
# Code snippets and samples
-## ConfigurationNamesOperation
-
-- [List](#configurationnamesoperation_list)
-
-## Connector
-
-- [CreateDryrun](#connector_createdryrun)
-- [CreateOrUpdate](#connector_createorupdate)
-- [Delete](#connector_delete)
-- [DeleteDryrun](#connector_deletedryrun)
-- [GenerateConfigurations](#connector_generateconfigurations)
-- [Get](#connector_get)
-- [GetDryrun](#connector_getdryrun)
-- [List](#connector_list)
-- [ListDryrun](#connector_listdryrun)
-- [Update](#connector_update)
-- [UpdateDryrun](#connector_updatedryrun)
-- [Validate](#connector_validate)
-
## Linker
- [CreateOrUpdate](#linker_createorupdate)
@@ -30,423 +11,81 @@
- [Update](#linker_update)
- [Validate](#linker_validate)
-## LinkersOperation
-
-- [CreateDryrun](#linkersoperation_createdryrun)
-- [DeleteDryrun](#linkersoperation_deletedryrun)
-- [GenerateConfigurations](#linkersoperation_generateconfigurations)
-- [GetDryrun](#linkersoperation_getdryrun)
-- [ListDaprConfigurations](#linkersoperation_listdaprconfigurations)
-- [ListDryrun](#linkersoperation_listdryrun)
-- [UpdateDryrun](#linkersoperation_updatedryrun)
-
## Operations
- [List](#operations_list)
-### ConfigurationNamesOperation_List
-
-```java
-/**
- * Samples for ConfigurationNamesOperation List.
- */
-public final class ConfigurationNamesOperationListSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConfigurationNamesList.json
- */
- /**
- * Sample code: GetConfigurationNames.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void getConfigurationNames(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.configurationNamesOperations().list(null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_CreateDryrun
-
-```java
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.CreateOrUpdateDryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
-import com.azure.resourcemanager.servicelinker.models.ValueSecretInfo;
-
-/**
- * Samples for Connector CreateDryrun.
- */
-public final class ConnectorCreateDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorDryrunCreate.json
- */
- /**
- * Sample code: ConnectorDryrunCreate.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connectorDryrunCreate(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .define("dryrunName")
- .withExistingLocation("00000000-0000-0000-0000-000000000000", "test-rg", "westus")
- .withParameters(new CreateOrUpdateDryrunParameters().withTargetService(new AzureResource().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(
- new SecretAuthInfo().withName("name").withSecretInfo(new ValueSecretInfo().withValue("secret"))))
- .create();
- }
-}
-```
-
-### Connector_CreateOrUpdate
+### Linker_CreateOrUpdate
```java
-import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
import com.azure.resourcemanager.servicelinker.models.AzureResource;
+import com.azure.resourcemanager.servicelinker.models.KeyVaultSecretUriSecretInfo;
import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
-
-/**
- * Samples for Connector CreateOrUpdate.
- */
-public final class ConnectorCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PutConnector.json
- */
- /**
- * Sample code: PutConnector.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void putConnector(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .createOrUpdate("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName",
- new LinkerResourceInner().withTargetService(new AzureResource().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(new SecretAuthInfo())
- .withSecretStore(new SecretStore().withKeyVaultId("fakeTokenPlaceholder")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_Delete
-
-```java
-/**
- * Samples for Connector Delete.
- */
-public final class ConnectorDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * DeleteConnector.json
- */
- /**
- * Sample code: DeleteConnector.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void deleteConnector(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .delete("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_DeleteDryrun
-
-```java
-/**
- * Samples for Connector DeleteDryrun.
- */
-public final class ConnectorDeleteDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorDryrunDelete.json
- */
- /**
- * Sample code: ConnectorDryrunDelete.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connectorDryrunDelete(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .deleteDryrunWithResponse("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "dryrunName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_GenerateConfigurations
-
-```java
-import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for Connector GenerateConfigurations.
- */
-public final class ConnectorGenerateConfigurationsSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * GenerateConfigurations.json
- */
- /**
- * Sample code: GenerateConfiguration.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void generateConfiguration(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .generateConfigurationsWithResponse(
- "00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName", new ConfigurationInfo()
- .withCustomizedKeys(mapOf("ASL_DocumentDb_ConnectionString", "MyConnectionstring")),
- com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### Connector_Get
-
-```java
-/**
- * Samples for Connector Get.
- */
-public final class ConnectorGetSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * Connectors.json
- */
- /**
- * Sample code: Connector.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connector(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .getWithResponse("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_GetDryrun
-
-```java
-/**
- * Samples for Connector GetDryrun.
- */
-public final class ConnectorGetDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorDryrunGet.json
- */
- /**
- * Sample code: ConnectorDryrunGet.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connectorDryrunGet(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .getDryrunWithResponse("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "dryrunName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_List
-
-```java
-/**
- * Samples for Connector List.
- */
-public final class ConnectorListSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorList.json
- */
- /**
- * Sample code: ConnectorList.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connectorList(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .list("00000000-0000-0000-0000-000000000000", "test-rg", "westus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_ListDryrun
-
-```java
-/**
- * Samples for Connector ListDryrun.
- */
-public final class ConnectorListDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorDryrunList.json
- */
- /**
- * Sample code: ConnectorDryrunList.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void connectorDryrunList(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .listDryrun("00000000-0000-0000-0000-000000000000", "test-rg", "westus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_Update
-
-```java
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
-import com.azure.resourcemanager.servicelinker.models.ServicePrincipalSecretAuthInfo;
-
-/**
- * Samples for Connector Update.
- */
-public final class ConnectorUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PatchConnector.json
- */
- /**
- * Sample code: PatchConnector.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void patchConnector(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .update("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName",
- new LinkerPatch().withTargetService(new AzureResource().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(new ServicePrincipalSecretAuthInfo().withClientId("name")
- .withPrincipalId("id")
- .withSecret("fakeTokenPlaceholder")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Connector_UpdateDryrun
-
-```java
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.CreateOrUpdateDryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.DryrunResource;
-import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
+import com.azure.resourcemanager.servicelinker.models.VNetSolution;
+import com.azure.resourcemanager.servicelinker.models.VNetSolutionType;
import com.azure.resourcemanager.servicelinker.models.ValueSecretInfo;
/**
- * Samples for Connector UpdateDryrun.
+ * Samples for Linker CreateOrUpdate.
*/
-public final class ConnectorUpdateDryrunSamples {
+public final class LinkerCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ConnectorDryrunUpdate.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/
+ * PutLinkWithSecretStore.json
*/
/**
- * Sample code: ConnectorDryrunUpdate.
+ * Sample code: PutLinkWithSecretStore.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void connectorDryrunUpdate(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- DryrunResource resource = manager.connectors()
- .getDryrunWithResponse("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "dryrunName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withParameters(new CreateOrUpdateDryrunParameters().withTargetService(new AzureResource().withId(
+ public static void putLinkWithSecretStore(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ manager.linkers()
+ .define("linkName")
+ .withExistingResourceUri(
+ "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app")
+ .withTargetService(new AzureResource().withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(
- new SecretAuthInfo().withName("name").withSecretInfo(new ValueSecretInfo().withValue("secret"))))
- .apply();
+ .withAuthInfo(new SecretAuthInfo())
+ .withSecretStore(new SecretStore().withKeyVaultId("fakeTokenPlaceholder"))
+ .create();
}
-}
-```
-
-### Connector_Validate
-```java
-/**
- * Samples for Connector Validate.
- */
-public final class ConnectorValidateSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ValidateConnectorSuccess.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/
+ * PutLinkWithServiceEndpoint.json
*/
/**
- * Sample code: ValidateConnectorSuccess.
+ * Sample code: PutLinkWithServiceEndpoint.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void validateConnectorSuccess(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.connectors()
- .validate("00000000-0000-0000-0000-000000000000", "test-rg", "westus", "connectorName",
- com.azure.core.util.Context.NONE);
+ public static void
+ putLinkWithServiceEndpoint(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ manager.linkers()
+ .define("linkName")
+ .withExistingResourceUri(
+ "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app")
+ .withTargetService(new AzureResource().withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DBforPostgreSQL/servers/test-pg/databases/test-db"))
+ .withAuthInfo(new SecretAuthInfo().withName("name")
+ .withSecretInfo(new KeyVaultSecretUriSecretInfo().withValue(
+ "https://vault-name.vault.azure.net/secrets/secret-name/00000000000000000000000000000000")))
+ .withVNetSolution(new VNetSolution().withType(VNetSolutionType.SERVICE_ENDPOINT))
+ .create();
}
-}
-```
-
-### Linker_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
-import com.azure.resourcemanager.servicelinker.models.VNetSolution;
-import com.azure.resourcemanager.servicelinker.models.VNetSolutionType;
-import com.azure.resourcemanager.servicelinker.models.ValueSecretInfo;
-/**
- * Samples for Linker CreateOrUpdate.
- */
-public final class LinkerCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PutLinker.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/PutLink.json
*/
/**
- * Sample code: PutLinker.
+ * Sample code: PutLink.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void putLinker(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void putLink(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.define("linkName")
.withExistingResourceUri(
@@ -455,7 +94,6 @@ public final class LinkerCreateOrUpdateSamples {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DBforPostgreSQL/servers/test-pg/databases/test-db"))
.withAuthInfo(
new SecretAuthInfo().withName("name").withSecretInfo(new ValueSecretInfo().withValue("secret")))
- .withVNetSolution(new VNetSolution().withType(VNetSolutionType.SERVICE_ENDPOINT))
.create();
}
}
@@ -470,15 +108,14 @@ public final class LinkerCreateOrUpdateSamples {
public final class LinkerDeleteSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * DeleteLinker.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/DeleteLink.json
*/
/**
- * Sample code: DeleteLinker.
+ * Sample code: DeleteLink.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void deleteLinker(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void deleteLink(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.delete(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
@@ -496,15 +133,14 @@ public final class LinkerDeleteSamples {
public final class LinkerGetSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/Linker.
- * json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/Link.json
*/
/**
- * Sample code: Linker.
+ * Sample code: Link.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void linker(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void link(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.getWithResponse(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
@@ -522,15 +158,14 @@ public final class LinkerGetSamples {
public final class LinkerListSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * LinkerList.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/LinkList.json
*/
/**
- * Sample code: LinkerList.
+ * Sample code: LinkList.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void linkerList(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void linkList(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.list(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
@@ -548,8 +183,8 @@ public final class LinkerListSamples {
public final class LinkerListConfigurationsSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * GetConfigurations.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/GetConfigurations
+ * .json
*/
/**
* Sample code: GetConfiguration.
@@ -559,7 +194,7 @@ public final class LinkerListConfigurationsSamples {
public static void getConfiguration(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.listConfigurationsWithResponse(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.App/containerApps/test-app",
+ "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkName", com.azure.core.util.Context.NONE);
}
}
@@ -578,15 +213,14 @@ import com.azure.resourcemanager.servicelinker.models.ServicePrincipalSecretAuth
public final class LinkerUpdateSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PatchLinker.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/PatchLink.json
*/
/**
- * Sample code: PatchLinker.
+ * Sample code: PatchLink.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void patchLinker(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void patchLink(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
LinkerResource resource = manager.linkers()
.getWithResponse(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
@@ -612,15 +246,15 @@ public final class LinkerUpdateSamples {
public final class LinkerValidateSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ValidateLinkerSuccess.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/
+ * ValidateLinkSuccess.json
*/
/**
- * Sample code: ValidateLinkerSuccess.
+ * Sample code: ValidateLinkSuccess.
*
* @param manager Entry point to ServiceLinkerManager.
*/
- public static void validateLinkerSuccess(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
+ public static void validateLinkSuccess(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
manager.linkers()
.validate(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
@@ -629,230 +263,6 @@ public final class LinkerValidateSamples {
}
```
-### LinkersOperation_CreateDryrun
-
-```java
-import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.CreateOrUpdateDryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
-import com.azure.resourcemanager.servicelinker.models.ValueSecretInfo;
-
-/**
- * Samples for LinkersOperation CreateDryrun.
- */
-public final class LinkersOperationCreateDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PutDryrun.json
- */
- /**
- * Sample code: PutDryrun.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void putDryrun(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .createDryrun(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "dryrunName",
- new DryrunResourceInner().withParameters(new CreateOrUpdateDryrunParameters()
- .withTargetService(new AzureResource().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(new SecretAuthInfo().withName("name")
- .withSecretInfo(new ValueSecretInfo().withValue("secret")))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### LinkersOperation_DeleteDryrun
-
-```java
-/**
- * Samples for LinkersOperation DeleteDryrun.
- */
-public final class LinkersOperationDeleteDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * DeleteDryrun.json
- */
- /**
- * Sample code: DeleteDryrun.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void deleteDryrun(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .deleteDryrunWithResponse(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "dryrunName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### LinkersOperation_GenerateConfigurations
-
-```java
-import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for LinkersOperation GenerateConfigurations.
- */
-public final class LinkersOperationGenerateConfigurationsSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * LinkerGenerateConfigurations.json
- */
- /**
- * Sample code: GenerateConfiguration.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void generateConfiguration(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .generateConfigurationsWithResponse(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "linkName", new ConfigurationInfo().withCustomizedKeys(
- mapOf("ASL_DocumentDb_ConnectionString", "MyConnectionstring")),
- com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### LinkersOperation_GetDryrun
-
-```java
-/**
- * Samples for LinkersOperation GetDryrun.
- */
-public final class LinkersOperationGetDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * GetDryrun.json
- */
- /**
- * Sample code: GetDryrun.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void getDryrun(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .getDryrunWithResponse(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "dryrunName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### LinkersOperation_ListDaprConfigurations
-
-```java
-/**
- * Samples for LinkersOperation ListDaprConfigurations.
- */
-public final class LinkersOperationListDaprConfigurationsSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * GetDaprConfigurations.json
- */
- /**
- * Sample code: GetDaprConfigurations.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void getDaprConfigurations(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .listDaprConfigurations(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### LinkersOperation_ListDryrun
-
-```java
-/**
- * Samples for LinkersOperation ListDryrun.
- */
-public final class LinkersOperationListDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * ListDryrun.json
- */
- /**
- * Sample code: ListDryrun.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void listDryrun(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .listDryrun(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### LinkersOperation_UpdateDryrun
-
-```java
-import com.azure.resourcemanager.servicelinker.models.AzureResource;
-import com.azure.resourcemanager.servicelinker.models.CreateOrUpdateDryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
-import com.azure.resourcemanager.servicelinker.models.SecretAuthInfo;
-import com.azure.resourcemanager.servicelinker.models.ValueSecretInfo;
-
-/**
- * Samples for LinkersOperation UpdateDryrun.
- */
-public final class LinkersOperationUpdateDryrunSamples {
- /*
- * x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * PatchDryrun.json
- */
- /**
- * Sample code: PatchDryrun.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void patchDryrun(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.linkersOperations()
- .updateDryrun(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "dryrunName",
- new DryrunPatch().withParameters(new CreateOrUpdateDryrunParameters()
- .withTargetService(new AzureResource().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
- .withAuthInfo(new SecretAuthInfo().withName("name")
- .withSecretInfo(new ValueSecretInfo().withValue("secret")))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Operations_List
```java
@@ -862,8 +272,8 @@ public final class LinkersOperationUpdateDryrunSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2024-07-01-preview/examples/
- * OperationsList.json
+ * specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/OperationsList.
+ * json
*/
/**
* Sample code: GetConfiguration.
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/pom.xml b/sdk/servicelinker/azure-resourcemanager-servicelinker/pom.xml
index 28e5f1ac0435f..0ba2cbe94fde6 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/pom.xml
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-servicelinker
- 1.0.0-beta.5
+ 1.0.0
jar
Microsoft Azure SDK for ServiceLinker Management
- This package contains Microsoft Azure SDK for ServiceLinker Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ServiceLinker provider. Package tag package-2024-07-01-preview.
+ This package contains Microsoft Azure SDK for ServiceLinker Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ServiceLinker provider. Package tag package-2022-05-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
index c1131f8d620a8..d6f79d234af0b 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,21 +20,14 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicelinker.fluent.ServiceLinkerManagementClient;
-import com.azure.resourcemanager.servicelinker.implementation.ConfigurationNamesOperationsImpl;
-import com.azure.resourcemanager.servicelinker.implementation.ConnectorsImpl;
import com.azure.resourcemanager.servicelinker.implementation.LinkersImpl;
-import com.azure.resourcemanager.servicelinker.implementation.LinkersOperationsImpl;
import com.azure.resourcemanager.servicelinker.implementation.OperationsImpl;
import com.azure.resourcemanager.servicelinker.implementation.ServiceLinkerManagementClientBuilder;
-import com.azure.resourcemanager.servicelinker.models.ConfigurationNamesOperations;
-import com.azure.resourcemanager.servicelinker.models.Connectors;
import com.azure.resourcemanager.servicelinker.models.Linkers;
-import com.azure.resourcemanager.servicelinker.models.LinkersOperations;
import com.azure.resourcemanager.servicelinker.models.Operations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -47,16 +41,10 @@
* Microsoft.ServiceLinker provider.
*/
public final class ServiceLinkerManager {
- private Connectors connectors;
-
private Linkers linkers;
- private LinkersOperations linkersOperations;
-
private Operations operations;
- private ConfigurationNamesOperations configurationNamesOperations;
-
private final ServiceLinkerManagementClient clientObject;
private ServiceLinkerManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -220,7 +208,7 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.servicelinker")
.append("/")
- .append("1.0.0-beta.4");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -253,7 +241,7 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -266,18 +254,6 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
}
}
- /**
- * Gets the resource collection API of Connectors. It manages DryrunResource.
- *
- * @return Resource collection API of Connectors.
- */
- public Connectors connectors() {
- if (this.connectors == null) {
- this.connectors = new ConnectorsImpl(clientObject.getConnectors(), this);
- }
- return connectors;
- }
-
/**
* Gets the resource collection API of Linkers. It manages LinkerResource.
*
@@ -290,18 +266,6 @@ public Linkers linkers() {
return linkers;
}
- /**
- * Gets the resource collection API of LinkersOperations.
- *
- * @return Resource collection API of LinkersOperations.
- */
- public LinkersOperations linkersOperations() {
- if (this.linkersOperations == null) {
- this.linkersOperations = new LinkersOperationsImpl(clientObject.getLinkersOperations(), this);
- }
- return linkersOperations;
- }
-
/**
* Gets the resource collection API of Operations.
*
@@ -314,19 +278,6 @@ public Operations operations() {
return operations;
}
- /**
- * Gets the resource collection API of ConfigurationNamesOperations.
- *
- * @return Resource collection API of ConfigurationNamesOperations.
- */
- public ConfigurationNamesOperations configurationNamesOperations() {
- if (this.configurationNamesOperations == null) {
- this.configurationNamesOperations
- = new ConfigurationNamesOperationsImpl(clientObject.getConfigurationNamesOperations(), this);
- }
- return configurationNamesOperations;
- }
-
/**
* Gets wrapped service client ServiceLinkerManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java
deleted file mode 100644
index 31e6122c78a7c..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ConfigurationNamesOperationsClient.
- */
-public interface ConfigurationNamesOperationsClient {
- /**
- * Lists the configuration names generated by Service Connector for all target, client types, auth types.
- *
- * @throws com.azure.core.management.exception.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)
- PagedIterable list();
-
- /**
- * 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 com.azure.core.management.exception.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)
- PagedIterable list(String filter, String skipToken, Context context);
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java
deleted file mode 100644
index 585f772814b94..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java
+++ /dev/null
@@ -1,627 +0,0 @@
-// 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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-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.DryrunPatch;
-import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in ConnectorsClient.
- */
-public interface ConnectorsClient {
- /**
- * 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 com.azure.core.management.exception.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)
- PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String 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 com.azure.core.management.exception.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)
- PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location,
- Context 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response getDryrunWithResponse(String subscriptionId, String resourceGroupName,
- String location, String dryrunName, Context 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 com.azure.core.management.exception.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)
- DryrunResourceInner getDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
- String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
- String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters, Context 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 com.azure.core.management.exception.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)
- DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
- String dryrunName, DryrunResourceInner parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
- String dryrunName, DryrunResourceInner parameters, Context 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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
- String resourceGroupName, String location, String dryrunName, DryrunPatch parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
- String resourceGroupName, String location, String dryrunName, DryrunPatch parameters, Context 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 com.azure.core.management.exception.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)
- DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
- String dryrunName, DryrunPatch parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
- String dryrunName, DryrunPatch parameters, Context 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response deleteDryrunWithResponse(String subscriptionId, String resourceGroupName, String location,
- String dryrunName, Context 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 com.azure.core.management.exception.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)
- void deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- PagedIterable list(String subscriptionId, String resourceGroupName, String 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 com.azure.core.management.exception.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)
- PagedIterable list(String subscriptionId, String resourceGroupName, String location,
- Context 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response getWithResponse(String subscriptionId, String resourceGroupName, String location,
- String connectorName, Context 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 com.azure.core.management.exception.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)
- LinkerResourceInner get(String subscriptionId, String resourceGroupName, String location, String connectorName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
- String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
- String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters,
- Context 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 com.azure.core.management.exception.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)
- LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
- String connectorName, LinkerResourceInner parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
- String connectorName, LinkerResourceInner parameters, Context 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 com.azure.core.management.exception.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)
- SyncPoller, Void> beginDelete(String subscriptionId, String resourceGroupName, String location,
- String connectorName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, Void> beginDelete(String subscriptionId, String resourceGroupName, String location,
- String connectorName, Context 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 com.azure.core.management.exception.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)
- void delete(String subscriptionId, String resourceGroupName, String location, String connectorName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- void delete(String subscriptionId, String resourceGroupName, String location, String connectorName,
- Context 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 com.azure.core.management.exception.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)
- SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
- String resourceGroupName, String location, String connectorName, LinkerPatch parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
- String resourceGroupName, String location, String connectorName, LinkerPatch parameters, Context 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 com.azure.core.management.exception.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)
- LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location, String connectorName,
- LinkerPatch parameters);
-
- /**
- * 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 com.azure.core.management.exception.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)
- LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location, String connectorName,
- LinkerPatch parameters, Context 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 com.azure.core.management.exception.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)
- SyncPoller, ValidateOperationResultInner>
- beginValidate(String subscriptionId, String resourceGroupName, String location, String connectorName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- SyncPoller, ValidateOperationResultInner> beginValidate(
- String subscriptionId, String resourceGroupName, String location, String connectorName, Context 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 com.azure.core.management.exception.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)
- ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
- String connectorName);
-
- /**
- * 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 com.azure.core.management.exception.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)
- ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
- String connectorName, Context 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.
- * @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 com.azure.core.management.exception.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)
- Response generateConfigurationsWithResponse(String subscriptionId,
- String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters, Context 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 com.azure.core.management.exception.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)
- ConfigurationResultInner generateConfigurations(String subscriptionId, String resourceGroupName, String location,
- String connectorName);
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
index cce268f096297..ddc3f19ad9e41 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
@@ -11,8 +11,8 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
-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.LinkerPatch;
@@ -21,8 +21,7 @@
*/
public interface LinkersClient {
/**
- * Returns list of Linkers which connects to the resource. which supports to config both application and target
- * service during the resource provision.
+ * Returns list of Linkers which connects to the resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -34,8 +33,7 @@ public interface LinkersClient {
PagedIterable list(String resourceUri);
/**
- * Returns list of Linkers which connects to the resource. which supports to config both application and target
- * service during the resource provision.
+ * Returns list of Linkers which connects to the resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param context The context to associate with this operation.
@@ -75,7 +73,7 @@ public interface LinkersClient {
LinkerResourceInner get(String resourceUri, String linkerName);
/**
- * Create or update Linker resource.
+ * Create or update linker resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -90,7 +88,7 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
String linkerName, LinkerResourceInner parameters);
/**
- * Create or update Linker resource.
+ * Create or update linker resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -106,7 +104,7 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
String linkerName, LinkerResourceInner parameters, Context context);
/**
- * Create or update Linker resource.
+ * Create or update linker resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -120,7 +118,7 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, LinkerResourceInner parameters);
/**
- * Create or update Linker resource.
+ * Create or update linker resource.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -136,7 +134,7 @@ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, Linker
Context context);
/**
- * Delete a Linker.
+ * Delete a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -149,7 +147,7 @@ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, Linker
SyncPoller, Void> beginDelete(String resourceUri, String linkerName);
/**
- * Delete a Linker.
+ * Delete a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -163,7 +161,7 @@ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, Linker
SyncPoller, Void> beginDelete(String resourceUri, String linkerName, Context context);
/**
- * Delete a Linker.
+ * Delete a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -175,7 +173,7 @@ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, Linker
void delete(String resourceUri, String linkerName);
/**
- * Delete a Linker.
+ * Delete a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -188,7 +186,7 @@ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, Linker
void delete(String resourceUri, String linkerName, Context context);
/**
- * Operation to update an existing Linker.
+ * Operation to update an existing link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -203,7 +201,7 @@ SyncPoller, LinkerResourceInner> beginUpdate(Str
LinkerPatch parameters);
/**
- * Operation to update an existing Linker.
+ * Operation to update an existing link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -219,7 +217,7 @@ SyncPoller, LinkerResourceInner> beginUpdate(Str
LinkerPatch parameters, Context context);
/**
- * Operation to update an existing Linker.
+ * Operation to update an existing link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -233,7 +231,7 @@ SyncPoller, LinkerResourceInner> beginUpdate(Str
LinkerResourceInner update(String resourceUri, String linkerName, LinkerPatch parameters);
/**
- * Operation to update an existing Linker.
+ * Operation to update an existing link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -248,21 +246,21 @@ SyncPoller, LinkerResourceInner> beginUpdate(Str
LinkerResourceInner update(String resourceUri, String linkerName, LinkerPatch parameters, Context context);
/**
- * Validate a Linker.
+ * Validate a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a linker.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ValidateOperationResultInner> beginValidate(String resourceUri,
String linkerName);
/**
- * Validate a Linker.
+ * Validate a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -270,27 +268,27 @@ SyncPoller, ValidateOperationResultInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a linker.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ValidateOperationResultInner> beginValidate(String resourceUri,
String linkerName, Context context);
/**
- * Validate a Linker.
+ * Validate a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the validation operation result for a linker.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateOperationResultInner validate(String resourceUri, String linkerName);
/**
- * Validate a Linker.
+ * Validate a link.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -298,13 +296,13 @@ SyncPoller, ValidateOperationResultInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the validation operation result for a linker.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateOperationResultInner validate(String resourceUri, String linkerName, Context context);
/**
- * list source configurations for a Linker.
+ * list source configurations for a linker.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -316,11 +314,11 @@ SyncPoller, ValidateOperationResultInne
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listConfigurationsWithResponse(String resourceUri, String linkerName,
+ Response listConfigurationsWithResponse(String resourceUri, String linkerName,
Context context);
/**
- * list source configurations for a Linker.
+ * list source configurations for a linker.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
@@ -330,5 +328,5 @@ Response listConfigurationsWithResponse(String resourc
* @return configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
+ SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java
deleted file mode 100644
index 306148bcbc411..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java
+++ /dev/null
@@ -1,277 +0,0 @@
-// 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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
-import com.azure.resourcemanager.servicelinker.fluent.models.DaprConfigurationResourceInner;
-import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
-import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
-import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in LinkersOperationsClient.
- */
-public interface LinkersOperationsClient {
- /**
- * list dryrun jobs.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- PagedIterable listDryrun(String resourceUri);
-
- /**
- * list dryrun jobs.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- PagedIterable listDryrun(String resourceUri, Context context);
-
- /**
- * get a dryrun job.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response getDryrunWithResponse(String resourceUri, String dryrunName, Context context);
-
- /**
- * get a dryrun job.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- DryrunResourceInner getDryrun(String resourceUri, String dryrunName);
-
- /**
- * create a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param parameters dryrun resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginCreateDryrun(String resourceUri,
- String dryrunName, DryrunResourceInner parameters);
-
- /**
- * create a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginCreateDryrun(String resourceUri,
- String dryrunName, DryrunResourceInner parameters, Context context);
-
- /**
- * create a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param parameters dryrun resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- DryrunResourceInner createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters);
-
- /**
- * create a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @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 com.azure.core.management.exception.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)
- DryrunResourceInner createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters,
- Context context);
-
- /**
- * add a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param parameters dryrun resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginUpdateDryrun(String resourceUri,
- String dryrunName, DryrunPatch parameters);
-
- /**
- * add a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @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 com.azure.core.management.exception.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)
- SyncPoller, DryrunResourceInner> beginUpdateDryrun(String resourceUri,
- String dryrunName, DryrunPatch parameters, Context context);
-
- /**
- * add a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param parameters dryrun resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- DryrunResourceInner updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters);
-
- /**
- * add a dryrun job to do necessary check before actual creation.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @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 com.azure.core.management.exception.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)
- DryrunResourceInner updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters, Context context);
-
- /**
- * delete a dryrun job.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response deleteDryrunWithResponse(String resourceUri, String dryrunName, Context context);
-
- /**
- * delete a dryrun job.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param dryrunName The name of dryrun.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- void deleteDryrun(String resourceUri, String dryrunName);
-
- /**
- * Generate configurations for a Linker.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 com.azure.core.management.exception.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)
- Response generateConfigurationsWithResponse(String resourceUri, String linkerName,
- ConfigurationInfo parameters, Context context);
-
- /**
- * Generate configurations for a Linker.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- ConfigurationResultInner generateConfigurations(String resourceUri, String linkerName);
-
- /**
- * List the dapr configuration supported by Service Connector.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr configuration list supported by Service Connector as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDaprConfigurations(String resourceUri);
-
- /**
- * List the dapr configuration supported by Service Connector.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr configuration list supported by Service Connector as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDaprConfigurations(String resourceUri, Context context);
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
index 6fb54e8262e7e..0b8c276b74985 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
@@ -39,13 +39,6 @@ public interface ServiceLinkerManagementClient {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the ConnectorsClient object to access its operations.
- *
- * @return the ConnectorsClient object.
- */
- ConnectorsClient getConnectors();
-
/**
* Gets the LinkersClient object to access its operations.
*
@@ -53,24 +46,10 @@ public interface ServiceLinkerManagementClient {
*/
LinkersClient getLinkers();
- /**
- * Gets the LinkersOperationsClient object to access its operations.
- *
- * @return the LinkersOperationsClient object.
- */
- LinkersOperationsClient getLinkersOperations();
-
/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();
-
- /**
- * Gets the ConfigurationNamesOperationsClient object to access its operations.
- *
- * @return the ConfigurationNamesOperationsClient object.
- */
- ConfigurationNamesOperationsClient getConfigurationNamesOperations();
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java
deleted file mode 100644
index 836ce6357c510..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java
+++ /dev/null
@@ -1,231 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-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.DaprProperties;
-import com.azure.resourcemanager.servicelinker.models.SecretSourceType;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The ConfigurationNameItem model.
- */
-@Fluent
-public final class ConfigurationNameItemInner implements JsonSerializable {
- /*
- * The result detail.
- */
- private ConfigurationNames innerProperties;
-
- /**
- * Creates an instance of ConfigurationNameItemInner class.
- */
- public ConfigurationNameItemInner() {
- }
-
- /**
- * Get the innerProperties property: The result detail.
- *
- * @return the innerProperties value.
- */
- private ConfigurationNames innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the targetService property: The target service provider name and resource name.
- *
- * @return the targetService value.
- */
- public String targetService() {
- return this.innerProperties() == null ? null : this.innerProperties().targetService();
- }
-
- /**
- * Set the targetService property: The target service provider name and resource name.
- *
- * @param targetService the targetService value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withTargetService(String targetService) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withTargetService(targetService);
- return this;
- }
-
- /**
- * Get the clientType property: The client type for configuration names.
- *
- * @return the clientType value.
- */
- public ClientType clientType() {
- return this.innerProperties() == null ? null : this.innerProperties().clientType();
- }
-
- /**
- * Set the clientType property: The client type for configuration names.
- *
- * @param clientType the clientType value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withClientType(ClientType clientType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withClientType(clientType);
- return this;
- }
-
- /**
- * Get the authType property: The auth type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.innerProperties() == null ? null : this.innerProperties().authType();
- }
-
- /**
- * Set the authType property: The auth type.
- *
- * @param authType the authType value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withAuthType(AuthType authType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withAuthType(authType);
- return this;
- }
-
- /**
- * Get the secretType property: Indicates where the secrets in configuration from. Used when secrets are from
- * Keyvault.
- *
- * @return the secretType value.
- */
- public SecretSourceType secretType() {
- return this.innerProperties() == null ? null : this.innerProperties().secretType();
- }
-
- /**
- * Set the secretType property: Indicates where the secrets in configuration from. Used when secrets are from
- * Keyvault.
- *
- * @param secretType the secretType value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withSecretType(SecretSourceType secretType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withSecretType(secretType);
- return this;
- }
-
- /**
- * Get the daprProperties property: Deprecated, please use #/definitions/DaprConfigurationList instead.
- *
- * @return the daprProperties value.
- */
- public DaprProperties daprProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().daprProperties();
- }
-
- /**
- * Set the daprProperties property: Deprecated, please use #/definitions/DaprConfigurationList instead.
- *
- * @param daprProperties the daprProperties value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withDaprProperties(DaprProperties daprProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withDaprProperties(daprProperties);
- return this;
- }
-
- /**
- * Get the names property: The configuration names to be set in compute service environment.
- *
- * @return the names value.
- */
- public List names() {
- return this.innerProperties() == null ? null : this.innerProperties().names();
- }
-
- /**
- * Set the names property: The configuration names to be set in compute service environment.
- *
- * @param names the names value to set.
- * @return the ConfigurationNameItemInner object itself.
- */
- public ConfigurationNameItemInner withNames(List names) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationNames();
- }
- this.innerProperties().withNames(names);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ConfigurationNameItemInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ConfigurationNameItemInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ConfigurationNameItemInner.
- */
- public static ConfigurationNameItemInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ConfigurationNameItemInner deserializedConfigurationNameItemInner = new ConfigurationNameItemInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("properties".equals(fieldName)) {
- deserializedConfigurationNameItemInner.innerProperties = ConfigurationNames.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedConfigurationNameItemInner;
- });
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java
deleted file mode 100644
index 35456d014a3e2..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java
+++ /dev/null
@@ -1,248 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-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.DaprProperties;
-import com.azure.resourcemanager.servicelinker.models.SecretSourceType;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The configuration names which will be set based on specific target resource, client type, auth type.
- */
-@Fluent
-public final class ConfigurationNames implements JsonSerializable {
- /*
- * The target service provider name and resource name.
- */
- private String targetService;
-
- /*
- * The client type for configuration names.
- */
- private ClientType clientType;
-
- /*
- * The auth type.
- */
- private AuthType authType;
-
- /*
- * Indicates where the secrets in configuration from. Used when secrets are from Keyvault.
- */
- private SecretSourceType secretType;
-
- /*
- * Deprecated, please use #/definitions/DaprConfigurationList instead
- */
- private DaprProperties daprProperties;
-
- /*
- * The configuration names to be set in compute service environment.
- */
- private List names;
-
- /**
- * Creates an instance of ConfigurationNames class.
- */
- public ConfigurationNames() {
- }
-
- /**
- * Get the targetService property: The target service provider name and resource name.
- *
- * @return the targetService value.
- */
- public String targetService() {
- return this.targetService;
- }
-
- /**
- * Set the targetService property: The target service provider name and resource name.
- *
- * @param targetService the targetService value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withTargetService(String targetService) {
- this.targetService = targetService;
- return this;
- }
-
- /**
- * Get the clientType property: The client type for configuration names.
- *
- * @return the clientType value.
- */
- public ClientType clientType() {
- return this.clientType;
- }
-
- /**
- * Set the clientType property: The client type for configuration names.
- *
- * @param clientType the clientType value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withClientType(ClientType clientType) {
- this.clientType = clientType;
- return this;
- }
-
- /**
- * Get the authType property: The auth type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.authType;
- }
-
- /**
- * Set the authType property: The auth type.
- *
- * @param authType the authType value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withAuthType(AuthType authType) {
- this.authType = authType;
- return this;
- }
-
- /**
- * Get the secretType property: Indicates where the secrets in configuration from. Used when secrets are from
- * Keyvault.
- *
- * @return the secretType value.
- */
- public SecretSourceType secretType() {
- return this.secretType;
- }
-
- /**
- * Set the secretType property: Indicates where the secrets in configuration from. Used when secrets are from
- * Keyvault.
- *
- * @param secretType the secretType value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withSecretType(SecretSourceType secretType) {
- this.secretType = secretType;
- return this;
- }
-
- /**
- * Get the daprProperties property: Deprecated, please use #/definitions/DaprConfigurationList instead.
- *
- * @return the daprProperties value.
- */
- public DaprProperties daprProperties() {
- return this.daprProperties;
- }
-
- /**
- * Set the daprProperties property: Deprecated, please use #/definitions/DaprConfigurationList instead.
- *
- * @param daprProperties the daprProperties value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withDaprProperties(DaprProperties daprProperties) {
- this.daprProperties = daprProperties;
- return this;
- }
-
- /**
- * Get the names property: The configuration names to be set in compute service environment.
- *
- * @return the names value.
- */
- public List names() {
- return this.names;
- }
-
- /**
- * Set the names property: The configuration names to be set in compute service environment.
- *
- * @param names the names value to set.
- * @return the ConfigurationNames object itself.
- */
- public ConfigurationNames withNames(List names) {
- this.names = names;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (daprProperties() != null) {
- daprProperties().validate();
- }
- if (names() != null) {
- names().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("targetService", this.targetService);
- jsonWriter.writeStringField("clientType", this.clientType == null ? null : this.clientType.toString());
- jsonWriter.writeStringField("authType", this.authType == null ? null : this.authType.toString());
- jsonWriter.writeStringField("secretType", this.secretType == null ? null : this.secretType.toString());
- jsonWriter.writeJsonField("daprProperties", this.daprProperties);
- jsonWriter.writeArrayField("names", this.names, (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ConfigurationNames from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ConfigurationNames if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the ConfigurationNames.
- */
- public static ConfigurationNames fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ConfigurationNames deserializedConfigurationNames = new ConfigurationNames();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("targetService".equals(fieldName)) {
- deserializedConfigurationNames.targetService = reader.getString();
- } else if ("clientType".equals(fieldName)) {
- deserializedConfigurationNames.clientType = ClientType.fromString(reader.getString());
- } else if ("authType".equals(fieldName)) {
- deserializedConfigurationNames.authType = AuthType.fromString(reader.getString());
- } else if ("secretType".equals(fieldName)) {
- deserializedConfigurationNames.secretType = SecretSourceType.fromString(reader.getString());
- } else if ("daprProperties".equals(fieldName)) {
- deserializedConfigurationNames.daprProperties = DaprProperties.fromJson(reader);
- } else if ("names".equals(fieldName)) {
- List names = reader.readArray(reader1 -> ConfigurationName.fromJson(reader1));
- deserializedConfigurationNames.names = names;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedConfigurationNames;
- });
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationProperties.java
deleted file mode 100644
index 085e1b4a4ae8f..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationProperties.java
+++ /dev/null
@@ -1,154 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.servicelinker.models.AuthType;
-import com.azure.resourcemanager.servicelinker.models.DaprProperties;
-import java.io.IOException;
-
-/**
- * The DaprConfigurationProperties model.
- */
-@Fluent
-public final class DaprConfigurationProperties implements JsonSerializable {
- /*
- * Supported target resource type, extract from resource id, uppercase
- */
- private String targetType;
-
- /*
- * The authentication type.
- */
- private AuthType authType;
-
- /*
- * Indicates some additional properties for dapr client type
- */
- private DaprProperties daprProperties;
-
- /**
- * Creates an instance of DaprConfigurationProperties class.
- */
- public DaprConfigurationProperties() {
- }
-
- /**
- * Get the targetType property: Supported target resource type, extract from resource id, uppercase.
- *
- * @return the targetType value.
- */
- public String targetType() {
- return this.targetType;
- }
-
- /**
- * Set the targetType property: Supported target resource type, extract from resource id, uppercase.
- *
- * @param targetType the targetType value to set.
- * @return the DaprConfigurationProperties object itself.
- */
- public DaprConfigurationProperties withTargetType(String targetType) {
- this.targetType = targetType;
- return this;
- }
-
- /**
- * Get the authType property: The authentication type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.authType;
- }
-
- /**
- * Set the authType property: The authentication type.
- *
- * @param authType the authType value to set.
- * @return the DaprConfigurationProperties object itself.
- */
- public DaprConfigurationProperties withAuthType(AuthType authType) {
- this.authType = authType;
- return this;
- }
-
- /**
- * Get the daprProperties property: Indicates some additional properties for dapr client type.
- *
- * @return the daprProperties value.
- */
- public DaprProperties daprProperties() {
- return this.daprProperties;
- }
-
- /**
- * Set the daprProperties property: Indicates some additional properties for dapr client type.
- *
- * @param daprProperties the daprProperties value to set.
- * @return the DaprConfigurationProperties object itself.
- */
- public DaprConfigurationProperties withDaprProperties(DaprProperties daprProperties) {
- this.daprProperties = daprProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (daprProperties() != null) {
- daprProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("targetType", this.targetType);
- jsonWriter.writeStringField("authType", this.authType == null ? null : this.authType.toString());
- jsonWriter.writeJsonField("daprProperties", this.daprProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DaprConfigurationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DaprConfigurationProperties if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the DaprConfigurationProperties.
- */
- public static DaprConfigurationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DaprConfigurationProperties deserializedDaprConfigurationProperties = new DaprConfigurationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("targetType".equals(fieldName)) {
- deserializedDaprConfigurationProperties.targetType = reader.getString();
- } else if ("authType".equals(fieldName)) {
- deserializedDaprConfigurationProperties.authType = AuthType.fromString(reader.getString());
- } else if ("daprProperties".equals(fieldName)) {
- deserializedDaprConfigurationProperties.daprProperties = DaprProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDaprConfigurationProperties;
- });
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationResourceInner.java
deleted file mode 100644
index 12ba3d2d49489..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DaprConfigurationResourceInner.java
+++ /dev/null
@@ -1,158 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.servicelinker.models.AuthType;
-import com.azure.resourcemanager.servicelinker.models.DaprProperties;
-import java.io.IOException;
-
-/**
- * Represent one resource of the dapr configuration list.
- */
-@Fluent
-public final class DaprConfigurationResourceInner implements JsonSerializable {
- /*
- * The properties of the dapr configuration.
- */
- private DaprConfigurationProperties innerProperties;
-
- /**
- * Creates an instance of DaprConfigurationResourceInner class.
- */
- public DaprConfigurationResourceInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of the dapr configuration.
- *
- * @return the innerProperties value.
- */
- private DaprConfigurationProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the targetType property: Supported target resource type, extract from resource id, uppercase.
- *
- * @return the targetType value.
- */
- public String targetType() {
- return this.innerProperties() == null ? null : this.innerProperties().targetType();
- }
-
- /**
- * Set the targetType property: Supported target resource type, extract from resource id, uppercase.
- *
- * @param targetType the targetType value to set.
- * @return the DaprConfigurationResourceInner object itself.
- */
- public DaprConfigurationResourceInner withTargetType(String targetType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DaprConfigurationProperties();
- }
- this.innerProperties().withTargetType(targetType);
- return this;
- }
-
- /**
- * Get the authType property: The authentication type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.innerProperties() == null ? null : this.innerProperties().authType();
- }
-
- /**
- * Set the authType property: The authentication type.
- *
- * @param authType the authType value to set.
- * @return the DaprConfigurationResourceInner object itself.
- */
- public DaprConfigurationResourceInner withAuthType(AuthType authType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DaprConfigurationProperties();
- }
- this.innerProperties().withAuthType(authType);
- return this;
- }
-
- /**
- * Get the daprProperties property: Indicates some additional properties for dapr client type.
- *
- * @return the daprProperties value.
- */
- public DaprProperties daprProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().daprProperties();
- }
-
- /**
- * Set the daprProperties property: Indicates some additional properties for dapr client type.
- *
- * @param daprProperties the daprProperties value to set.
- * @return the DaprConfigurationResourceInner object itself.
- */
- public DaprConfigurationResourceInner withDaprProperties(DaprProperties daprProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DaprConfigurationProperties();
- }
- this.innerProperties().withDaprProperties(daprProperties);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DaprConfigurationResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DaprConfigurationResourceInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the DaprConfigurationResourceInner.
- */
- public static DaprConfigurationResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DaprConfigurationResourceInner deserializedDaprConfigurationResourceInner
- = new DaprConfigurationResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("properties".equals(fieldName)) {
- deserializedDaprConfigurationResourceInner.innerProperties
- = DaprConfigurationProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDaprConfigurationResourceInner;
- });
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java
deleted file mode 100644
index d00847ce46c88..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java
+++ /dev/null
@@ -1,158 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
-import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The properties of the dryrun job.
- */
-@Fluent
-public final class DryrunProperties implements JsonSerializable {
- /*
- * The parameters of the dryrun
- */
- private DryrunParameters parameters;
-
- /*
- * the result of the dryrun
- */
- private List prerequisiteResults;
-
- /*
- * the preview of the operations for creation
- */
- private List operationPreviews;
-
- /*
- * The provisioning state.
- */
- private String provisioningState;
-
- /**
- * Creates an instance of DryrunProperties class.
- */
- public DryrunProperties() {
- }
-
- /**
- * Get the parameters property: The parameters of the dryrun.
- *
- * @return the parameters value.
- */
- public DryrunParameters parameters() {
- return this.parameters;
- }
-
- /**
- * Set the parameters property: The parameters of the dryrun.
- *
- * @param parameters the parameters value to set.
- * @return the DryrunProperties object itself.
- */
- public DryrunProperties withParameters(DryrunParameters parameters) {
- this.parameters = parameters;
- return this;
- }
-
- /**
- * Get the prerequisiteResults property: the result of the dryrun.
- *
- * @return the prerequisiteResults value.
- */
- public List prerequisiteResults() {
- return this.prerequisiteResults;
- }
-
- /**
- * Get the operationPreviews property: the preview of the operations for creation.
- *
- * @return the operationPreviews value.
- */
- public List operationPreviews() {
- return this.operationPreviews;
- }
-
- /**
- * Get the provisioningState property: The provisioning state.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (parameters() != null) {
- parameters().validate();
- }
- if (prerequisiteResults() != null) {
- prerequisiteResults().forEach(e -> e.validate());
- }
- if (operationPreviews() != null) {
- operationPreviews().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("parameters", this.parameters);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DryrunProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DryrunProperties if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the DryrunProperties.
- */
- public static DryrunProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DryrunProperties deserializedDryrunProperties = new DryrunProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("parameters".equals(fieldName)) {
- deserializedDryrunProperties.parameters = DryrunParameters.fromJson(reader);
- } else if ("prerequisiteResults".equals(fieldName)) {
- List prerequisiteResults
- = reader.readArray(reader1 -> DryrunPrerequisiteResult.fromJson(reader1));
- deserializedDryrunProperties.prerequisiteResults = prerequisiteResults;
- } else if ("operationPreviews".equals(fieldName)) {
- List operationPreviews
- = reader.readArray(reader1 -> DryrunOperationPreview.fromJson(reader1));
- deserializedDryrunProperties.operationPreviews = operationPreviews;
- } else if ("provisioningState".equals(fieldName)) {
- deserializedDryrunProperties.provisioningState = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDryrunProperties;
- });
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java
deleted file mode 100644
index 863e9e4d8f34d..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java
+++ /dev/null
@@ -1,208 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
-import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
-import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * a dryrun job resource.
- */
-@Fluent
-public final class DryrunResourceInner extends ProxyResource {
- /*
- * The properties of the dryrun job.
- */
- private DryrunProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of DryrunResourceInner class.
- */
- public DryrunResourceInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of the dryrun job.
- *
- * @return the innerProperties value.
- */
- private DryrunProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the parameters property: The parameters of the dryrun.
- *
- * @return the parameters value.
- */
- public DryrunParameters parameters() {
- return this.innerProperties() == null ? null : this.innerProperties().parameters();
- }
-
- /**
- * Set the parameters property: The parameters of the dryrun.
- *
- * @param parameters the parameters value to set.
- * @return the DryrunResourceInner object itself.
- */
- public DryrunResourceInner withParameters(DryrunParameters parameters) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DryrunProperties();
- }
- this.innerProperties().withParameters(parameters);
- return this;
- }
-
- /**
- * Get the prerequisiteResults property: the result of the dryrun.
- *
- * @return the prerequisiteResults value.
- */
- public List prerequisiteResults() {
- return this.innerProperties() == null ? null : this.innerProperties().prerequisiteResults();
- }
-
- /**
- * Get the operationPreviews property: the preview of the operations for creation.
- *
- * @return the operationPreviews value.
- */
- public List 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();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DryrunResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DryrunResourceInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DryrunResourceInner.
- */
- public static DryrunResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DryrunResourceInner deserializedDryrunResourceInner = new DryrunResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedDryrunResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedDryrunResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedDryrunResourceInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedDryrunResourceInner.innerProperties = DryrunProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedDryrunResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDryrunResourceInner;
- });
- }
-}
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 d87eca60a2c1a..84d04089000ae 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
@@ -11,18 +11,16 @@
import com.azure.json.JsonWriter;
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 java.io.IOException;
/**
- * The properties of the Linker.
+ * The properties of the linker.
*/
@Fluent
-public class LinkerProperties implements JsonSerializable {
+public final class LinkerProperties implements JsonSerializable {
/*
* The target service properties
*/
@@ -58,16 +56,6 @@ public class LinkerProperties implements JsonSerializable {
*/
private String scope;
- /*
- * The network solution.
- */
- private PublicNetworkSolution publicNetworkSolution;
-
- /*
- * The connection information consumed by applications, including secrets, connection strings.
- */
- private ConfigurationInfo configurationInfo;
-
/**
* Creates an instance of LinkerProperties class.
*/
@@ -143,17 +131,6 @@ public String provisioningState() {
return this.provisioningState;
}
- /**
- * Set the provisioningState property: The provisioning state.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the LinkerProperties object itself.
- */
- LinkerProperties withProvisioningState(String provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
/**
* Get the vNetSolution property: The VNet solution.
*
@@ -214,48 +191,6 @@ 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.
*
@@ -274,12 +209,6 @@ public void validate() {
if (secretStore() != null) {
secretStore().validate();
}
- if (publicNetworkSolution() != null) {
- publicNetworkSolution().validate();
- }
- if (configurationInfo() != null) {
- configurationInfo().validate();
- }
}
/**
@@ -294,8 +223,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("vNetSolution", this.vNetSolution);
jsonWriter.writeJsonField("secretStore", this.secretStore);
jsonWriter.writeStringField("scope", this.scope);
- jsonWriter.writeJsonField("publicNetworkSolution", this.publicNetworkSolution);
- jsonWriter.writeJsonField("configurationInfo", this.configurationInfo);
return jsonWriter.writeEndObject();
}
@@ -328,10 +255,6 @@ public static LinkerProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedLinkerProperties.secretStore = SecretStore.fromJson(reader);
} else if ("scope".equals(fieldName)) {
deserializedLinkerProperties.scope = reader.getString();
- } else if ("publicNetworkSolution".equals(fieldName)) {
- deserializedLinkerProperties.publicNetworkSolution = PublicNetworkSolution.fromJson(reader);
- } else if ("configurationInfo".equals(fieldName)) {
- deserializedLinkerProperties.configurationInfo = ConfigurationInfo.fromJson(reader);
} else {
reader.skipChildren();
}
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 99ec1f9f0c606..0ddbf62d011d7 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
@@ -13,8 +13,6 @@
import com.azure.json.JsonWriter;
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;
@@ -26,12 +24,12 @@
@Fluent
public final class LinkerResourceInner extends ProxyResource {
/*
- * The properties of the Linker.
+ * The properties of the linker.
*/
private LinkerProperties innerProperties = new LinkerProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * The system data.
*/
private SystemData systemData;
@@ -57,7 +55,7 @@ public LinkerResourceInner() {
}
/**
- * Get the innerProperties property: The properties of the Linker.
+ * Get the innerProperties property: The properties of the linker.
*
* @return the innerProperties value.
*/
@@ -66,7 +64,7 @@ private LinkerProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: The system data.
*
* @return the systemData value.
*/
@@ -251,54 +249,6 @@ 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/ConfigurationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
similarity index 70%
rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationResultInner.java
rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
index aa97729b424d3..20e2d8ec6a64e 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationResultInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
@@ -17,16 +17,16 @@
* Configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
@Fluent
-public final class ConfigurationResultInner implements JsonSerializable {
+public final class SourceConfigurationResultInner implements JsonSerializable {
/*
* The configuration properties for source resource.
*/
private List configurations;
/**
- * Creates an instance of ConfigurationResultInner class.
+ * Creates an instance of SourceConfigurationResultInner class.
*/
- public ConfigurationResultInner() {
+ public SourceConfigurationResultInner() {
}
/**
@@ -42,9 +42,9 @@ public List configurations() {
* Set the configurations property: The configuration properties for source resource.
*
* @param configurations the configurations value to set.
- * @return the ConfigurationResultInner object itself.
+ * @return the SourceConfigurationResultInner object itself.
*/
- public ConfigurationResultInner withConfigurations(List configurations) {
+ public SourceConfigurationResultInner withConfigurations(List configurations) {
this.configurations = configurations;
return this;
}
@@ -72,16 +72,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}
/**
- * Reads an instance of ConfigurationResultInner from the JsonReader.
+ * Reads an instance of SourceConfigurationResultInner from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of ConfigurationResultInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ConfigurationResultInner.
+ * @return An instance of SourceConfigurationResultInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SourceConfigurationResultInner.
*/
- public static ConfigurationResultInner fromJson(JsonReader jsonReader) throws IOException {
+ public static SourceConfigurationResultInner fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- ConfigurationResultInner deserializedConfigurationResultInner = new ConfigurationResultInner();
+ SourceConfigurationResultInner deserializedSourceConfigurationResultInner
+ = new SourceConfigurationResultInner();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
@@ -89,13 +90,13 @@ public static ConfigurationResultInner fromJson(JsonReader jsonReader) throws IO
if ("configurations".equals(fieldName)) {
List configurations
= reader.readArray(reader1 -> SourceConfiguration.fromJson(reader1));
- deserializedConfigurationResultInner.configurations = configurations;
+ deserializedSourceConfigurationResultInner.configurations = configurations;
} else {
reader.skipChildren();
}
}
- return deserializedConfigurationResultInner;
+ return deserializedSourceConfigurationResultInner;
});
}
}
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 2a02c438c5ad5..3bc94b5e0876b 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
@@ -16,7 +16,7 @@
import java.util.List;
/**
- * The validation operation result for a Linker.
+ * The validation operation result for a linker.
*/
@Fluent
public final class ValidateOperationResultInner implements JsonSerializable {
@@ -26,7 +26,7 @@ public final class ValidateOperationResultInner implements JsonSerializable {
@@ -43,7 +43,7 @@ public final class ValidateResult implements JsonSerializable {
private OffsetDateTime reportEndTimeUtc;
/*
- * The resource id of the Linker source application.
+ * The resource id of the linker source application.
*/
private String sourceId;
@@ -149,7 +149,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.
*/
@@ -158,7 +158,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
deleted file mode 100644
index f1a7638e2a2e5..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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 com.azure.resourcemanager.servicelinker.models.DaprProperties;
-import com.azure.resourcemanager.servicelinker.models.SecretSourceType;
-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 SecretSourceType secretType() {
- return this.innerModel().secretType();
- }
-
- public DaprProperties daprProperties() {
- return this.innerModel().daprProperties();
- }
-
- 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
deleted file mode 100644
index 927cb2a9a14fb..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java
+++ /dev/null
@@ -1,268 +0,0 @@
-// 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.
- * @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.
- * @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
deleted file mode 100644
index d61ea9d4461c3..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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 ResourceManagerUtils.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 ResourceManagerUtils.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/ConnectorsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
deleted file mode 100644
index d176b6e3aae48..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
+++ /dev/null
@@ -1,2692 +0,0 @@
-// 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 this.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 this.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 this.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 this.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 this.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 this
- .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 this.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 this.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 this.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 this.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 this.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 this.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.
- * @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.
- * @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.
- * @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.
- * @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
deleted file mode 100644
index b96bf88bf5e9b..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java
+++ /dev/null
@@ -1,327 +0,0 @@
-// 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.LinkerPatch;
-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 ResourceManagerUtils.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 ResourceManagerUtils.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 ResourceManagerUtils.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 ResourceManagerUtils.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 LinkerResource createOrUpdate(String subscriptionId, String resourceGroupName, String location,
- String connectorName, LinkerResourceInner parameters) {
- LinkerResourceInner inner = this.serviceClient()
- .createOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters);
- if (inner != null) {
- return new LinkerResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public LinkerResource createOrUpdate(String subscriptionId, String resourceGroupName, String location,
- String connectorName, LinkerResourceInner parameters, Context context) {
- LinkerResourceInner inner = this.serviceClient()
- .createOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, context);
- 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 LinkerResource update(String subscriptionId, String resourceGroupName, String location, String connectorName,
- LinkerPatch parameters) {
- LinkerResourceInner inner
- = this.serviceClient().update(subscriptionId, resourceGroupName, location, connectorName, parameters);
- if (inner != null) {
- return new LinkerResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public LinkerResource update(String subscriptionId, String resourceGroupName, String location, String connectorName,
- LinkerPatch parameters, Context context) {
- LinkerResourceInner inner = this.serviceClient()
- .update(subscriptionId, resourceGroupName, location, connectorName, parameters, context);
- if (inner != null) {
- return new LinkerResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- 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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 void deleteDryrunById(String id) {
- String subscriptionId = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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 = ResourceManagerUtils.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);
- }
-
- private ConnectorsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
- return this.serviceManager;
- }
-
- public DryrunResourceImpl define(String name) {
- return new DryrunResourceImpl(name, this.manager());
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DaprConfigurationResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DaprConfigurationResourceImpl.java
deleted file mode 100644
index 4e005ba6d260c..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DaprConfigurationResourceImpl.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.DaprConfigurationResourceInner;
-import com.azure.resourcemanager.servicelinker.models.AuthType;
-import com.azure.resourcemanager.servicelinker.models.DaprConfigurationResource;
-import com.azure.resourcemanager.servicelinker.models.DaprProperties;
-
-public final class DaprConfigurationResourceImpl implements DaprConfigurationResource {
- private DaprConfigurationResourceInner innerObject;
-
- private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
-
- DaprConfigurationResourceImpl(DaprConfigurationResourceInner innerObject,
- com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String targetType() {
- return this.innerModel().targetType();
- }
-
- public AuthType authType() {
- return this.innerModel().authType();
- }
-
- public DaprProperties daprProperties() {
- return this.innerModel().daprProperties();
- }
-
- public DaprConfigurationResourceInner 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/DryrunResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
deleted file mode 100644
index 86cbc1cd24e36..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// 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 = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "subscriptions");
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourcegroups");
- this.location = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "locations");
- this.dryrunName = ResourceManagerUtils.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 376f49894a2ed..bc441c1a1fff3 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,12 +10,10 @@
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;
@@ -69,14 +67,6 @@ public String scope() {
return this.innerModel().scope();
}
- public PublicNetworkSolution publicNetworkSolution() {
- return this.innerModel().publicNetworkSolution();
- }
-
- public ConfigurationInfo configurationInfo() {
- return this.innerModel().configurationInfo();
- }
-
public LinkerResourceInner innerModel() {
return this.innerObject;
}
@@ -166,11 +156,11 @@ public ValidateOperationResult validate(Context context) {
return serviceManager.linkers().validate(resourceUri, linkerName, context);
}
- public Response