forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 9ee547a1c8f8c180abb7487eb50ea17d5cd48ef2 (#245)
Add mysql replica APIs into spec
- Loading branch information
1 parent
95a467e
commit acb1952
Showing
37 changed files
with
2,071 additions
and
148 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
...gmt-mysql/src/main/java/com/microsoft/azure/management/mysql/NameAvailabilityRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
azure-mgmt-mysql/src/main/java/com/microsoft/azure/management/mysql/ServerForCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.