Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-servicelinker] [Hub Generated] Publish private branch 'servicelinker/naji/swaggerEnum' #399

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-servicelinker</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,23 @@ 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);
}
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -251,10 +251,10 @@ SyncPoller<PollResult<LinkerResourceInner>, 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<PollResult<ValidateResultInner>, ValidateResultInner> beginValidate(
SyncPoller<PollResult<ValidateOperationResultInner>, ValidateOperationResultInner> beginValidate(
String resourceUri, String linkerName);

/**
Expand All @@ -266,10 +266,10 @@ SyncPoller<PollResult<ValidateResultInner>, 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<PollResult<ValidateResultInner>, ValidateResultInner> beginValidate(
SyncPoller<PollResult<ValidateOperationResultInner>, ValidateOperationResultInner> beginValidate(
String resourceUri, String linkerName, Context context);

/**
Expand All @@ -280,10 +280,10 @@ SyncPoller<PollResult<ValidateResultInner>, 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.
Expand All @@ -294,10 +294,10 @@ SyncPoller<PollResult<ValidateResultInner>, 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ValidationResultItem> 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<ValidationResultItem> 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();
}
}
}
Loading