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

[ReleasePR sdk/recoveryservices/mgmt-v2016_06_01] Added swagger for private link resource API #9870

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
4 changes: 3 additions & 1 deletion sdk/recoveryservices/mgmt-v2016_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-recoveryservices</artifactId>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,89 +8,28 @@

package com.microsoft.azure.management.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation.RecoveryServicesManager;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation.CheckNameAvailabilityResultInner;

/**
* Response for check name availability API. Resource provider will set
* availability as true | false.
* Type representing CheckNameAvailabilityResult.
*/
public class CheckNameAvailabilityResult {
public interface CheckNameAvailabilityResult extends HasInner<CheckNameAvailabilityResultInner>, HasManager<RecoveryServicesManager> {
/**
* The nameAvailable property.
* @return the message value.
*/
@JsonProperty(value = "nameAvailable")
private Boolean nameAvailable;
String message();

/**
* The reason property.
* @return the nameAvailable value.
*/
@JsonProperty(value = "reason")
private String reason;
Boolean nameAvailable();

/**
* The message property.
* @return the reason value.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get the nameAvailable value.
*
* @return the nameAvailable value
*/
public Boolean nameAvailable() {
return this.nameAvailable;
}

/**
* Set the nameAvailable value.
*
* @param nameAvailable the nameAvailable value to set
* @return the CheckNameAvailabilityResult object itself.
*/
public CheckNameAvailabilityResult withNameAvailable(Boolean nameAvailable) {
this.nameAvailable = nameAvailable;
return this;
}

/**
* Get the reason value.
*
* @return the reason value
*/
public String reason() {
return this.reason;
}

/**
* Set the reason value.
*
* @param reason the reason value to set
* @return the CheckNameAvailabilityResult object itself.
*/
public CheckNameAvailabilityResult withReason(String reason) {
this.reason = reason;
return this;
}

/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set the message value.
*
* @param message the message value to set
* @return the CheckNameAvailabilityResult object itself.
*/
public CheckNameAvailabilityResult withMessage(String message) {
this.message = message;
return this;
}
String reason();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Identity for the resource.
*/
public class IdentityData {
/**
* The principal ID of resource identity.
*/
@JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
private String principalId;

/**
* The tenant ID of resource.
*/
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
private String tenantId;

/**
* The identity type. Possible values include: 'SystemAssigned', 'None'.
*/
@JsonProperty(value = "type", required = true)
private ResourceIdentityType type;

/**
* Get the principal ID of resource identity.
*
* @return the principalId value
*/
public String principalId() {
return this.principalId;
}

/**
* Get the tenant ID of resource.
*
* @return the tenantId value
*/
public String tenantId() {
return this.tenantId;
}

/**
* Get the identity type. Possible values include: 'SystemAssigned', 'None'.
*
* @return the type value
*/
public ResourceIdentityType type() {
return this.type;
}

/**
* Set the identity type. Possible values include: 'SystemAssigned', 'None'.
*
* @param type the type value to set
* @return the IdentityData object itself.
*/
public IdentityData withType(ResourceIdentityType type) {
this.type = type;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The Private Endpoint network resource that is linked to the Private Endpoint
* connection.
*/
public class PrivateEndpoint {
/**
* Gets or sets id.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* Get gets or sets id.
*
* @return the id value
*/
public String id() {
return this.id;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Private Endpoint Connection Response Properties.
*/
public class PrivateEndpointConnection {
/**
* Gets or sets provisioning state of the private endpoint connection.
* Possible values include: 'Succeeded', 'Deleting', 'Failed', 'Pending'.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/**
* The privateEndpoint property.
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;

/**
* The privateLinkServiceConnectionState property.
*/
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;

/**
* Get gets or sets provisioning state of the private endpoint connection. Possible values include: 'Succeeded', 'Deleting', 'Failed', 'Pending'.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}

/**
* Get the privateEndpoint value.
*
* @return the privateEndpoint value
*/
public PrivateEndpoint privateEndpoint() {
return this.privateEndpoint;
}

/**
* Set the privateEndpoint value.
*
* @param privateEndpoint the privateEndpoint value to set
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}

/**
* Get the privateLinkServiceConnectionState value.
*
* @return the privateLinkServiceConnectionState value
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
return this.privateLinkServiceConnectionState;
}

/**
* Set the privateLinkServiceConnectionState value.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.recoveryservices.v2016_06_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for PrivateEndpointConnectionStatus.
*/
public final class PrivateEndpointConnectionStatus extends ExpandableStringEnum<PrivateEndpointConnectionStatus> {
/** Static value Pending for PrivateEndpointConnectionStatus. */
public static final PrivateEndpointConnectionStatus PENDING = fromString("Pending");

/** Static value Approved for PrivateEndpointConnectionStatus. */
public static final PrivateEndpointConnectionStatus APPROVED = fromString("Approved");

/** Static value Rejected for PrivateEndpointConnectionStatus. */
public static final PrivateEndpointConnectionStatus REJECTED = fromString("Rejected");

/** Static value Disconnected for PrivateEndpointConnectionStatus. */
public static final PrivateEndpointConnectionStatus DISCONNECTED = fromString("Disconnected");

/**
* Creates or finds a PrivateEndpointConnectionStatus from its string representation.
* @param name a name to look for
* @return the corresponding PrivateEndpointConnectionStatus
*/
@JsonCreator
public static PrivateEndpointConnectionStatus fromString(String name) {
return fromString(name, PrivateEndpointConnectionStatus.class);
}

/**
* @return known PrivateEndpointConnectionStatus values
*/
public static Collection<PrivateEndpointConnectionStatus> values() {
return values(PrivateEndpointConnectionStatus.class);
}
}
Loading