Skip to content

Commit

Permalink
Generated from 9ee547a1c8f8c180abb7487eb50ea17d5cd48ef2 (#245)
Browse files Browse the repository at this point in the history
Add mysql replica APIs into spec
  • Loading branch information
AutorestCI authored and lmazuel committed Oct 10, 2018
1 parent 95a467e commit acb1952
Show file tree
Hide file tree
Showing 37 changed files with 2,071 additions and 148 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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.mysql;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Request from client to check resource name availability.
*/
public class NameAvailabilityRequest {
/**
* Resource name to verify.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Resource type used for verification.
*/
@JsonProperty(value = "type")
private String type;

/**
* Get resource name to verify.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set resource name to verify.
*
* @param name the name value to set
* @return the NameAvailabilityRequest object itself.
*/
public NameAvailabilityRequest withName(String name) {
this.name = name;
return this;
}

/**
* Get resource type used for verification.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set resource type used for verification.
*
* @param type the type value to set
* @return the NameAvailabilityRequest object itself.
*/
public NameAvailabilityRequest withType(String type) {
this.type = type;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class OperationDisplay {
private String description;

/**
* Get the provider value.
* Get operation resource provider name.
*
* @return the provider value
*/
Expand All @@ -48,7 +48,7 @@ public String provider() {
}

/**
* Get the resource value.
* Get resource on which the operation is performed.
*
* @return the resource value
*/
Expand All @@ -57,7 +57,7 @@ public String resource() {
}

/**
* Get the operation value.
* Get localized friendly name for the operation.
*
* @return the operation value
*/
Expand All @@ -66,7 +66,7 @@ public String operation() {
}

/**
* Get the description value.
* Get operation description.
*
* @return the description value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class PerformanceTierServiceLevelObjectives {
private Integer minStorageMB;

/**
* Get the id value.
* Get iD for the service level objective.
*
* @return the id value
*/
Expand All @@ -72,7 +72,7 @@ public String id() {
}

/**
* Set the id value.
* Set iD for the service level objective.
*
* @param id the id value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -83,7 +83,7 @@ public PerformanceTierServiceLevelObjectives withId(String id) {
}

/**
* Get the edition value.
* Get edition of the performance tier.
*
* @return the edition value
*/
Expand All @@ -92,7 +92,7 @@ public String edition() {
}

/**
* Set the edition value.
* Set edition of the performance tier.
*
* @param edition the edition value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -103,7 +103,7 @@ public PerformanceTierServiceLevelObjectives withEdition(String edition) {
}

/**
* Get the vCore value.
* Get vCore associated with the service level objective.
*
* @return the vCore value
*/
Expand All @@ -112,7 +112,7 @@ public Integer vCore() {
}

/**
* Set the vCore value.
* Set vCore associated with the service level objective.
*
* @param vCore the vCore value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -123,7 +123,7 @@ public PerformanceTierServiceLevelObjectives withVCore(Integer vCore) {
}

/**
* Get the hardwareGeneration value.
* Get hardware generation associated with the service level objective.
*
* @return the hardwareGeneration value
*/
Expand All @@ -132,7 +132,7 @@ public String hardwareGeneration() {
}

/**
* Set the hardwareGeneration value.
* Set hardware generation associated with the service level objective.
*
* @param hardwareGeneration the hardwareGeneration value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -143,7 +143,7 @@ public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardw
}

/**
* Get the maxBackupRetentionDays value.
* Get maximum Backup retention in days for the performance tier edition.
*
* @return the maxBackupRetentionDays value
*/
Expand All @@ -152,7 +152,7 @@ public Integer maxBackupRetentionDays() {
}

/**
* Set the maxBackupRetentionDays value.
* Set maximum Backup retention in days for the performance tier edition.
*
* @param maxBackupRetentionDays the maxBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -163,7 +163,7 @@ public PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer
}

/**
* Get the minBackupRetentionDays value.
* Get minimum Backup retention in days for the performance tier edition.
*
* @return the minBackupRetentionDays value
*/
Expand All @@ -172,7 +172,7 @@ public Integer minBackupRetentionDays() {
}

/**
* Set the minBackupRetentionDays value.
* Set minimum Backup retention in days for the performance tier edition.
*
* @param minBackupRetentionDays the minBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -183,7 +183,7 @@ public PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer
}

/**
* Get the maxStorageMB value.
* Get max storage allowed for a server.
*
* @return the maxStorageMB value
*/
Expand All @@ -192,7 +192,7 @@ public Integer maxStorageMB() {
}

/**
* Set the maxStorageMB value.
* Set max storage allowed for a server.
*
* @param maxStorageMB the maxStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand All @@ -203,7 +203,7 @@ public PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorage
}

/**
* Get the minStorageMB value.
* Get max storage allowed for a server.
*
* @return the minStorageMB value
*/
Expand All @@ -212,7 +212,7 @@ public Integer minStorageMB() {
}

/**
* Set the minStorageMB value.
* Set max storage allowed for a server.
*
* @param minStorageMB the minStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/**
* 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.mysql;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Represents a server to be created.
*/
public class ServerForCreate {
/**
* The SKU (pricing tier) of the server.
*/
@JsonProperty(value = "sku")
private Sku sku;

/**
* Properties of the server.
*/
@JsonProperty(value = "properties", required = true)
private ServerPropertiesForCreate properties;

/**
* The location the resource resides in.
*/
@JsonProperty(value = "location", required = true)
private String location;

/**
* Application-specific metadata in the form of key-value pairs.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Get the SKU (pricing tier) of the server.
*
* @return the sku value
*/
public Sku sku() {
return this.sku;
}

/**
* Set the SKU (pricing tier) of the server.
*
* @param sku the sku value to set
* @return the ServerForCreate object itself.
*/
public ServerForCreate withSku(Sku sku) {
this.sku = sku;
return this;
}

/**
* Get properties of the server.
*
* @return the properties value
*/
public ServerPropertiesForCreate properties() {
return this.properties;
}

/**
* Set properties of the server.
*
* @param properties the properties value to set
* @return the ServerForCreate object itself.
*/
public ServerForCreate withProperties(ServerPropertiesForCreate properties) {
this.properties = properties;
return this;
}

/**
* Get the location the resource resides in.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set the location the resource resides in.
*
* @param location the location value to set
* @return the ServerForCreate object itself.
*/
public ServerForCreate withLocation(String location) {
this.location = location;
return this;
}

/**
* Get application-specific metadata in the form of key-value pairs.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set application-specific metadata in the form of key-value pairs.
*
* @param tags the tags value to set
* @return the ServerForCreate object itself.
*/
public ServerForCreate withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

}
Loading

0 comments on commit acb1952

Please sign in to comment.