listConfigurationsWithResponse(
- String resourceUri, String linkerName, Context context);
+ SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
}
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
deleted file mode 100644
index 44ef47e9ee44..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.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.resourcemanager.servicelinker.models.AuthInfoBase;
-import com.azure.resourcemanager.servicelinker.models.ClientType;
-import com.azure.resourcemanager.servicelinker.models.SecretStore;
-import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
-import com.azure.resourcemanager.servicelinker.models.VNetSolution;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of the linker. */
-@Fluent
-public final class LinkerProperties {
- /*
- * The target service properties
- */
- @JsonProperty(value = "targetService")
- private TargetServiceBase targetService;
-
- /*
- * The authentication type.
- */
- @JsonProperty(value = "authInfo")
- private AuthInfoBase authInfo;
-
- /*
- * The application client type
- */
- @JsonProperty(value = "clientType")
- private ClientType clientType;
-
- /*
- * The provisioning state.
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /*
- * The VNet solution.
- */
- @JsonProperty(value = "vNetSolution")
- private VNetSolution vNetSolution;
-
- /*
- * An option to store secret value in secure place
- */
- @JsonProperty(value = "secretStore")
- private SecretStore secretStore;
-
- /*
- * connection scope in source service.
- */
- @JsonProperty(value = "scope")
- private String scope;
-
- /**
- * Get the targetService property: The target service properties.
- *
- * @return the targetService value.
- */
- public TargetServiceBase targetService() {
- return this.targetService;
- }
-
- /**
- * Set the targetService property: The target service properties.
- *
- * @param targetService the targetService value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withTargetService(TargetServiceBase targetService) {
- this.targetService = targetService;
- return this;
- }
-
- /**
- * Get the authInfo property: The authentication type.
- *
- * @return the authInfo value.
- */
- public AuthInfoBase authInfo() {
- return this.authInfo;
- }
-
- /**
- * Set the authInfo property: The authentication type.
- *
- * @param authInfo the authInfo value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withAuthInfo(AuthInfoBase authInfo) {
- this.authInfo = authInfo;
- return this;
- }
-
- /**
- * Get the clientType property: The application client type.
- *
- * @return the clientType value.
- */
- public ClientType clientType() {
- return this.clientType;
- }
-
- /**
- * Set the clientType property: The application client type.
- *
- * @param clientType the clientType value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withClientType(ClientType clientType) {
- this.clientType = clientType;
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the vNetSolution property: The VNet solution.
- *
- * @return the vNetSolution value.
- */
- public VNetSolution vNetSolution() {
- return this.vNetSolution;
- }
-
- /**
- * Set the vNetSolution property: The VNet solution.
- *
- * @param vNetSolution the vNetSolution value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withVNetSolution(VNetSolution vNetSolution) {
- this.vNetSolution = vNetSolution;
- return this;
- }
-
- /**
- * Get the secretStore property: An option to store secret value in secure place.
- *
- * @return the secretStore value.
- */
- public SecretStore secretStore() {
- return this.secretStore;
- }
-
- /**
- * Set the secretStore property: An option to store secret value in secure place.
- *
- * @param secretStore the secretStore value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withSecretStore(SecretStore secretStore) {
- this.secretStore = secretStore;
- return this;
- }
-
- /**
- * Get the scope property: connection scope in source service.
- *
- * @return the scope value.
- */
- public String scope() {
- return this.scope;
- }
-
- /**
- * Set the scope property: connection scope in source service.
- *
- * @param scope the scope value to set.
- * @return the LinkerProperties object itself.
- */
- public LinkerProperties withScope(String scope) {
- this.scope = scope;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (targetService() != null) {
- targetService().validate();
- }
- if (authInfo() != null) {
- authInfo().validate();
- }
- if (vNetSolution() != null) {
- vNetSolution().validate();
- }
- if (secretStore() != null) {
- secretStore().validate();
- }
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
deleted file mode 100644
index 44f17614df63..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
+++ /dev/null
@@ -1,215 +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.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
-import com.azure.resourcemanager.servicelinker.models.ClientType;
-import com.azure.resourcemanager.servicelinker.models.SecretStore;
-import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
-import com.azure.resourcemanager.servicelinker.models.VNetSolution;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Linker of source and target resource. */
-@Fluent
-public final class LinkerResourceInner extends ProxyResource {
- /*
- * The properties of the linker.
- */
- @JsonProperty(value = "properties", required = true)
- private LinkerProperties innerProperties = new LinkerProperties();
-
- /*
- * The system data.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Get the innerProperties property: The properties of the linker.
- *
- * @return the innerProperties value.
- */
- private LinkerProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system data.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the targetService property: The target service properties.
- *
- * @return the targetService value.
- */
- public TargetServiceBase targetService() {
- return this.innerProperties() == null ? null : this.innerProperties().targetService();
- }
-
- /**
- * Set the targetService property: The target service properties.
- *
- * @param targetService the targetService value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withTargetService(TargetServiceBase targetService) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withTargetService(targetService);
- return this;
- }
-
- /**
- * Get the authInfo property: The authentication type.
- *
- * @return the authInfo value.
- */
- public AuthInfoBase authInfo() {
- return this.innerProperties() == null ? null : this.innerProperties().authInfo();
- }
-
- /**
- * Set the authInfo property: The authentication type.
- *
- * @param authInfo the authInfo value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withAuthInfo(AuthInfoBase authInfo) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withAuthInfo(authInfo);
- return this;
- }
-
- /**
- * Get the clientType property: The application client type.
- *
- * @return the clientType value.
- */
- public ClientType clientType() {
- return this.innerProperties() == null ? null : this.innerProperties().clientType();
- }
-
- /**
- * Set the clientType property: The application client type.
- *
- * @param clientType the clientType value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withClientType(ClientType clientType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withClientType(clientType);
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the vNetSolution property: The VNet solution.
- *
- * @return the vNetSolution value.
- */
- public VNetSolution vNetSolution() {
- return this.innerProperties() == null ? null : this.innerProperties().vNetSolution();
- }
-
- /**
- * Set the vNetSolution property: The VNet solution.
- *
- * @param vNetSolution the vNetSolution value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withVNetSolution(VNetSolution vNetSolution) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withVNetSolution(vNetSolution);
- return this;
- }
-
- /**
- * Get the secretStore property: An option to store secret value in secure place.
- *
- * @return the secretStore value.
- */
- public SecretStore secretStore() {
- return this.innerProperties() == null ? null : this.innerProperties().secretStore();
- }
-
- /**
- * Set the secretStore property: An option to store secret value in secure place.
- *
- * @param secretStore the secretStore value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withSecretStore(SecretStore secretStore) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withSecretStore(secretStore);
- return this;
- }
-
- /**
- * Get the scope property: connection scope in source service.
- *
- * @return the scope value.
- */
- public String scope() {
- return this.innerProperties() == null ? null : this.innerProperties().scope();
- }
-
- /**
- * Set the scope property: connection scope in source service.
- *
- * @param scope the scope value to set.
- * @return the LinkerResourceInner object itself.
- */
- public LinkerResourceInner withScope(String scope) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withScope(scope);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerProperties in model LinkerResourceInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(LinkerResourceInner.class);
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
index 3d520cb77233..e9d065fb7e7a 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
@@ -10,20 +10,23 @@
import com.azure.resourcemanager.servicelinker.models.Origin;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for
- * data-plane operations and "false" for ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -35,19 +38,22 @@ public final class OperationInner {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access
- * Control (RBAC) and audit logs UX. Default value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
index aa517497546a..013cf122cc92 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
@@ -18,6 +18,10 @@ public final class SourceConfigurationResultInner {
@JsonProperty(value = "configurations")
private List configurations;
+ /** Creates an instance of SourceConfigurationResultInner class. */
+ public SourceConfigurationResultInner() {
+ }
+
/**
* Get the configurations property: The configuration properties for source resource.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
index 5d622571c49f..eb820571745d 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
@@ -32,6 +32,10 @@ public final class ValidateOperationResultInner {
@JsonProperty(value = "status")
private String status;
+ /** Creates an instance of ValidateOperationResultInner class. */
+ public ValidateOperationResultInner() {
+ }
+
/**
* Get the innerProperties property: The validation result detail.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
index 77eda44f84be..2846f6e193e5 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
@@ -62,6 +62,10 @@ public final class ValidateResult {
@JsonProperty(value = "validationDetail")
private List validationDetail;
+ /** Creates an instance of ValidateResult class. */
+ public ValidateResult() {
+ }
+
/**
* Get the linkerName property: The linker name.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
index 12928aaba782..e911a529d366 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider. */
+/** Package containing the inner data models for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider asd. */
package com.azure.resourcemanager.servicelinker.fluent.models;
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
index 3f6dd75b187a..5664c8203769 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider. */
+/** Package containing the service clients for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider asd. */
package com.azure.resourcemanager.servicelinker.fluent;
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
deleted file mode 100644
index c8fff03eab9a..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
+++ /dev/null
@@ -1,243 +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.Response;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-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.LinkerPatch;
-import com.azure.resourcemanager.servicelinker.models.LinkerResource;
-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;
-
-public final class LinkerResourceImpl implements LinkerResource, LinkerResource.Definition, LinkerResource.Update {
- private LinkerResourceInner 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 TargetServiceBase targetService() {
- return this.innerModel().targetService();
- }
-
- public AuthInfoBase authInfo() {
- return this.innerModel().authInfo();
- }
-
- public ClientType clientType() {
- return this.innerModel().clientType();
- }
-
- public String provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public VNetSolution vNetSolution() {
- return this.innerModel().vNetSolution();
- }
-
- public SecretStore secretStore() {
- return this.innerModel().secretStore();
- }
-
- public String scope() {
- return this.innerModel().scope();
- }
-
- public LinkerResourceInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
- return this.serviceManager;
- }
-
- private String resourceUri;
-
- private String linkerName;
-
- private LinkerPatch updateParameters;
-
- public LinkerResourceImpl withExistingResourceUri(String resourceUri) {
- this.resourceUri = resourceUri;
- return this;
- }
-
- public LinkerResource create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLinkers()
- .createOrUpdate(resourceUri, linkerName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public LinkerResource create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLinkers()
- .createOrUpdate(resourceUri, linkerName, this.innerModel(), context);
- return this;
- }
-
- LinkerResourceImpl(String name, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
- this.innerObject = new LinkerResourceInner();
- this.serviceManager = serviceManager;
- this.linkerName = name;
- }
-
- public LinkerResourceImpl update() {
- this.updateParameters = new LinkerPatch();
- return this;
- }
-
- public LinkerResource apply() {
- this.innerObject =
- serviceManager.serviceClient().getLinkers().update(resourceUri, linkerName, updateParameters, Context.NONE);
- return this;
- }
-
- public LinkerResource apply(Context context) {
- this.innerObject =
- serviceManager.serviceClient().getLinkers().update(resourceUri, linkerName, updateParameters, context);
- return this;
- }
-
- LinkerResourceImpl(
- LinkerResourceInner innerObject, com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceUri =
- Utils
- .getValueFromIdByParameterName(
- innerObject.id(),
- "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",
- "resourceUri");
- this.linkerName =
- Utils
- .getValueFromIdByParameterName(
- innerObject.id(),
- "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",
- "linkerName");
- }
-
- public LinkerResource refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLinkers()
- .getWithResponse(resourceUri, linkerName, Context.NONE)
- .getValue();
- return this;
- }
-
- public LinkerResource refresh(Context context) {
- this.innerObject =
- serviceManager.serviceClient().getLinkers().getWithResponse(resourceUri, linkerName, context).getValue();
- return this;
- }
-
- public ValidateOperationResult validate() {
- return serviceManager.linkers().validate(resourceUri, linkerName);
- }
-
- public ValidateOperationResult validate(Context context) {
- return serviceManager.linkers().validate(resourceUri, linkerName, context);
- }
-
- public SourceConfigurationResult listConfigurations() {
- return serviceManager.linkers().listConfigurations(resourceUri, linkerName);
- }
-
- public Response listConfigurationsWithResponse(Context context) {
- return serviceManager.linkers().listConfigurationsWithResponse(resourceUri, linkerName, context);
- }
-
- public LinkerResourceImpl withTargetService(TargetServiceBase targetService) {
- if (isInCreateMode()) {
- this.innerModel().withTargetService(targetService);
- return this;
- } else {
- this.updateParameters.withTargetService(targetService);
- return this;
- }
- }
-
- public LinkerResourceImpl withAuthInfo(AuthInfoBase authInfo) {
- if (isInCreateMode()) {
- this.innerModel().withAuthInfo(authInfo);
- return this;
- } else {
- this.updateParameters.withAuthInfo(authInfo);
- return this;
- }
- }
-
- public LinkerResourceImpl withClientType(ClientType clientType) {
- if (isInCreateMode()) {
- this.innerModel().withClientType(clientType);
- return this;
- } else {
- this.updateParameters.withClientType(clientType);
- return this;
- }
- }
-
- public LinkerResourceImpl withVNetSolution(VNetSolution vNetSolution) {
- if (isInCreateMode()) {
- this.innerModel().withVNetSolution(vNetSolution);
- return this;
- } else {
- this.updateParameters.withVNetSolution(vNetSolution);
- return this;
- }
- }
-
- public LinkerResourceImpl withSecretStore(SecretStore secretStore) {
- if (isInCreateMode()) {
- this.innerModel().withSecretStore(secretStore);
- return this;
- } else {
- this.updateParameters.withSecretStore(secretStore);
- return this;
- }
- }
-
- public LinkerResourceImpl withScope(String scope) {
- if (isInCreateMode()) {
- this.innerModel().withScope(scope);
- return this;
- } else {
- this.updateParameters.withScope(scope);
- return this;
- }
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
index 033bdccd2382..e1f7e696d4b3 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersClientImpl.java
@@ -4,27 +4,18 @@
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;
@@ -34,11 +25,8 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicelinker.fluent.LinkersClient;
-import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner;
import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
-import com.azure.resourcemanager.servicelinker.models.LinkerList;
-import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,1053 +55,30 @@ public final class LinkersClientImpl implements LinkersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ServiceLinkerManagem")
- private interface LinkersService {
+ public interface LinkersService {
@Headers({"Content-Type: application/json"})
- @Get("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}")
- @ExpectedResponses({200, 201})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @BodyParam("application/json") LinkerResourceInner parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}")
- @ExpectedResponses({200, 202, 204})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}")
- @ExpectedResponses({200, 201})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @BodyParam("application/json") LinkerPatch parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker")
- @ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> validate(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listConfigurations(
- @HostParam("$host") String endpoint,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @QueryParam("api-version") String apiVersion,
- @PathParam("linkerName") String linkerName,
- @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);
- }
-
- /**
- * 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.
- * @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 resourceUri) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service.list(this.client.getEndpoint(), resourceUri, 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 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.
- * @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 resourceUri, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), resourceUri, 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 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.
- * @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 resourceUri) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceUri), nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * 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.
- * @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 resourceUri, Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(resourceUri, context), nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * 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.
- * @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 resourceUri) {
- return new PagedIterable<>(listAsync(resourceUri));
- }
-
- /**
- * 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.
- * @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 resourceUri, Context context) {
- return new PagedIterable<>(listAsync(resourceUri, context));
- }
-
- /**
- * Returns Linker resource for a given name.
- *
- * @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 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 resourceUri, String linkerName) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Returns Linker resource for a given name.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(this.client.getEndpoint(), resourceUri, this.client.getApiVersion(), linkerName, accept, context);
- }
-
- /**
- * Returns Linker resource for a given name.
- *
- * @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 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 resourceUri, String linkerName) {
- return getWithResponseAsync(resourceUri, linkerName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Returns Linker resource for a given name.
- *
- * @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 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 resourceUri, String linkerName) {
- return getAsync(resourceUri, linkerName).block();
- }
-
- /**
- * Returns Linker resource for a given name.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- return getWithResponseAsync(resourceUri, linkerName, context).block();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName 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(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, 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 (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName 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(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- parameters,
- accept,
- context);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters) {
- Mono>> mono = createOrUpdateWithResponseAsync(resourceUri, linkerName, parameters);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- LinkerResourceInner.class,
- LinkerResourceInner.class,
- this.client.getContext());
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceUri, linkerName, parameters, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), LinkerResourceInner.class, LinkerResourceInner.class, context);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters) {
- return beginCreateOrUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceUri, linkerName, parameters, context).getSyncPoller();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters) {
- return beginCreateOrUpdateAsync(resourceUri, linkerName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceUri, linkerName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters) {
- return createOrUpdateAsync(resourceUri, linkerName, parameters).block();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerResourceInner parameters, Context context) {
- return createOrUpdateAsync(resourceUri, linkerName, parameters, context).block();
- }
-
- /**
- * Delete 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 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 resourceUri, String linkerName) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .delete(this.client.getEndpoint(), resourceUri, this.client.getApiVersion(), linkerName, accept, context);
- }
-
- /**
- * Delete 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 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 resourceUri, String linkerName) {
- Mono>> mono = deleteWithResponseAsync(resourceUri, linkerName);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
- }
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = deleteWithResponseAsync(resourceUri, linkerName, context);
- return this
- .client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
- }
-
- /**
- * Delete 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 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 resourceUri, String linkerName) {
- return beginDeleteAsync(resourceUri, linkerName).getSyncPoller();
- }
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- return beginDeleteAsync(resourceUri, linkerName, context).getSyncPoller();
- }
-
- /**
- * Delete 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 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 resourceUri, String linkerName) {
- return beginDeleteAsync(resourceUri, linkerName).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- return beginDeleteAsync(resourceUri, linkerName, context).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete 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 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 resourceUri, String linkerName) {
- deleteAsync(resourceUri, linkerName).block();
- }
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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 resourceUri, String linkerName, Context context) {
- deleteAsync(resourceUri, linkerName, context).block();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName 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(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, 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 (resourceUri == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
- }
- if (linkerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter linkerName 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(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- parameters,
- accept,
- context);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters) {
- Mono>> mono = updateWithResponseAsync(resourceUri, linkerName, parameters);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- LinkerResourceInner.class,
- LinkerResourceInner.class,
- this.client.getContext());
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = updateWithResponseAsync(resourceUri, linkerName, parameters, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), LinkerResourceInner.class, LinkerResourceInner.class, context);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters) {
- return beginUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters, Context context) {
- return beginUpdateAsync(resourceUri, linkerName, parameters, context).getSyncPoller();
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters) {
- return beginUpdateAsync(resourceUri, linkerName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters, Context context) {
- return beginUpdateAsync(resourceUri, linkerName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters) {
- return updateAsync(resourceUri, linkerName, parameters).block();
- }
+ @Post("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> validate(
+ @HostParam("$host") String endpoint,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("linkerName") String linkerName,
+ @HeaderParam("Accept") String accept,
+ Context context);
- /**
- * 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.
- * @param parameters Linker 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 resourceUri, String linkerName, LinkerPatch parameters, Context context) {
- return updateAsync(resourceUri, linkerName, parameters, context).block();
+ @Headers({"Content-Type: application/json"})
+ @Post("/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listConfigurations(
+ @HostParam("$host") String endpoint,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("linkerName") String linkerName,
+ @HeaderParam("Accept") String accept,
+ Context context);
}
/**
@@ -1252,7 +217,7 @@ private PollerFlux, ValidateOperationRe
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ValidateOperationResultInner> beginValidate(
String resourceUri, String linkerName) {
- return beginValidateAsync(resourceUri, linkerName).getSyncPoller();
+ return this.beginValidateAsync(resourceUri, linkerName).getSyncPoller();
}
/**
@@ -1269,7 +234,7 @@ public SyncPoller, ValidateOperationRes
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ValidateOperationResultInner> beginValidate(
String resourceUri, String linkerName, Context context) {
- return beginValidateAsync(resourceUri, linkerName, context).getSyncPoller();
+ return this.beginValidateAsync(resourceUri, linkerName, context).getSyncPoller();
}
/**
@@ -1428,21 +393,6 @@ private Mono listConfigurationsAsync(String reso
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
- /**
- * 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.
- * @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 SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName) {
- return listConfigurationsAsync(resourceUri, linkerName).block();
- }
-
/**
* list source configurations for a linker.
*
@@ -1462,73 +412,17 @@ public Response listConfigurationsWithResponse(
}
/**
- * Get the next page of items.
- *
- * @param nextLink The nextLink parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
+ * list source configurations for a linker.
*
- * @param nextLink The nextLink parameter.
- * @param context The context to associate with this operation.
+ * @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 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}.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
@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));
+ public SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName) {
+ return listConfigurationsWithResponse(resourceUri, linkerName, Context.NONE).getValue();
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersImpl.java
index 75322fa6ef05..5c40c14a26c9 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersImpl.java
@@ -4,16 +4,13 @@
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.LinkersClient;
-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.LinkerResource;
import com.azure.resourcemanager.servicelinker.models.Linkers;
import com.azure.resourcemanager.servicelinker.models.SourceConfigurationResult;
import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult;
@@ -31,46 +28,6 @@ public LinkersImpl(
this.serviceManager = serviceManager;
}
- public PagedIterable list(String resourceUri) {
- PagedIterable inner = this.serviceClient().list(resourceUri);
- return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceUri, Context context) {
- PagedIterable inner = this.serviceClient().list(resourceUri, context);
- return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
- }
-
- public LinkerResource get(String resourceUri, String linkerName) {
- LinkerResourceInner inner = this.serviceClient().get(resourceUri, linkerName);
- if (inner != null) {
- return new LinkerResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(String resourceUri, String linkerName, Context context) {
- Response inner = this.serviceClient().getWithResponse(resourceUri, linkerName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new LinkerResourceImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public void deleteByResourceGroup(String resourceUri, String linkerName) {
- this.serviceClient().delete(resourceUri, linkerName);
- }
-
- public void delete(String resourceUri, String linkerName, Context context) {
- this.serviceClient().delete(resourceUri, linkerName, context);
- }
-
public ValidateOperationResult validate(String resourceUri, String linkerName) {
ValidateOperationResultInner inner = this.serviceClient().validate(resourceUri, linkerName);
if (inner != null) {
@@ -89,15 +46,6 @@ public ValidateOperationResult validate(String resourceUri, String linkerName, C
}
}
- public SourceConfigurationResult listConfigurations(String resourceUri, String linkerName) {
- SourceConfigurationResultInner inner = this.serviceClient().listConfigurations(resourceUri, linkerName);
- if (inner != null) {
- return new SourceConfigurationResultImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response listConfigurationsWithResponse(
String resourceUri, String linkerName, Context context) {
Response inner =
@@ -113,100 +61,13 @@ public Response listConfigurationsWithResponse(
}
}
- public LinkerResource getById(String id) {
- String resourceUri =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "resourceUri");
- if (resourceUri == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
- }
- String linkerName =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "linkerName");
- if (linkerName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'linkers'.", id)));
- }
- return this.getWithResponse(resourceUri, linkerName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceUri =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "resourceUri");
- if (resourceUri == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
- }
- String linkerName =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "linkerName");
- if (linkerName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'linkers'.", id)));
- }
- return this.getWithResponse(resourceUri, linkerName, context);
- }
-
- public void deleteById(String id) {
- String resourceUri =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "resourceUri");
- if (resourceUri == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
- }
- String linkerName =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "linkerName");
- if (linkerName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'linkers'.", id)));
- }
- this.delete(resourceUri, linkerName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceUri =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "resourceUri");
- if (resourceUri == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
- }
- String linkerName =
- Utils
- .getValueFromIdByParameterName(
- id, "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", "linkerName");
- if (linkerName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'linkers'.", id)));
+ public SourceConfigurationResult listConfigurations(String resourceUri, String linkerName) {
+ SourceConfigurationResultInner inner = this.serviceClient().listConfigurations(resourceUri, linkerName);
+ if (inner != null) {
+ return new SourceConfigurationResultImpl(inner, this.manager());
+ } else {
+ return null;
}
- this.delete(resourceUri, linkerName, context);
}
private LinkersClient serviceClient() {
@@ -216,8 +77,4 @@ private LinkersClient serviceClient() {
private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
return this.serviceManager;
}
-
- public LinkerResourceImpl define(String name) {
- return new LinkerResourceImpl(name, this.manager());
- }
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/OperationsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/OperationsClientImpl.java
index fdd4c7907423..cc67e102d4dd 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/OperationsClientImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/OperationsClientImpl.java
@@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ServiceLinkerManagem")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.ServiceLinker/operations")
@ExpectedResponses({200})
@@ -202,7 +202,8 @@ public PagedIterable list(Context context) {
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -238,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ServiceLinkerManagementClientBuilder.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ServiceLinkerManagementClientBuilder.java
index 018b9b5b585e..c30cff560136 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ServiceLinkerManagementClientBuilder.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ServiceLinkerManagementClientBuilder.java
@@ -103,24 +103,21 @@ public ServiceLinkerManagementClientBuilder serializerAdapter(SerializerAdapter
* @return an instance of ServiceLinkerManagementClientImpl.
*/
public ServiceLinkerManagementClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
ServiceLinkerManagementClientImpl client =
new ServiceLinkerManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, endpoint);
+ localPipeline, localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint);
return client;
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/package-info.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/package-info.java
index 73895b04fbc5..34192f7fefa8 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/package-info.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the implementations for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider. */
+/** Package containing the implementations for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider asd. */
package com.azure.resourcemanager.servicelinker.implementation;
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java
index 765a8393e5c3..6fbeaa6925d4 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java
@@ -8,11 +8,20 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ActionType. */
+/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
public final class ActionType extends ExpandableStringEnum {
/** Static value Internal for ActionType. */
public static final ActionType INTERNAL = fromString("Internal");
+ /**
+ * Creates a new instance of ActionType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionType() {
+ }
+
/**
* Creates or finds a ActionType from its string representation.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthInfoBase.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthInfoBase.java
index d3a34302fdde..95bed09c4232 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthInfoBase.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthInfoBase.java
@@ -25,6 +25,10 @@
})
@Immutable
public class AuthInfoBase {
+ /** Creates an instance of AuthInfoBase class. */
+ public AuthInfoBase() {
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthType.java
index a14c2a2f7a81..5876247ee6f4 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthType.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AuthType.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for AuthType. */
+/** The authentication type. */
public final class AuthType extends ExpandableStringEnum {
/** Static value systemAssignedIdentity for AuthType. */
public static final AuthType SYSTEM_ASSIGNED_IDENTITY = fromString("systemAssignedIdentity");
@@ -25,6 +25,15 @@ public final class AuthType extends ExpandableStringEnum {
/** Static value secret for AuthType. */
public static final AuthType SECRET = fromString("secret");
+ /**
+ * Creates a new instance of AuthType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AuthType() {
+ }
+
/**
* Creates or finds a AuthType from its string representation.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureKeyVaultProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureKeyVaultProperties.java
index 41fdcf7777ab..493d701ad68f 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureKeyVaultProperties.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureKeyVaultProperties.java
@@ -20,6 +20,10 @@ public final class AzureKeyVaultProperties extends AzureResourcePropertiesBase {
@JsonProperty(value = "connectAsKubernetesCsiDriver")
private Boolean connectAsKubernetesCsiDriver;
+ /** Creates an instance of AzureKeyVaultProperties class. */
+ public AzureKeyVaultProperties() {
+ }
+
/**
* Get the connectAsKubernetesCsiDriver property: True if connect via Kubernetes CSI Driver.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResource.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResource.java
index 511c4257690e..6cfd5e5acdac 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResource.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResource.java
@@ -26,6 +26,10 @@ public final class AzureResource extends TargetServiceBase {
@JsonProperty(value = "resourceProperties")
private AzureResourcePropertiesBase resourceProperties;
+ /** Creates an instance of AzureResource class. */
+ public AzureResource() {
+ }
+
/**
* Get the id property: The Id of azure resource.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourcePropertiesBase.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourcePropertiesBase.java
index b551b18943dd..fda0034a37bd 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourcePropertiesBase.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourcePropertiesBase.java
@@ -19,6 +19,10 @@
@JsonSubTypes({@JsonSubTypes.Type(name = "KeyVault", value = AzureKeyVaultProperties.class)})
@Immutable
public class AzureResourcePropertiesBase {
+ /** Creates an instance of AzureResourcePropertiesBase class. */
+ public AzureResourcePropertiesBase() {
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourceType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourceType.java
index ab23f6c1abd4..5f1f136e0fa7 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourceType.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourceType.java
@@ -8,11 +8,20 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for AzureResourceType. */
+/** The azure resource type. */
public final class AzureResourceType extends ExpandableStringEnum {
/** Static value KeyVault for AzureResourceType. */
public static final AzureResourceType KEY_VAULT = fromString("KeyVault");
+ /**
+ * Creates a new instance of AzureResourceType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AzureResourceType() {
+ }
+
/**
* Creates or finds a AzureResourceType from its string representation.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ClientType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ClientType.java
deleted file mode 100644
index afad077739f2..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ClientType.java
+++ /dev/null
@@ -1,62 +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.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import java.util.Collection;
-
-/** Defines values for ClientType. */
-public final class ClientType extends ExpandableStringEnum {
- /** Static value none for ClientType. */
- public static final ClientType NONE = fromString("none");
-
- /** Static value dotnet for ClientType. */
- public static final ClientType DOTNET = fromString("dotnet");
-
- /** Static value java for ClientType. */
- public static final ClientType JAVA = fromString("java");
-
- /** Static value python for ClientType. */
- public static final ClientType PYTHON = fromString("python");
-
- /** Static value go for ClientType. */
- public static final ClientType GO = fromString("go");
-
- /** Static value php for ClientType. */
- public static final ClientType PHP = fromString("php");
-
- /** Static value ruby for ClientType. */
- public static final ClientType RUBY = fromString("ruby");
-
- /** Static value django for ClientType. */
- public static final ClientType DJANGO = fromString("django");
-
- /** Static value nodejs for ClientType. */
- public static final ClientType NODEJS = fromString("nodejs");
-
- /** Static value springBoot for ClientType. */
- public static final ClientType SPRING_BOOT = fromString("springBoot");
-
- /**
- * Creates or finds a ClientType from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding ClientType.
- */
- @JsonCreator
- public static ClientType fromString(String name) {
- return fromString(name, ClientType.class);
- }
-
- /**
- * Gets known ClientType values.
- *
- * @return known ClientType values.
- */
- public static Collection values() {
- return values(ClientType.class);
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentBootstrapServer.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentBootstrapServer.java
index 195d2c034554..53c9f1bbabb3 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentBootstrapServer.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentBootstrapServer.java
@@ -20,6 +20,10 @@ public final class ConfluentBootstrapServer extends TargetServiceBase {
@JsonProperty(value = "endpoint")
private String endpoint;
+ /** Creates an instance of ConfluentBootstrapServer class. */
+ public ConfluentBootstrapServer() {
+ }
+
/**
* Get the endpoint property: The endpoint of service.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentSchemaRegistry.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentSchemaRegistry.java
index 68321e5ebc96..6f67bb469857 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentSchemaRegistry.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ConfluentSchemaRegistry.java
@@ -20,6 +20,10 @@ public final class ConfluentSchemaRegistry extends TargetServiceBase {
@JsonProperty(value = "endpoint")
private String endpoint;
+ /** Creates an instance of ConfluentSchemaRegistry class. */
+ public ConfluentSchemaRegistry() {
+ }
+
/**
* Get the endpoint property: The endpoint of service.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretReferenceSecretInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretReferenceSecretInfo.java
index e3ff01f8b65e..98563f73dbf4 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretReferenceSecretInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretReferenceSecretInfo.java
@@ -29,6 +29,10 @@ public final class KeyVaultSecretReferenceSecretInfo extends SecretInfoBase {
@JsonProperty(value = "version")
private String version;
+ /** Creates an instance of KeyVaultSecretReferenceSecretInfo class. */
+ public KeyVaultSecretReferenceSecretInfo() {
+ }
+
/**
* Get the name property: Name of the Key Vault secret.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretUriSecretInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretUriSecretInfo.java
index c0d3e6cd3c9a..109036b10fcf 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretUriSecretInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/KeyVaultSecretUriSecretInfo.java
@@ -23,6 +23,10 @@ public final class KeyVaultSecretUriSecretInfo extends SecretInfoBase {
@JsonProperty(value = "value")
private String value;
+ /** Creates an instance of KeyVaultSecretUriSecretInfo class. */
+ public KeyVaultSecretUriSecretInfo() {
+ }
+
/**
* Get the value property: URI to the keyvault secret.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerList.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerList.java
deleted file mode 100644
index d3b63c7c0ba6..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerList.java
+++ /dev/null
@@ -1,77 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** The list of Linker. */
-@Fluent
-public final class LinkerList {
- /*
- * The link used to get the next page of Linker list.
- */
- @JsonProperty(value = "nextLink")
- private String nextLink;
-
- /*
- * The list of Linkers.
- */
- @JsonProperty(value = "value")
- private List value;
-
- /**
- * Get the nextLink property: The link used to get the next page of Linker list.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Set the nextLink property: The link used to get the next page of Linker list.
- *
- * @param nextLink the nextLink value to set.
- * @return the LinkerList object itself.
- */
- public LinkerList withNextLink(String nextLink) {
- this.nextLink = nextLink;
- return this;
- }
-
- /**
- * Get the value property: The list of Linkers.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: The list of Linkers.
- *
- * @param value the value value to set.
- * @return the LinkerList object itself.
- */
- public LinkerList withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerPatch.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerPatch.java
deleted file mode 100644
index 1328a8126e43..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerPatch.java
+++ /dev/null
@@ -1,186 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.servicelinker.fluent.models.LinkerProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** A linker to be updated. */
-@Fluent
-public final class LinkerPatch {
- /*
- * Linker properties
- */
- @JsonProperty(value = "properties")
- private LinkerProperties innerProperties;
-
- /**
- * Get the innerProperties property: Linker properties.
- *
- * @return the innerProperties value.
- */
- private LinkerProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the targetService property: The target service properties.
- *
- * @return the targetService value.
- */
- public TargetServiceBase targetService() {
- return this.innerProperties() == null ? null : this.innerProperties().targetService();
- }
-
- /**
- * Set the targetService property: The target service properties.
- *
- * @param targetService the targetService value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withTargetService(TargetServiceBase targetService) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withTargetService(targetService);
- return this;
- }
-
- /**
- * Get the authInfo property: The authentication type.
- *
- * @return the authInfo value.
- */
- public AuthInfoBase authInfo() {
- return this.innerProperties() == null ? null : this.innerProperties().authInfo();
- }
-
- /**
- * Set the authInfo property: The authentication type.
- *
- * @param authInfo the authInfo value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withAuthInfo(AuthInfoBase authInfo) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withAuthInfo(authInfo);
- return this;
- }
-
- /**
- * Get the clientType property: The application client type.
- *
- * @return the clientType value.
- */
- public ClientType clientType() {
- return this.innerProperties() == null ? null : this.innerProperties().clientType();
- }
-
- /**
- * Set the clientType property: The application client type.
- *
- * @param clientType the clientType value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withClientType(ClientType clientType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withClientType(clientType);
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the vNetSolution property: The VNet solution.
- *
- * @return the vNetSolution value.
- */
- public VNetSolution vNetSolution() {
- return this.innerProperties() == null ? null : this.innerProperties().vNetSolution();
- }
-
- /**
- * Set the vNetSolution property: The VNet solution.
- *
- * @param vNetSolution the vNetSolution value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withVNetSolution(VNetSolution vNetSolution) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withVNetSolution(vNetSolution);
- return this;
- }
-
- /**
- * Get the secretStore property: An option to store secret value in secure place.
- *
- * @return the secretStore value.
- */
- public SecretStore secretStore() {
- return this.innerProperties() == null ? null : this.innerProperties().secretStore();
- }
-
- /**
- * Set the secretStore property: An option to store secret value in secure place.
- *
- * @param secretStore the secretStore value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withSecretStore(SecretStore secretStore) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withSecretStore(secretStore);
- return this;
- }
-
- /**
- * Get the scope property: connection scope in source service.
- *
- * @return the scope value.
- */
- public String scope() {
- return this.innerProperties() == null ? null : this.innerProperties().scope();
- }
-
- /**
- * Set the scope property: connection scope in source service.
- *
- * @param scope the scope value to set.
- * @return the LinkerPatch object itself.
- */
- public LinkerPatch withScope(String scope) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LinkerProperties();
- }
- this.innerProperties().withScope(scope);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerResource.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerResource.java
deleted file mode 100644
index c98ee1fd3c03..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerResource.java
+++ /dev/null
@@ -1,351 +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.models;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
-
-/** An immutable client-side representation of LinkerResource. */
-public interface LinkerResource {
- /**
- * Gets the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- String id();
-
- /**
- * Gets the name property: The name of the resource.
- *
- * @return the name value.
- */
- String name();
-
- /**
- * Gets the type property: The type of the resource.
- *
- * @return the type value.
- */
- String type();
-
- /**
- * Gets the systemData property: The system data.
- *
- * @return the systemData value.
- */
- SystemData systemData();
-
- /**
- * Gets the targetService property: The target service properties.
- *
- * @return the targetService value.
- */
- TargetServiceBase targetService();
-
- /**
- * Gets the authInfo property: The authentication type.
- *
- * @return the authInfo value.
- */
- AuthInfoBase authInfo();
-
- /**
- * Gets the clientType property: The application client type.
- *
- * @return the clientType value.
- */
- ClientType clientType();
-
- /**
- * Gets the provisioningState property: The provisioning state.
- *
- * @return the provisioningState value.
- */
- String provisioningState();
-
- /**
- * Gets the vNetSolution property: The VNet solution.
- *
- * @return the vNetSolution value.
- */
- VNetSolution vNetSolution();
-
- /**
- * Gets the secretStore property: An option to store secret value in secure place.
- *
- * @return the secretStore value.
- */
- SecretStore secretStore();
-
- /**
- * Gets the scope property: connection scope in source service.
- *
- * @return the scope value.
- */
- String scope();
-
- /**
- * Gets the inner com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner object.
- *
- * @return the inner object.
- */
- LinkerResourceInner innerModel();
-
- /** The entirety of the LinkerResource definition. */
- interface Definition extends DefinitionStages.Blank, DefinitionStages.WithScopeStage, DefinitionStages.WithCreate {
- }
- /** The LinkerResource definition stages. */
- interface DefinitionStages {
- /** The first stage of the LinkerResource definition. */
- interface Blank extends WithScopeStage {
- }
- /** The stage of the LinkerResource definition allowing to specify parent resource. */
- interface WithScopeStage {
- /**
- * Specifies resourceUri.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @return the next definition stage.
- */
- WithCreate withExistingResourceUri(String resourceUri);
- }
- /**
- * The stage of the LinkerResource definition which contains all the minimum required properties for the
- * resource to be created, but also allows for any other optional properties to be specified.
- */
- interface WithCreate
- extends DefinitionStages.WithTargetService,
- DefinitionStages.WithAuthInfo,
- DefinitionStages.WithClientType,
- DefinitionStages.WithVNetSolution,
- DefinitionStages.WithSecretStore,
- DefinitionStages.WithScope {
- /**
- * Executes the create request.
- *
- * @return the created resource.
- */
- LinkerResource create();
-
- /**
- * Executes the create request.
- *
- * @param context The context to associate with this operation.
- * @return the created resource.
- */
- LinkerResource create(Context context);
- }
- /** The stage of the LinkerResource definition allowing to specify targetService. */
- interface WithTargetService {
- /**
- * Specifies the targetService property: The target service properties.
- *
- * @param targetService The target service properties.
- * @return the next definition stage.
- */
- WithCreate withTargetService(TargetServiceBase targetService);
- }
- /** The stage of the LinkerResource definition allowing to specify authInfo. */
- interface WithAuthInfo {
- /**
- * Specifies the authInfo property: The authentication type..
- *
- * @param authInfo The authentication type.
- * @return the next definition stage.
- */
- WithCreate withAuthInfo(AuthInfoBase authInfo);
- }
- /** The stage of the LinkerResource definition allowing to specify clientType. */
- interface WithClientType {
- /**
- * Specifies the clientType property: The application client type.
- *
- * @param clientType The application client type.
- * @return the next definition stage.
- */
- WithCreate withClientType(ClientType clientType);
- }
- /** The stage of the LinkerResource definition allowing to specify vNetSolution. */
- interface WithVNetSolution {
- /**
- * Specifies the vNetSolution property: The VNet solution..
- *
- * @param vNetSolution The VNet solution.
- * @return the next definition stage.
- */
- WithCreate withVNetSolution(VNetSolution vNetSolution);
- }
- /** The stage of the LinkerResource definition allowing to specify secretStore. */
- interface WithSecretStore {
- /**
- * Specifies the secretStore property: An option to store secret value in secure place.
- *
- * @param secretStore An option to store secret value in secure place.
- * @return the next definition stage.
- */
- WithCreate withSecretStore(SecretStore secretStore);
- }
- /** The stage of the LinkerResource definition allowing to specify scope. */
- interface WithScope {
- /**
- * Specifies the scope property: connection scope in source service..
- *
- * @param scope connection scope in source service.
- * @return the next definition stage.
- */
- WithCreate withScope(String scope);
- }
- }
- /**
- * Begins update for the LinkerResource resource.
- *
- * @return the stage of resource update.
- */
- LinkerResource.Update update();
-
- /** The template for LinkerResource update. */
- interface Update
- extends UpdateStages.WithTargetService,
- UpdateStages.WithAuthInfo,
- UpdateStages.WithClientType,
- UpdateStages.WithVNetSolution,
- UpdateStages.WithSecretStore,
- UpdateStages.WithScope {
- /**
- * Executes the update request.
- *
- * @return the updated resource.
- */
- LinkerResource apply();
-
- /**
- * Executes the update request.
- *
- * @param context The context to associate with this operation.
- * @return the updated resource.
- */
- LinkerResource apply(Context context);
- }
- /** The LinkerResource update stages. */
- interface UpdateStages {
- /** The stage of the LinkerResource update allowing to specify targetService. */
- interface WithTargetService {
- /**
- * Specifies the targetService property: The target service properties.
- *
- * @param targetService The target service properties.
- * @return the next definition stage.
- */
- Update withTargetService(TargetServiceBase targetService);
- }
- /** The stage of the LinkerResource update allowing to specify authInfo. */
- interface WithAuthInfo {
- /**
- * Specifies the authInfo property: The authentication type..
- *
- * @param authInfo The authentication type.
- * @return the next definition stage.
- */
- Update withAuthInfo(AuthInfoBase authInfo);
- }
- /** The stage of the LinkerResource update allowing to specify clientType. */
- interface WithClientType {
- /**
- * Specifies the clientType property: The application client type.
- *
- * @param clientType The application client type.
- * @return the next definition stage.
- */
- Update withClientType(ClientType clientType);
- }
- /** The stage of the LinkerResource update allowing to specify vNetSolution. */
- interface WithVNetSolution {
- /**
- * Specifies the vNetSolution property: The VNet solution..
- *
- * @param vNetSolution The VNet solution.
- * @return the next definition stage.
- */
- Update withVNetSolution(VNetSolution vNetSolution);
- }
- /** The stage of the LinkerResource update allowing to specify secretStore. */
- interface WithSecretStore {
- /**
- * Specifies the secretStore property: An option to store secret value in secure place.
- *
- * @param secretStore An option to store secret value in secure place.
- * @return the next definition stage.
- */
- Update withSecretStore(SecretStore secretStore);
- }
- /** The stage of the LinkerResource update allowing to specify scope. */
- interface WithScope {
- /**
- * Specifies the scope property: connection scope in source service..
- *
- * @param scope connection scope in source service.
- * @return the next definition stage.
- */
- Update withScope(String scope);
- }
- }
- /**
- * Refreshes the resource to sync with Azure.
- *
- * @return the refreshed resource.
- */
- LinkerResource refresh();
-
- /**
- * Refreshes the resource to sync with Azure.
- *
- * @param context The context to associate with this operation.
- * @return the refreshed resource.
- */
- LinkerResource refresh(Context context);
-
- /**
- * Validate a link.
- *
- * @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.
- */
- ValidateOperationResult validate();
-
- /**
- * Validate a link.
- *
- * @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.
- */
- ValidateOperationResult validate(Context context);
-
- /**
- * list source configurations for a linker.
- *
- * @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.
- */
- SourceConfigurationResult listConfigurations();
-
- /**
- * list source configurations for a linker.
- *
- * @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}.
- */
- Response listConfigurationsWithResponse(Context context);
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Linkers.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Linkers.java
index 745ca32af706..9c5d2c130b73 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Linkers.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Linkers.java
@@ -4,83 +4,11 @@
package com.azure.resourcemanager.servicelinker.models;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/** Resource collection API of Linkers. */
public interface Linkers {
- /**
- * 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.
- * @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}.
- */
- PagedIterable list(String resourceUri);
-
- /**
- * 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.
- * @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}.
- */
- PagedIterable list(String resourceUri, Context context);
-
- /**
- * Returns Linker resource for a given name.
- *
- * @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 linker of source and target resource.
- */
- LinkerResource get(String resourceUri, String linkerName);
-
- /**
- * Returns Linker resource for a given name.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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}.
- */
- Response getWithResponse(String resourceUri, String linkerName, Context context);
-
- /**
- * Delete 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.
- */
- void deleteByResourceGroup(String resourceUri, String linkerName);
-
- /**
- * Delete a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker 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.
- */
- void delete(String resourceUri, String linkerName, Context context);
-
/**
* Validate a link.
*
@@ -106,18 +34,6 @@ public interface Linkers {
*/
ValidateOperationResult validate(String resourceUri, String linkerName, Context context);
- /**
- * 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.
- * @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.
- */
- SourceConfigurationResult listConfigurations(String resourceUri, String linkerName);
-
/**
* list source configurations for a linker.
*
@@ -134,54 +50,14 @@ Response listConfigurationsWithResponse(
String resourceUri, String linkerName, Context context);
/**
- * Returns Linker resource for a given name.
- *
- * @param id the resource ID.
- * @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}.
- */
- LinkerResource getById(String id);
-
- /**
- * Returns Linker resource for a given name.
- *
- * @param id the resource ID.
- * @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}.
- */
- Response getByIdWithResponse(String id, Context context);
-
- /**
- * Delete a link.
- *
- * @param id the resource ID.
- * @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.
- */
- void deleteById(String id);
-
- /**
- * Delete a link.
+ * list source configurations for a linker.
*
- * @param id the resource ID.
- * @param context The context to associate with this operation.
+ * @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.
*/
- void deleteByIdWithResponse(String id, Context context);
-
- /**
- * Begins definition for a new LinkerResource resource.
- *
- * @param name resource name.
- * @return the first stage of the new LinkerResource definition.
- */
- LinkerResource.DefinitionStages.Blank define(String name);
+ SourceConfigurationResult listConfigurations(String resourceUri, String linkerName);
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationDisplay.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationDisplay.java
index 7def6a8572ed..b4e1c70f0a20 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationDisplay.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationDisplay.java
@@ -11,34 +11,36 @@
@Immutable
public final class OperationDisplay {
/*
- * The localized friendly form of the resource provider name, e.g.
- * "Microsoft Monitoring Insights" or "Microsoft Compute".
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
+ * Compute".
*/
@JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
private String provider;
/*
- * The localized friendly name of the resource type related to this
- * operation. E.g. "Virtual Machines" or "Job Schedule Collections".
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
+ * Schedule Collections".
*/
@JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
private String resource;
/*
- * The concise, localized friendly name for the operation; suitable for
- * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual
- * Machine".
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
+ * Machine", "Restart Virtual Machine".
*/
@JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
private String operation;
/*
- * The short, localized friendly description of the operation; suitable for
- * tool tips and detailed views.
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
+ /** Creates an instance of OperationDisplay class. */
+ public OperationDisplay() {
+ }
+
/**
* Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring
* Insights" or "Microsoft Compute".
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationListResult.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationListResult.java
index e67087ab4762..6df30ea4a846 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationListResult.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/OperationListResult.java
@@ -27,6 +27,10 @@ public final class OperationListResult {
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
+ /** Creates an instance of OperationListResult class. */
+ public OperationListResult() {
+ }
+
/**
* Get the value property: List of operations supported by the resource provider.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Origin.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Origin.java
index 4b62b0bbe7c9..09f6cc65e9e7 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Origin.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Origin.java
@@ -8,7 +8,10 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for Origin. */
+/**
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value
+ * is "user,system".
+ */
public final class Origin extends ExpandableStringEnum {
/** Static value user for Origin. */
public static final Origin USER = fromString("user");
@@ -19,6 +22,15 @@ public final class Origin extends ExpandableStringEnum {
/** Static value user,system for Origin. */
public static final Origin USER_SYSTEM = fromString("user,system");
+ /**
+ * Creates a new instance of Origin value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Origin() {
+ }
+
/**
* Creates or finds a Origin from its string representation.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretAuthInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretAuthInfo.java
index a3c86beaa531..4ba424a776e6 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretAuthInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretAuthInfo.java
@@ -26,6 +26,10 @@ public final class SecretAuthInfo extends AuthInfoBase {
@JsonProperty(value = "secretInfo")
private SecretInfoBase secretInfo;
+ /** Creates an instance of SecretAuthInfo class. */
+ public SecretAuthInfo() {
+ }
+
/**
* Get the name property: Username or account name for secret auth.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretInfoBase.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretInfoBase.java
index 1be6c07d0781..b743e1f91d00 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretInfoBase.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretInfoBase.java
@@ -23,6 +23,10 @@
})
@Immutable
public class SecretInfoBase {
+ /** Creates an instance of SecretInfoBase class. */
+ public SecretInfoBase() {
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretStore.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretStore.java
deleted file mode 100644
index 626bbf876330..000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretStore.java
+++ /dev/null
@@ -1,46 +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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** An option to store secret value in secure place. */
-@Fluent
-public final class SecretStore {
- /*
- * The key vault id to store secret
- */
- @JsonProperty(value = "keyVaultId")
- private String keyVaultId;
-
- /**
- * Get the keyVaultId property: The key vault id to store secret.
- *
- * @return the keyVaultId value.
- */
- public String keyVaultId() {
- return this.keyVaultId;
- }
-
- /**
- * Set the keyVaultId property: The key vault id to store secret.
- *
- * @param keyVaultId the keyVaultId value to set.
- * @return the SecretStore object itself.
- */
- public SecretStore withKeyVaultId(String keyVaultId) {
- this.keyVaultId = keyVaultId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretType.java
index 4d9a05cf41f7..32ecfb9774a9 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretType.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SecretType.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for SecretType. */
+/** The secret type. */
public final class SecretType extends ExpandableStringEnum {
/** Static value rawValue for SecretType. */
public static final SecretType RAW_VALUE = fromString("rawValue");
@@ -19,6 +19,15 @@ public final class SecretType extends ExpandableStringEnum {
/** Static value keyVaultSecretReference for SecretType. */
public static final SecretType KEY_VAULT_SECRET_REFERENCE = fromString("keyVaultSecretReference");
+ /**
+ * Creates a new instance of SecretType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public SecretType() {
+ }
+
/**
* Creates or finds a SecretType from its string representation.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalCertificateAuthInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalCertificateAuthInfo.java
index dc9e1d46c572..aece8fa84486 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalCertificateAuthInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalCertificateAuthInfo.java
@@ -33,6 +33,10 @@ public final class ServicePrincipalCertificateAuthInfo extends AuthInfoBase {
@JsonProperty(value = "certificate", required = true)
private String certificate;
+ /** Creates an instance of ServicePrincipalCertificateAuthInfo class. */
+ public ServicePrincipalCertificateAuthInfo() {
+ }
+
/**
* Get the clientId property: Application clientId for servicePrincipal auth.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalSecretAuthInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalSecretAuthInfo.java
index 97ccd04b48fc..077c1835ac77 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalSecretAuthInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ServicePrincipalSecretAuthInfo.java
@@ -33,6 +33,10 @@ public final class ServicePrincipalSecretAuthInfo extends AuthInfoBase {
@JsonProperty(value = "secret", required = true)
private String secret;
+ /** Creates an instance of ServicePrincipalSecretAuthInfo class. */
+ public ServicePrincipalSecretAuthInfo() {
+ }
+
/**
* Get the clientId property: ServicePrincipal application clientId for servicePrincipal auth.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SourceConfiguration.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SourceConfiguration.java
index 3311bebb78d6..38f0c9ae66a7 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SourceConfiguration.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SourceConfiguration.java
@@ -22,6 +22,10 @@ public final class SourceConfiguration {
@JsonProperty(value = "value")
private String value;
+ /** Creates an instance of SourceConfiguration class. */
+ public SourceConfiguration() {
+ }
+
/**
* Get the name property: The name of setting.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SystemAssignedIdentityAuthInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SystemAssignedIdentityAuthInfo.java
index 2548428a6cd9..151165a6ef28 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SystemAssignedIdentityAuthInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/SystemAssignedIdentityAuthInfo.java
@@ -13,6 +13,10 @@
@JsonTypeName("systemAssignedIdentity")
@Immutable
public final class SystemAssignedIdentityAuthInfo extends AuthInfoBase {
+ /** Creates an instance of SystemAssignedIdentityAuthInfo class. */
+ public SystemAssignedIdentityAuthInfo() {
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceBase.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceBase.java
index 1238b95ce799..7b8501891a02 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceBase.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceBase.java
@@ -23,6 +23,10 @@
})
@Immutable
public class TargetServiceBase {
+ /** Creates an instance of TargetServiceBase class. */
+ public TargetServiceBase() {
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceType.java
index 4d11eaf03f4b..5945c0883f3b 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceType.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceType.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for TargetServiceType. */
+/** The target service type. */
public final class TargetServiceType extends ExpandableStringEnum {
/** Static value AzureResource for TargetServiceType. */
public static final TargetServiceType AZURE_RESOURCE = fromString("AzureResource");
@@ -19,6 +19,15 @@ public final class TargetServiceType extends ExpandableStringEnum {
- /** Static value serviceEndpoint for VNetSolutionType. */
- public static final VNetSolutionType SERVICE_ENDPOINT = fromString("serviceEndpoint");
-
- /** Static value privateLink for VNetSolutionType. */
- public static final VNetSolutionType PRIVATE_LINK = fromString("privateLink");
-
- /**
- * Creates or finds a VNetSolutionType from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding VNetSolutionType.
- */
- @JsonCreator
- public static VNetSolutionType fromString(String name) {
- return fromString(name, VNetSolutionType.class);
- }
-
- /**
- * Gets known VNetSolutionType values.
- *
- * @return known VNetSolutionType values.
- */
- public static Collection values() {
- return values(VNetSolutionType.class);
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultItem.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultItem.java
index 5596845415ce..639705678b73 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultItem.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultItem.java
@@ -40,6 +40,10 @@ public final class ValidationResultItem {
@JsonProperty(value = "errorCode")
private String errorCode;
+ /** Creates an instance of ValidationResultItem class. */
+ public ValidationResultItem() {
+ }
+
/**
* Get the name property: The validation item name.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java
index 46a6ba0f4b6d..e75ad06e5e1b 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ValidationResultStatus. */
+/** The result of validation. */
public final class ValidationResultStatus extends ExpandableStringEnum {
/** Static value success for ValidationResultStatus. */
public static final ValidationResultStatus SUCCESS = fromString("success");
@@ -19,6 +19,15 @@ public final class ValidationResultStatus extends ExpandableStringEnum