diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md b/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md index c6a9c213f1520..ed924ac7fef6c 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-05-09) + +- Azure Resource Manager ServiceLinker client library for Java. This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2022-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md b/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md index 247061db69396..886c1e1a11168 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-servicelinker - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java index 596761a7df7e5..0dfde6d5faf61 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java @@ -263,7 +263,11 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil } } - /** @return Resource collection API of Linkers. */ + /** + * Gets the resource collection API of Linkers. + * + * @return Resource collection API of Linkers. + */ public Linkers linkers() { if (this.linkers == null) { this.linkers = new LinkersImpl(clientObject.getLinkers(), this); @@ -271,7 +275,11 @@ public Linkers linkers() { return linkers; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java index 9b5b2e97cd6d8..5c11981acda7c 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java @@ -13,7 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner; import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner; -import com.azure.resourcemanager.servicelinker.fluent.models.ValidateResultInner; +import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner; import com.azure.resourcemanager.servicelinker.models.LinkerPatch; /** An instance of this class provides access to all the operations defined in LinkersClient. */ @@ -251,10 +251,10 @@ SyncPoller, LinkerResourceInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the validation result for a linker. + * @return the {@link SyncPoller} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ValidateResultInner> beginValidate( + SyncPoller, ValidateOperationResultInner> beginValidate( String resourceUri, String linkerName); /** @@ -266,10 +266,10 @@ SyncPoller, ValidateResultInner> beginValidate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the validation result for a linker. + * @return the {@link SyncPoller} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ValidateResultInner> beginValidate( + SyncPoller, ValidateOperationResultInner> beginValidate( String resourceUri, String linkerName, Context context); /** @@ -280,10 +280,10 @@ SyncPoller, ValidateResultInner> beginValidate( * @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 result for a linker. + * @return the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.SINGLE) - ValidateResultInner validate(String resourceUri, String linkerName); + ValidateOperationResultInner validate(String resourceUri, String linkerName); /** * Validate a link. @@ -294,10 +294,10 @@ SyncPoller, ValidateResultInner> beginValidate( * @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 result for a linker. + * @return the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.SINGLE) - ValidateResultInner validate(String resourceUri, String linkerName, Context context); + ValidateOperationResultInner validate(String resourceUri, String linkerName, Context context); /** * list source configurations for a linker. 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 new file mode 100644 index 0000000000000..5d622571c49f3 --- /dev/null +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java @@ -0,0 +1,278 @@ +// 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/ValidateResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java similarity index 83% rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResultInner.java rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java index 608ee2d746039..77eda44f84be9 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResultInner.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateResult.java @@ -13,7 +13,7 @@ /** The validation result for a linker. */ @Fluent -public final class ValidateResultInner { +public final class ValidateResult { /* * The linker name. */ @@ -75,9 +75,9 @@ public String linkerName() { * Set the linkerName property: The linker name. * * @param linkerName the linkerName value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withLinkerName(String linkerName) { + public ValidateResult withLinkerName(String linkerName) { this.linkerName = linkerName; return this; } @@ -95,9 +95,9 @@ public Boolean 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 ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withIsConnectionAvailable(Boolean isConnectionAvailable) { + public ValidateResult withIsConnectionAvailable(Boolean isConnectionAvailable) { this.isConnectionAvailable = isConnectionAvailable; return this; } @@ -115,9 +115,9 @@ public OffsetDateTime reportStartTimeUtc() { * Set the reportStartTimeUtc property: The start time of the validation report. * * @param reportStartTimeUtc the reportStartTimeUtc value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withReportStartTimeUtc(OffsetDateTime reportStartTimeUtc) { + public ValidateResult withReportStartTimeUtc(OffsetDateTime reportStartTimeUtc) { this.reportStartTimeUtc = reportStartTimeUtc; return this; } @@ -135,9 +135,9 @@ public OffsetDateTime reportEndTimeUtc() { * Set the reportEndTimeUtc property: The end time of the validation report. * * @param reportEndTimeUtc the reportEndTimeUtc value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) { + public ValidateResult withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) { this.reportEndTimeUtc = reportEndTimeUtc; return this; } @@ -155,9 +155,9 @@ public String sourceId() { * Set the sourceId property: The resource id of the linker source application. * * @param sourceId the sourceId value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withSourceId(String sourceId) { + public ValidateResult withSourceId(String sourceId) { this.sourceId = sourceId; return this; } @@ -175,9 +175,9 @@ public String targetId() { * Set the targetId property: The resource Id of target service. * * @param targetId the targetId value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withTargetId(String targetId) { + public ValidateResult withTargetId(String targetId) { this.targetId = targetId; return this; } @@ -195,9 +195,9 @@ public AuthType authType() { * Set the authType property: The authentication type. * * @param authType the authType value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withAuthType(AuthType authType) { + public ValidateResult withAuthType(AuthType authType) { this.authType = authType; return this; } @@ -215,9 +215,9 @@ public List validationDetail() { * Set the validationDetail property: The detail of validation result. * * @param validationDetail the validationDetail value to set. - * @return the ValidateResultInner object itself. + * @return the ValidateResult object itself. */ - public ValidateResultInner withValidationDetail(List validationDetail) { + public ValidateResult withValidationDetail(List validationDetail) { this.validationDetail = validationDetail; return this; } 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 4722173e408af..c8fff03eab9ad 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,7 @@ 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.ValidateResult; +import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult; public final class LinkerResourceImpl implements LinkerResource, LinkerResource.Definition, LinkerResource.Update { private LinkerResourceInner innerObject; @@ -161,11 +161,11 @@ public LinkerResource refresh(Context context) { return this; } - public ValidateResult validate() { + public ValidateOperationResult validate() { return serviceManager.linkers().validate(resourceUri, linkerName); } - public ValidateResult validate(Context context) { + public ValidateOperationResult validate(Context context) { return serviceManager.linkers().validate(resourceUri, linkerName, context); } 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 89a27afe08fd4..115d8123a8585 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,7 @@ 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.ValidateResultInner; +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; @@ -1132,7 +1132,8 @@ public LinkerResourceInner update(String resourceUri, String linkerName, LinkerP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker along with {@link Response} on successful completion of {@link Mono}. + * @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) { @@ -1172,7 +1173,8 @@ private Mono>> validateWithResponseAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker along with {@link Response} on successful completion of {@link Mono}. + * @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( @@ -1203,19 +1205,19 @@ private Mono>> validateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the {@link PollerFlux} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ValidateResultInner> beginValidateAsync( + private PollerFlux, ValidateOperationResultInner> beginValidateAsync( String resourceUri, String linkerName) { Mono>> mono = validateWithResponseAsync(resourceUri, linkerName); return this .client - .getLroResult( + .getLroResult( mono, this.client.getHttpPipeline(), - ValidateResultInner.class, - ValidateResultInner.class, + ValidateOperationResultInner.class, + ValidateOperationResultInner.class, this.client.getContext()); } @@ -1228,17 +1230,21 @@ private PollerFlux, ValidateResultInner> beginVa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the {@link PollerFlux} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ValidateResultInner> beginValidateAsync( + 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(), ValidateResultInner.class, ValidateResultInner.class, context); + .getLroResult( + mono, + this.client.getHttpPipeline(), + ValidateOperationResultInner.class, + ValidateOperationResultInner.class, + context); } /** @@ -1249,10 +1255,10 @@ private PollerFlux, ValidateResultInner> beginVa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the {@link SyncPoller} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ValidateResultInner> beginValidate( + public SyncPoller, ValidateOperationResultInner> beginValidate( String resourceUri, String linkerName) { return beginValidateAsync(resourceUri, linkerName).getSyncPoller(); } @@ -1266,10 +1272,10 @@ public SyncPoller, ValidateResultInner> beginVal * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the {@link SyncPoller} for polling of the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ValidateResultInner> beginValidate( + public SyncPoller, ValidateOperationResultInner> beginValidate( String resourceUri, String linkerName, Context context) { return beginValidateAsync(resourceUri, linkerName, context).getSyncPoller(); } @@ -1282,10 +1288,10 @@ public SyncPoller, ValidateResultInner> beginVal * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker on successful completion of {@link Mono}. + * @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) { + private Mono validateAsync(String resourceUri, String linkerName) { return beginValidateAsync(resourceUri, linkerName).last().flatMap(this.client::getLroFinalResultOrError); } @@ -1298,10 +1304,10 @@ private Mono validateAsync(String resourceUri, String linke * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker on successful completion of {@link Mono}. + * @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) { + private Mono validateAsync(String resourceUri, String linkerName, Context context) { return beginValidateAsync(resourceUri, linkerName, context) .last() .flatMap(this.client::getLroFinalResultOrError); @@ -1315,10 +1321,10 @@ private Mono validateAsync(String resourceUri, String linke * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ValidateResultInner validate(String resourceUri, String linkerName) { + public ValidateOperationResultInner validate(String resourceUri, String linkerName) { return validateAsync(resourceUri, linkerName).block(); } @@ -1331,10 +1337,10 @@ public ValidateResultInner validate(String resourceUri, String linkerName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 result for a linker. + * @return the validation operation result for a linker. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ValidateResultInner validate(String resourceUri, String linkerName, Context context) { + public ValidateOperationResultInner validate(String resourceUri, String linkerName, Context context) { return validateAsync(resourceUri, linkerName, context).block(); } 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 3a3a383bed501..75322fa6ef05b 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,11 @@ 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.ValidateResultInner; +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.ValidateResult; +import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult; public final class LinkersImpl implements Linkers { private static final ClientLogger LOGGER = new ClientLogger(LinkersImpl.class); @@ -71,19 +71,19 @@ public void delete(String resourceUri, String linkerName, Context context) { this.serviceClient().delete(resourceUri, linkerName, context); } - public ValidateResult validate(String resourceUri, String linkerName) { - ValidateResultInner inner = this.serviceClient().validate(resourceUri, linkerName); + public ValidateOperationResult validate(String resourceUri, String linkerName) { + ValidateOperationResultInner inner = this.serviceClient().validate(resourceUri, linkerName); if (inner != null) { - return new ValidateResultImpl(inner, this.manager()); + return new ValidateOperationResultImpl(inner, this.manager()); } else { return null; } } - public ValidateResult validate(String resourceUri, String linkerName, Context context) { - ValidateResultInner inner = this.serviceClient().validate(resourceUri, linkerName, context); + public ValidateOperationResult validate(String resourceUri, String linkerName, Context context) { + ValidateOperationResultInner inner = this.serviceClient().validate(resourceUri, linkerName, context); if (inner != null) { - return new ValidateResultImpl(inner, this.manager()); + return new ValidateOperationResultImpl(inner, this.manager()); } else { return null; } 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 c698734d19aa9..018b9b5b585ee 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,9 +103,6 @@ public ServiceLinkerManagementClientBuilder serializerAdapter(SerializerAdapter * @return an instance of ServiceLinkerManagementClientImpl. */ public ServiceLinkerManagementClientImpl buildClient() { - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } if (endpoint == null) { this.endpoint = "https://management.azure.com"; } diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateResultImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateOperationResultImpl.java similarity index 74% rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateResultImpl.java rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateOperationResultImpl.java index f64419b3e9fda..b6b84aaf65973 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateResultImpl.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ValidateOperationResultImpl.java @@ -4,25 +4,34 @@ package com.azure.resourcemanager.servicelinker.implementation; -import com.azure.resourcemanager.servicelinker.fluent.models.ValidateResultInner; +import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner; import com.azure.resourcemanager.servicelinker.models.AuthType; -import com.azure.resourcemanager.servicelinker.models.ValidateResult; +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 ValidateResultImpl implements ValidateResult { - private ValidateResultInner innerObject; +public final class ValidateOperationResultImpl implements ValidateOperationResult { + private ValidateOperationResultInner innerObject; private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager; - ValidateResultImpl( - ValidateResultInner innerObject, 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(); } @@ -60,7 +69,7 @@ public List validationDetail() { } } - public ValidateResultInner innerModel() { + public ValidateOperationResultInner innerModel() { return this.innerObject; } 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 e477542a61a78..765a8393e5c38 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 @@ -24,7 +24,11 @@ public static ActionType fromString(String name) { return fromString(name, ActionType.class); } - /** @return known ActionType values. */ + /** + * Gets known ActionType values. + * + * @return known ActionType values. + */ public static Collection values() { return values(ActionType.class); } 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 822d0c793fc75..a14c2a2f7a813 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 @@ -36,7 +36,11 @@ public static AuthType fromString(String name) { return fromString(name, AuthType.class); } - /** @return known AuthType values. */ + /** + * Gets known AuthType values. + * + * @return known AuthType values. + */ public static Collection values() { return values(AuthType.class); } 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 new file mode 100644 index 0000000000000..ab23f6c1abd40 --- /dev/null +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/AzureResourceType.java @@ -0,0 +1,35 @@ +// 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 AzureResourceType. */ +public final class AzureResourceType extends ExpandableStringEnum { + /** Static value KeyVault for AzureResourceType. */ + public static final AzureResourceType KEY_VAULT = fromString("KeyVault"); + + /** + * Creates or finds a AzureResourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AzureResourceType. + */ + @JsonCreator + public static AzureResourceType fromString(String name) { + return fromString(name, AzureResourceType.class); + } + + /** + * Gets known AzureResourceType values. + * + * @return known AzureResourceType values. + */ + public static Collection values() { + return values(AzureResourceType.class); + } +} 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 1b8ecf70cdc81..afad077739f20 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 @@ -51,7 +51,11 @@ public static ClientType fromString(String name) { return fromString(name, ClientType.class); } - /** @return known ClientType values. */ + /** + * Gets known ClientType values. + * + * @return known ClientType values. + */ public static Collection values() { return values(ClientType.class); } diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerResource.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/LinkerResource.java index 5acdc3bbffad6..c98ee1fd3c031 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 @@ -313,9 +313,9 @@ interface WithScope { * * @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 result for a linker. + * @return the validation operation result for a linker. */ - ValidateResult validate(); + ValidateOperationResult validate(); /** * Validate a link. @@ -324,9 +324,9 @@ interface WithScope { * @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 result for a linker. + * @return the validation operation result for a linker. */ - ValidateResult validate(Context context); + ValidateOperationResult validate(Context context); /** * list source configurations for a linker. 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 83917f64f0c1b..745ca32af7063 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 @@ -89,9 +89,9 @@ 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 result for a linker. + * @return the validation operation result for a linker. */ - ValidateResult validate(String resourceUri, String linkerName); + ValidateOperationResult validate(String resourceUri, String linkerName); /** * Validate a link. @@ -102,9 +102,9 @@ 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 result for a linker. + * @return the validation operation result for a linker. */ - ValidateResult validate(String resourceUri, String linkerName, Context context); + ValidateOperationResult validate(String resourceUri, String linkerName, Context context); /** * list source configurations for a linker. 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 cf08530459948..4b62b0bbe7c92 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 @@ -30,7 +30,11 @@ public static Origin fromString(String name) { return fromString(name, Origin.class); } - /** @return known Origin values. */ + /** + * Gets known Origin values. + * + * @return known Origin values. + */ public static Collection values() { return values(Origin.class); } 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 9143b1756323e..4d9a05cf41f7c 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 @@ -30,7 +30,11 @@ public static SecretType fromString(String name) { return fromString(name, SecretType.class); } - /** @return known SecretType values. */ + /** + * Gets known SecretType values. + * + * @return known SecretType values. + */ public static Collection values() { return values(SecretType.class); } 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 new file mode 100644 index 0000000000000..4d11eaf03f4bc --- /dev/null +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/TargetServiceType.java @@ -0,0 +1,41 @@ +// 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 TargetServiceType. */ +public final class TargetServiceType extends ExpandableStringEnum { + /** Static value AzureResource for TargetServiceType. */ + public static final TargetServiceType AZURE_RESOURCE = fromString("AzureResource"); + + /** Static value ConfluentBootstrapServer for TargetServiceType. */ + public static final TargetServiceType CONFLUENT_BOOTSTRAP_SERVER = fromString("ConfluentBootstrapServer"); + + /** Static value ConfluentSchemaRegistry for TargetServiceType. */ + public static final TargetServiceType CONFLUENT_SCHEMA_REGISTRY = fromString("ConfluentSchemaRegistry"); + + /** + * Creates or finds a TargetServiceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding TargetServiceType. + */ + @JsonCreator + public static TargetServiceType fromString(String name) { + return fromString(name, TargetServiceType.class); + } + + /** + * Gets known TargetServiceType values. + * + * @return known TargetServiceType values. + */ + public static Collection values() { + return values(TargetServiceType.class); + } +} diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Type.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Type.java deleted file mode 100644 index 3797f51df8053..0000000000000 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/Type.java +++ /dev/null @@ -1,40 +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 Type. */ -public final class Type extends ExpandableStringEnum { - /** Static value AzureResource for Type. */ - public static final Type AZURE_RESOURCE = fromString("AzureResource"); - - /** Static value ConfluentBootstrapServer for Type. */ - public static final Type CONFLUENT_BOOTSTRAP_SERVER = fromString("ConfluentBootstrapServer"); - - /** Static value ConfluentSchemaRegistry for Type. */ - public static final Type CONFLUENT_SCHEMA_REGISTRY = fromString("ConfluentSchemaRegistry"); - - /** Static value KeyVault for Type. */ - public static final Type KEY_VAULT = fromString("KeyVault"); - - /** - * Creates or finds a Type from its string representation. - * - * @param name a name to look for. - * @return the corresponding Type. - */ - @JsonCreator - public static Type fromString(String name) { - return fromString(name, Type.class); - } - - /** @return known Type values. */ - public static Collection values() { - return values(Type.class); - } -} diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/VNetSolutionType.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/VNetSolutionType.java index 36526f4705042..ed188a96f8a9e 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/VNetSolutionType.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/VNetSolutionType.java @@ -27,7 +27,11 @@ public static VNetSolutionType fromString(String name) { return fromString(name, VNetSolutionType.class); } - /** @return known VNetSolutionType values. */ + /** + * Gets known VNetSolutionType values. + * + * @return known VNetSolutionType values. + */ public static Collection values() { return values(VNetSolutionType.class); } diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateResult.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateOperationResult.java similarity index 78% rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateResult.java rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateOperationResult.java index eca072855b080..0f94afd526432 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateResult.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidateOperationResult.java @@ -4,12 +4,26 @@ package com.azure.resourcemanager.servicelinker.models; -import com.azure.resourcemanager.servicelinker.fluent.models.ValidateResultInner; +import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner; import java.time.OffsetDateTime; import java.util.List; -/** An immutable client-side representation of ValidateResult. */ -public interface ValidateResult { +/** An immutable client-side representation of ValidateOperationResult. */ +public interface ValidateOperationResult { + /** + * Gets the resourceId property: Validated linker id. + * + * @return the resourceId value. + */ + String resourceId(); + + /** + * Gets the status property: Validation operation status. + * + * @return the status value. + */ + String status(); + /** * Gets the linkerName property: The linker name. * @@ -67,9 +81,9 @@ public interface ValidateResult { List validationDetail(); /** - * Gets the inner com.azure.resourcemanager.servicelinker.fluent.models.ValidateResultInner object. + * Gets the inner com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner object. * * @return the inner object. */ - ValidateResultInner innerModel(); + ValidateOperationResultInner innerModel(); } diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java index 3ca615dc184b1..46a6ba0f4b6dd 100644 --- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java +++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/models/ValidationResultStatus.java @@ -13,8 +13,8 @@ public final class ValidationResultStatus extends ExpandableStringEnum values() { return values(ValidationResultStatus.class); }