listConfigurationsWithResponse(
- String resourceUri, String linkerName, Context context);
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
index 44ef47e9ee44d..e79dbd6fde594 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
@@ -57,6 +57,10 @@ public final class LinkerProperties {
@JsonProperty(value = "scope")
private String scope;
+ /** Creates an instance of LinkerProperties class. */
+ public LinkerProperties() {
+ }
+
/**
* Get the targetService property: The target service properties.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
index 44f17614df63e..d65d69ead96da 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
@@ -30,6 +30,10 @@ public final class LinkerResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of LinkerResourceInner class. */
+ public LinkerResourceInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the linker.
*
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 3d520cb77233f..e9d065fb7e7af 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 aa517497546a6..013cf122cc92b 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
deleted file mode 100644
index 5d622571c49f3..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
+++ /dev/null
@@ -1,278 +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.AuthType;
-import com.azure.resourcemanager.servicelinker.models.ValidationResultItem;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-
-/** The validation operation result for a linker. */
-@Fluent
-public final class ValidateOperationResultInner {
- /*
- * The validation result detail.
- */
- @JsonProperty(value = "properties")
- private ValidateResult innerProperties;
-
- /*
- * Validated linker id.
- */
- @JsonProperty(value = "resourceId")
- private String resourceId;
-
- /*
- * Validation operation status.
- */
- @JsonProperty(value = "status")
- private String status;
-
- /**
- * Get the innerProperties property: The validation result detail.
- *
- * @return the innerProperties value.
- */
- private ValidateResult innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the resourceId property: Validated linker id.
- *
- * @return the resourceId value.
- */
- public String resourceId() {
- return this.resourceId;
- }
-
- /**
- * Set the resourceId property: Validated linker id.
- *
- * @param resourceId the resourceId value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withResourceId(String resourceId) {
- this.resourceId = resourceId;
- return this;
- }
-
- /**
- * Get the status property: Validation operation status.
- *
- * @return the status value.
- */
- public String status() {
- return this.status;
- }
-
- /**
- * Set the status property: Validation operation status.
- *
- * @param status the status value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withStatus(String status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get the linkerName property: The linker name.
- *
- * @return the linkerName value.
- */
- public String linkerName() {
- return this.innerProperties() == null ? null : this.innerProperties().linkerName();
- }
-
- /**
- * Set the linkerName property: The linker name.
- *
- * @param linkerName the linkerName value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withLinkerName(String linkerName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withLinkerName(linkerName);
- return this;
- }
-
- /**
- * Get the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
- * @return the isConnectionAvailable value.
- */
- public Boolean isConnectionAvailable() {
- return this.innerProperties() == null ? null : this.innerProperties().isConnectionAvailable();
- }
-
- /**
- * Set the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
- * @param isConnectionAvailable the isConnectionAvailable value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withIsConnectionAvailable(Boolean isConnectionAvailable) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withIsConnectionAvailable(isConnectionAvailable);
- return this;
- }
-
- /**
- * Get the reportStartTimeUtc property: The start time of the validation report.
- *
- * @return the reportStartTimeUtc value.
- */
- public OffsetDateTime reportStartTimeUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().reportStartTimeUtc();
- }
-
- /**
- * Set the reportStartTimeUtc property: The start time of the validation report.
- *
- * @param reportStartTimeUtc the reportStartTimeUtc value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withReportStartTimeUtc(OffsetDateTime reportStartTimeUtc) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withReportStartTimeUtc(reportStartTimeUtc);
- return this;
- }
-
- /**
- * Get the reportEndTimeUtc property: The end time of the validation report.
- *
- * @return the reportEndTimeUtc value.
- */
- public OffsetDateTime reportEndTimeUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().reportEndTimeUtc();
- }
-
- /**
- * Set the reportEndTimeUtc property: The end time of the validation report.
- *
- * @param reportEndTimeUtc the reportEndTimeUtc value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withReportEndTimeUtc(reportEndTimeUtc);
- return this;
- }
-
- /**
- * Get the sourceId property: The resource id of the linker source application.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().sourceId();
- }
-
- /**
- * Set the sourceId property: The resource id of the linker source application.
- *
- * @param sourceId the sourceId value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withSourceId(String sourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withSourceId(sourceId);
- return this;
- }
-
- /**
- * Get the targetId property: The resource Id of target service.
- *
- * @return the targetId value.
- */
- public String targetId() {
- return this.innerProperties() == null ? null : this.innerProperties().targetId();
- }
-
- /**
- * Set the targetId property: The resource Id of target service.
- *
- * @param targetId the targetId value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withTargetId(String targetId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withTargetId(targetId);
- return this;
- }
-
- /**
- * Get the authType property: The authentication type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.innerProperties() == null ? null : this.innerProperties().authType();
- }
-
- /**
- * Set the authType property: The authentication type.
- *
- * @param authType the authType value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withAuthType(AuthType authType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withAuthType(authType);
- return this;
- }
-
- /**
- * Get the validationDetail property: The detail of validation result.
- *
- * @return the validationDetail value.
- */
- public List validationDetail() {
- return this.innerProperties() == null ? null : this.innerProperties().validationDetail();
- }
-
- /**
- * Set the validationDetail property: The detail of validation result.
- *
- * @param validationDetail the validationDetail value to set.
- * @return the ValidateOperationResultInner object itself.
- */
- public ValidateOperationResultInner withValidationDetail(List validationDetail) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateResult();
- }
- this.innerProperties().withValidationDetail(validationDetail);
- 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/fluent/models/ValidateResult.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
deleted file mode 100644
index 77eda44f84be9..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java
+++ /dev/null
@@ -1,235 +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.AuthType;
-import com.azure.resourcemanager.servicelinker.models.ValidationResultItem;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-
-/** The validation result for a linker. */
-@Fluent
-public final class ValidateResult {
- /*
- * The linker name.
- */
- @JsonProperty(value = "linkerName")
- private String linkerName;
-
- /*
- * A boolean value indicating whether the connection is available or not
- */
- @JsonProperty(value = "isConnectionAvailable")
- private Boolean isConnectionAvailable;
-
- /*
- * The start time of the validation report.
- */
- @JsonProperty(value = "reportStartTimeUtc")
- private OffsetDateTime reportStartTimeUtc;
-
- /*
- * The end time of the validation report.
- */
- @JsonProperty(value = "reportEndTimeUtc")
- private OffsetDateTime reportEndTimeUtc;
-
- /*
- * The resource id of the linker source application.
- */
- @JsonProperty(value = "sourceId")
- private String sourceId;
-
- /*
- * The resource Id of target service.
- */
- @JsonProperty(value = "targetId")
- private String targetId;
-
- /*
- * The authentication type.
- */
- @JsonProperty(value = "authType")
- private AuthType authType;
-
- /*
- * The detail of validation result
- */
- @JsonProperty(value = "validationDetail")
- private List validationDetail;
-
- /**
- * Get the linkerName property: The linker name.
- *
- * @return the linkerName value.
- */
- public String linkerName() {
- return this.linkerName;
- }
-
- /**
- * Set the linkerName property: The linker name.
- *
- * @param linkerName the linkerName value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withLinkerName(String linkerName) {
- this.linkerName = linkerName;
- return this;
- }
-
- /**
- * Get the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
- * @return the isConnectionAvailable value.
- */
- public Boolean isConnectionAvailable() {
- return this.isConnectionAvailable;
- }
-
- /**
- * Set the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
- * @param isConnectionAvailable the isConnectionAvailable value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withIsConnectionAvailable(Boolean isConnectionAvailable) {
- this.isConnectionAvailable = isConnectionAvailable;
- return this;
- }
-
- /**
- * Get the reportStartTimeUtc property: The start time of the validation report.
- *
- * @return the reportStartTimeUtc value.
- */
- public OffsetDateTime reportStartTimeUtc() {
- return this.reportStartTimeUtc;
- }
-
- /**
- * Set the reportStartTimeUtc property: The start time of the validation report.
- *
- * @param reportStartTimeUtc the reportStartTimeUtc value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withReportStartTimeUtc(OffsetDateTime reportStartTimeUtc) {
- this.reportStartTimeUtc = reportStartTimeUtc;
- return this;
- }
-
- /**
- * Get the reportEndTimeUtc property: The end time of the validation report.
- *
- * @return the reportEndTimeUtc value.
- */
- public OffsetDateTime reportEndTimeUtc() {
- return this.reportEndTimeUtc;
- }
-
- /**
- * Set the reportEndTimeUtc property: The end time of the validation report.
- *
- * @param reportEndTimeUtc the reportEndTimeUtc value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) {
- this.reportEndTimeUtc = reportEndTimeUtc;
- return this;
- }
-
- /**
- * Get the sourceId property: The resource id of the linker source application.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.sourceId;
- }
-
- /**
- * Set the sourceId property: The resource id of the linker source application.
- *
- * @param sourceId the sourceId value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withSourceId(String sourceId) {
- this.sourceId = sourceId;
- return this;
- }
-
- /**
- * Get the targetId property: The resource Id of target service.
- *
- * @return the targetId value.
- */
- public String targetId() {
- return this.targetId;
- }
-
- /**
- * Set the targetId property: The resource Id of target service.
- *
- * @param targetId the targetId value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withTargetId(String targetId) {
- this.targetId = targetId;
- return this;
- }
-
- /**
- * Get the authType property: The authentication type.
- *
- * @return the authType value.
- */
- public AuthType authType() {
- return this.authType;
- }
-
- /**
- * Set the authType property: The authentication type.
- *
- * @param authType the authType value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withAuthType(AuthType authType) {
- this.authType = authType;
- return this;
- }
-
- /**
- * Get the validationDetail property: The detail of validation result.
- *
- * @return the validationDetail value.
- */
- public List validationDetail() {
- return this.validationDetail;
- }
-
- /**
- * Set the validationDetail property: The detail of validation result.
- *
- * @param validationDetail the validationDetail value to set.
- * @return the ValidateResult object itself.
- */
- public ValidateResult withValidationDetail(List validationDetail) {
- this.validationDetail = validationDetail;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (validationDetail() != null) {
- validationDetail().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
index c8fff03eab9ad..ec25839104073 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkerResourceImpl.java
@@ -16,7 +16,6 @@
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;
@@ -161,22 +160,14 @@ public LinkerResource refresh(Context context) {
return this;
}
- public ValidateOperationResult validate() {
- return serviceManager.linkers().validate(resourceUri, linkerName);
- }
-
- public ValidateOperationResult validate(Context context) {
- return serviceManager.linkers().validate(resourceUri, linkerName, context);
+ public Response listConfigurationsWithResponse(Context context) {
+ return serviceManager.linkers().listConfigurationsWithResponse(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);
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 033bdccd23820..7828bf392707b 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
@@ -36,7 +36,6 @@
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;
@@ -67,7 +66,7 @@ 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})
@@ -129,18 +128,6 @@ Mono>> update(
@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})
@@ -389,14 +376,15 @@ private Mono getAsync(String resourceUri, String linkerName
*
* @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.
+ * @return linker of source and target resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public LinkerResourceInner get(String resourceUri, String linkerName) {
- return getAsync(resourceUri, linkerName).block();
+ public Response getWithResponse(String resourceUri, String linkerName, Context context) {
+ return getWithResponseAsync(resourceUri, linkerName, context).block();
}
/**
@@ -404,15 +392,14 @@ public LinkerResourceInner get(String resourceUri, String linkerName) {
*
* @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}.
+ * @return linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceUri, String linkerName, Context context) {
- return getWithResponseAsync(resourceUri, linkerName, context).block();
+ public LinkerResourceInner get(String resourceUri, String linkerName) {
+ return getWithResponse(resourceUri, linkerName, Context.NONE).getValue();
}
/**
@@ -572,7 +559,7 @@ private PollerFlux, LinkerResourceInner> beginCr
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, LinkerResourceInner> beginCreateOrUpdate(
String resourceUri, String linkerName, LinkerResourceInner parameters) {
- return beginCreateOrUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
}
/**
@@ -590,7 +577,7 @@ public SyncPoller, LinkerResourceInner> beginCre
@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();
+ return this.beginCreateOrUpdateAsync(resourceUri, linkerName, parameters, context).getSyncPoller();
}
/**
@@ -789,7 +776,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceUri, String linkerName) {
- return beginDeleteAsync(resourceUri, linkerName).getSyncPoller();
+ return this.beginDeleteAsync(resourceUri, linkerName).getSyncPoller();
}
/**
@@ -805,7 +792,7 @@ public SyncPoller, Void> beginDelete(String resourceUri, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceUri, String linkerName, Context context) {
- return beginDeleteAsync(resourceUri, linkerName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceUri, linkerName, context).getSyncPoller();
}
/**
@@ -1024,7 +1011,7 @@ private PollerFlux, LinkerResourceInner> beginUp
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, LinkerResourceInner> beginUpdate(
String resourceUri, String linkerName, LinkerPatch parameters) {
- return beginUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
+ return this.beginUpdateAsync(resourceUri, linkerName, parameters).getSyncPoller();
}
/**
@@ -1042,7 +1029,7 @@ public SyncPoller, LinkerResourceInner> beginUpd
@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();
+ return this.beginUpdateAsync(resourceUri, linkerName, parameters, context).getSyncPoller();
}
/**
@@ -1116,226 +1103,6 @@ public LinkerResourceInner update(String resourceUri, String linkerName, LinkerP
return updateAsync(resourceUri, linkerName, parameters, context).block();
}
- /**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the validation operation result for a linker along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> validateWithResponseAsync(String 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
- .validate(
- this.client.getEndpoint(),
- resourceUri,
- this.client.getApiVersion(),
- linkerName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Validate 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 validation operation result for a linker along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> validateWithResponseAsync(
- 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
- .validate(this.client.getEndpoint(), resourceUri, this.client.getApiVersion(), linkerName, accept, context);
- }
-
- /**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of the validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ValidateOperationResultInner> beginValidateAsync(
- String resourceUri, String linkerName) {
- Mono>> mono = validateWithResponseAsync(resourceUri, linkerName);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ValidateOperationResultInner.class,
- ValidateOperationResultInner.class,
- this.client.getContext());
- }
-
- /**
- * Validate 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 the validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ValidateOperationResultInner> beginValidateAsync(
- String resourceUri, String linkerName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = validateWithResponseAsync(resourceUri, linkerName, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ValidateOperationResultInner.class,
- ValidateOperationResultInner.class,
- context);
- }
-
- /**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ValidateOperationResultInner> beginValidate(
- String resourceUri, String linkerName) {
- return beginValidateAsync(resourceUri, linkerName).getSyncPoller();
- }
-
- /**
- * Validate 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 the validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ValidateOperationResultInner> beginValidate(
- String resourceUri, String linkerName, Context context) {
- return beginValidateAsync(resourceUri, linkerName, context).getSyncPoller();
- }
-
- /**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the validation operation result for a linker on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono validateAsync(String resourceUri, String linkerName) {
- return beginValidateAsync(resourceUri, linkerName).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Validate 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 validation operation result for a linker on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono validateAsync(String resourceUri, String linkerName, Context context) {
- return beginValidateAsync(resourceUri, linkerName, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateOperationResultInner validate(String resourceUri, String linkerName) {
- return validateAsync(resourceUri, linkerName).block();
- }
-
- /**
- * Validate 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 validation operation result for a linker.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateOperationResultInner validate(String resourceUri, String linkerName, Context context) {
- return validateAsync(resourceUri, linkerName, context).block();
- }
-
/**
* list source configurations for a linker.
*
@@ -1433,14 +1200,17 @@ private Mono listConfigurationsAsync(String reso
*
* @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 configurations for source resource, include appSettings, connectionString and serviceBindings.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName) {
- return listConfigurationsAsync(resourceUri, linkerName).block();
+ public Response listConfigurationsWithResponse(
+ String resourceUri, String linkerName, Context context) {
+ return listConfigurationsWithResponseAsync(resourceUri, linkerName, context).block();
}
/**
@@ -1448,23 +1218,21 @@ public SourceConfigurationResultInner listConfigurations(String resourceUri, Str
*
* @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
- * {@link Response}.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response listConfigurationsWithResponse(
- String resourceUri, String linkerName, Context context) {
- return listConfigurationsWithResponseAsync(resourceUri, linkerName, context).block();
+ public SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName) {
+ return listConfigurationsWithResponse(resourceUri, linkerName, Context.NONE).getValue();
}
/**
* 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.
@@ -1499,7 +1267,8 @@ private Mono> listNextSinglePageAsync(String
/**
* 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/LinkersImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/LinkersImpl.java
index 75322fa6ef05b..67426e86bf683 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
@@ -12,11 +12,9 @@
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;
public final class LinkersImpl implements Linkers {
private static final ClientLogger LOGGER = new ClientLogger(LinkersImpl.class);
@@ -41,15 +39,6 @@ public PagedIterable list(String resourceUri, Context 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) {
@@ -63,39 +52,21 @@ public Response getWithResponse(String resourceUri, String linke
}
}
- 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);
+ public LinkerResource get(String resourceUri, String linkerName) {
+ LinkerResourceInner inner = this.serviceClient().get(resourceUri, linkerName);
if (inner != null) {
- return new ValidateOperationResultImpl(inner, this.manager());
+ return new LinkerResourceImpl(inner, this.manager());
} else {
return null;
}
}
- public ValidateOperationResult validate(String resourceUri, String linkerName, Context context) {
- ValidateOperationResultInner inner = this.serviceClient().validate(resourceUri, linkerName, context);
- if (inner != null) {
- return new ValidateOperationResultImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void deleteByResourceGroup(String resourceUri, String linkerName) {
+ this.serviceClient().delete(resourceUri, linkerName);
}
- 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 void delete(String resourceUri, String linkerName, Context context) {
+ this.serviceClient().delete(resourceUri, linkerName, context);
}
public Response listConfigurationsWithResponse(
@@ -113,6 +84,15 @@ public Response listConfigurationsWithResponse(
}
}
+ 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 LinkerResource getById(String id) {
String resourceUri =
Utils
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 fdd4c7907423a..cc67e102d4dd5 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 018b9b5b585ee..c30cff5601362 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/ValidateOperationResultImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateOperationResultImpl.java
deleted file mode 100644
index b6b84aaf65973..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateOperationResultImpl.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.servicelinker.implementation;
-
-import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
-import com.azure.resourcemanager.servicelinker.models.AuthType;
-import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult;
-import com.azure.resourcemanager.servicelinker.models.ValidationResultItem;
-import java.time.OffsetDateTime;
-import java.util.Collections;
-import java.util.List;
-
-public final class ValidateOperationResultImpl implements ValidateOperationResult {
- private ValidateOperationResultInner innerObject;
-
- private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
-
- ValidateOperationResultImpl(
- ValidateOperationResultInner innerObject,
- com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String resourceId() {
- return this.innerModel().resourceId();
- }
-
- public String status() {
- return this.innerModel().status();
- }
-
- public String linkerName() {
- return this.innerModel().linkerName();
- }
-
- public Boolean isConnectionAvailable() {
- return this.innerModel().isConnectionAvailable();
- }
-
- public OffsetDateTime reportStartTimeUtc() {
- return this.innerModel().reportStartTimeUtc();
- }
-
- public OffsetDateTime reportEndTimeUtc() {
- return this.innerModel().reportEndTimeUtc();
- }
-
- public String sourceId() {
- return this.innerModel().sourceId();
- }
-
- public String targetId() {
- return this.innerModel().targetId();
- }
-
- public AuthType authType() {
- return this.innerModel().authType();
- }
-
- public List validationDetail() {
- List inner = this.innerModel().validationDetail();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public ValidateOperationResultInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ActionType.java
index 765a8393e5c38..6fbeaa6925d4d 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 d3a34302fddee..95bed09c42324 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 a14c2a2f7a813..5876247ee6f4a 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 41fdcf7777ab8..493d701ad68f1 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 511c4257690e4..6cfd5e5acdac0 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 b551b18943ddf..fda0034a37bd9 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 ab23f6c1abd40..5f1f136e0fa7b 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
index afad077739f20..f8163779510aa 100644
--- 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
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ClientType. */
+/** The application client type. */
public final class ClientType extends ExpandableStringEnum {
/** Static value none for ClientType. */
public static final ClientType NONE = fromString("none");
@@ -40,6 +40,18 @@ public final class ClientType extends ExpandableStringEnum {
/** Static value springBoot for ClientType. */
public static final ClientType SPRING_BOOT = fromString("springBoot");
+ /** Static value kafka-springBoot for ClientType. */
+ public static final ClientType KAFKA_SPRING_BOOT = fromString("kafka-springBoot");
+
+ /**
+ * Creates a new instance of ClientType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ClientType() {
+ }
+
/**
* Creates or finds a ClientType from its string representation.
*
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 195d2c0345541..53c9f1bbabb34 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 68321e5ebc965..6f67bb4698576 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 e3ff01f8b65e0..98563f73dbf4e 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 c0d3e6cd3c9af..109036b10fcfa 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
index d3b63c7c0ba6e..81353c0052ba4 100644
--- 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
@@ -24,6 +24,10 @@ public final class LinkerList {
@JsonProperty(value = "value")
private List value;
+ /** Creates an instance of LinkerList class. */
+ public LinkerList() {
+ }
+
/**
* Get the nextLink property: The link used to get the next page of Linker list.
*
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
index 1328a8126e437..81be7ac2e3bab 100644
--- 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
@@ -17,6 +17,10 @@ public final class LinkerPatch {
@JsonProperty(value = "properties")
private LinkerProperties innerProperties;
+ /** Creates an instance of LinkerPatch class. */
+ public LinkerPatch() {
+ }
+
/**
* Get the innerProperties property: Linker properties.
*
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
index c98ee1fd3c031..53d2f15e89e1d 100644
--- 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
@@ -309,24 +309,16 @@ interface WithScope {
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.
+ * 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 the validation operation result for a linker.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
*/
- ValidateOperationResult validate(Context context);
+ Response listConfigurationsWithResponse(Context context);
/**
* list source configurations for a linker.
@@ -336,16 +328,4 @@ interface WithScope {
* @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 745ca32af7063..6f8ea6dfe7e8f 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
@@ -38,25 +38,25 @@ public interface Linkers {
*
* @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.
+ * @return linker of source and target resource along with {@link Response}.
*/
- LinkerResource get(String resourceUri, String linkerName);
+ Response getWithResponse(String resourceUri, String linkerName, 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.
- * @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}.
+ * @return linker of source and target resource.
*/
- Response getWithResponse(String resourceUri, String linkerName, Context context);
+ LinkerResource get(String resourceUri, String linkerName);
/**
* Delete a link.
@@ -82,19 +82,7 @@ public interface Linkers {
void delete(String resourceUri, String linkerName, Context context);
/**
- * Validate a link.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
- * @param linkerName The name Linker resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the validation operation result for a linker.
- */
- ValidateOperationResult validate(String resourceUri, String linkerName);
-
- /**
- * Validate a link.
+ * 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.
@@ -102,9 +90,11 @@ public interface Linkers {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the validation operation result for a linker.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
*/
- ValidateOperationResult validate(String resourceUri, String linkerName, Context context);
+ Response listConfigurationsWithResponse(
+ String resourceUri, String linkerName, Context context);
/**
* list source configurations for a linker.
@@ -118,21 +108,6 @@ public interface Linkers {
*/
SourceConfigurationResult listConfigurations(String resourceUri, String linkerName);
- /**
- * 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.
- * @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(
- String resourceUri, String linkerName, Context context);
-
/**
* Returns Linker resource for a given name.
*
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 7def6a8572eda..b4e1c70f0a204 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 e67087ab4762f..6df30ea4a846f 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 4b62b0bbe7c92..09f6cc65e9e79 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 a3c86beaa5312..4ba424a776e63 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 1be6c07d07818..b743e1f91d00d 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
index 626bbf8763302..84f4a2f8334e1 100644
--- 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
@@ -16,6 +16,10 @@ public final class SecretStore {
@JsonProperty(value = "keyVaultId")
private String keyVaultId;
+ /** Creates an instance of SecretStore class. */
+ public SecretStore() {
+ }
+
/**
* Get the keyVaultId property: The key vault id to store secret.
*
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 4d9a05cf41f7c..32ecfb9774a98 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 dc9e1d46c5726..aece8fa844869 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 97ccd04b48fce..077c1835ac778 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 3311bebb78d66..38f0c9ae66a7f 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 2548428a6cd9d..151165a6ef286 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 1238b95ce7994..7b8501891a02c 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 4d11eaf03f4bc..5945c0883f3bd 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");
@@ -16,6 +16,15 @@ public final class VNetSolutionType extends ExpandableStringEnum validationDetail();
-
- /**
- * Gets the inner com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner object.
- *
- * @return the inner object.
- */
- ValidateOperationResultInner innerModel();
-}
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
deleted file mode 100644
index 5596845415cef..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultItem.java
+++ /dev/null
@@ -1,150 +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;
-
-/** The validation item for a linker. */
-@Fluent
-public final class ValidationResultItem {
- /*
- * The validation item name.
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * The display name of validation item
- */
- @JsonProperty(value = "description")
- private String description;
-
- /*
- * The result of validation
- */
- @JsonProperty(value = "result")
- private ValidationResultStatus result;
-
- /*
- * The error message of validation result
- */
- @JsonProperty(value = "errorMessage")
- private String errorMessage;
-
- /*
- * The error code of validation result
- */
- @JsonProperty(value = "errorCode")
- private String errorCode;
-
- /**
- * Get the name property: The validation item name.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The validation item name.
- *
- * @param name the name value to set.
- * @return the ValidationResultItem object itself.
- */
- public ValidationResultItem withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the description property: The display name of validation item.
- *
- * @return the description value.
- */
- public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: The display name of validation item.
- *
- * @param description the description value to set.
- * @return the ValidationResultItem object itself.
- */
- public ValidationResultItem withDescription(String description) {
- this.description = description;
- return this;
- }
-
- /**
- * Get the result property: The result of validation.
- *
- * @return the result value.
- */
- public ValidationResultStatus result() {
- return this.result;
- }
-
- /**
- * Set the result property: The result of validation.
- *
- * @param result the result value to set.
- * @return the ValidationResultItem object itself.
- */
- public ValidationResultItem withResult(ValidationResultStatus result) {
- this.result = result;
- return this;
- }
-
- /**
- * Get the errorMessage property: The error message of validation result.
- *
- * @return the errorMessage value.
- */
- public String errorMessage() {
- return this.errorMessage;
- }
-
- /**
- * Set the errorMessage property: The error message of validation result.
- *
- * @param errorMessage the errorMessage value to set.
- * @return the ValidationResultItem object itself.
- */
- public ValidationResultItem withErrorMessage(String errorMessage) {
- this.errorMessage = errorMessage;
- return this;
- }
-
- /**
- * Get the errorCode property: The error code of validation result.
- *
- * @return the errorCode value.
- */
- public String errorCode() {
- return this.errorCode;
- }
-
- /**
- * Set the errorCode property: The error code of validation result.
- *
- * @param errorCode the errorCode value to set.
- * @return the ValidationResultItem object itself.
- */
- public ValidationResultItem withErrorCode(String errorCode) {
- this.errorCode = errorCode;
- 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/ValidationResultStatus.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java
deleted file mode 100644
index 46a6ba0f4b6dd..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java
+++ /dev/null
@@ -1,41 +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 ValidationResultStatus. */
-public final class ValidationResultStatus extends ExpandableStringEnum {
- /** Static value success for ValidationResultStatus. */
- public static final ValidationResultStatus SUCCESS = fromString("success");
-
- /** Static value failure for ValidationResultStatus. */
- public static final ValidationResultStatus FAILURE = fromString("failure");
-
- /** Static value warning for ValidationResultStatus. */
- public static final ValidationResultStatus WARNING = fromString("warning");
-
- /**
- * Creates or finds a ValidationResultStatus from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding ValidationResultStatus.
- */
- @JsonCreator
- public static ValidationResultStatus fromString(String name) {
- return fromString(name, ValidationResultStatus.class);
- }
-
- /**
- * Gets known ValidationResultStatus values.
- *
- * @return known ValidationResultStatus values.
- */
- public static Collection values() {
- return values(ValidationResultStatus.class);
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValueSecretInfo.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValueSecretInfo.java
index 67c09bd77d971..9fa9851066336 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValueSecretInfo.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValueSecretInfo.java
@@ -20,6 +20,10 @@ public final class ValueSecretInfo extends SecretInfoBase {
@JsonProperty(value = "value")
private String value;
+ /** Creates an instance of ValueSecretInfo class. */
+ public ValueSecretInfo() {
+ }
+
/**
* Get the value property: The actual value of the secret.
*
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerCreateOrUpdateSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerCreateOrUpdateSamples.java
index c844ea98b6c0a..0743c623225c8 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerCreateOrUpdateSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerCreateOrUpdateSamples.java
@@ -33,10 +33,7 @@ public static void putLinkWithSecretStore(com.azure.resourcemanager.servicelinke
.withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
.withAuthInfo(new SecretAuthInfo())
- .withSecretStore(
- new SecretStore()
- .withKeyVaultId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"))
+ .withSecretStore(new SecretStore().withKeyVaultId("fakeTokenPlaceholder"))
.create();
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerDeleteSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerDeleteSamples.java
index c45355310f4f3..e729b59d48126 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerDeleteSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerDeleteSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
-
/** Samples for Linker Delete. */
public final class LinkerDeleteSamples {
/*
@@ -22,6 +20,6 @@ public static void deleteLink(com.azure.resourcemanager.servicelinker.ServiceLin
.delete(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkName",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerGetSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerGetSamples.java
index 1069239717679..988aa43fdf5e1 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerGetSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerGetSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
-
/** Samples for Linker Get. */
public final class LinkerGetSamples {
/*
@@ -22,6 +20,6 @@ public static void link(com.azure.resourcemanager.servicelinker.ServiceLinkerMan
.getWithResponse(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkName",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListConfigurationsSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListConfigurationsSamples.java
index d32acd2894148..24895b8c8a7c9 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListConfigurationsSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListConfigurationsSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
-
/** Samples for Linker ListConfigurations. */
public final class LinkerListConfigurationsSamples {
/*
@@ -22,6 +20,6 @@ public static void getConfiguration(com.azure.resourcemanager.servicelinker.Serv
.listConfigurationsWithResponse(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkName",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListSamples.java
index 9d97013795157..112f0c40f6638 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerListSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
-
/** Samples for Linker List. */
public final class LinkerListSamples {
/*
@@ -21,6 +19,6 @@ public static void linkList(com.azure.resourcemanager.servicelinker.ServiceLinke
.linkers()
.list(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerUpdateSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerUpdateSamples.java
index a02c0746e0210..0b7bbc6922f9a 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerUpdateSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerUpdateSamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.servicelinker.models.AzureResource;
import com.azure.resourcemanager.servicelinker.models.LinkerResource;
import com.azure.resourcemanager.servicelinker.models.ServicePrincipalSecretAuthInfo;
@@ -26,7 +25,7 @@ public static void patchLink(com.azure.resourcemanager.servicelinker.ServiceLink
.getWithResponse(
"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkName",
- Context.NONE)
+ com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
@@ -35,7 +34,10 @@ public static void patchLink(com.azure.resourcemanager.servicelinker.ServiceLink
.withId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
.withAuthInfo(
- new ServicePrincipalSecretAuthInfo().withClientId("name").withPrincipalId("id").withSecret("secret"))
+ new ServicePrincipalSecretAuthInfo()
+ .withClientId("name")
+ .withPrincipalId("id")
+ .withSecret("fakeTokenPlaceholder"))
.apply();
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerValidateSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerValidateSamples.java
deleted file mode 100644
index c4774b19c20a7..0000000000000
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/LinkerValidateSamples.java
+++ /dev/null
@@ -1,27 +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.generated;
-
-import com.azure.core.util.Context;
-
-/** Samples for Linker Validate. */
-public final class LinkerValidateSamples {
- /*
- * x-ms-original-file: specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json
- */
- /**
- * Sample code: ValidateLinkSuccess.
- *
- * @param manager Entry point to ServiceLinkerManager.
- */
- public static void validateLinkSuccess(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager
- .linkers()
- .validate(
- "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
- "linkName",
- Context.NONE);
- }
-}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/OperationsListSamples.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/OperationsListSamples.java
index 814216b514ccf..29363b3d850d7 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/OperationsListSamples.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/samples/java/com/azure/resourcemanager/servicelinker/generated/OperationsListSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.servicelinker.generated;
-import com.azure.core.util.Context;
-
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
@@ -17,6 +15,6 @@ public final class OperationsListSamples {
* @param manager Entry point to ServiceLinkerManager.
*/
public static void getConfiguration(com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager) {
- manager.operations().list(Context.NONE);
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}