-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated SQL SDK as per new swagger spec
- Loading branch information
1 parent
20d734b
commit 49bf336
Showing
22 changed files
with
902 additions
and
1,113 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ElasticPoolState.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,62 @@ | ||
/** | ||
* 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.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Defines values for ElasticPoolState. | ||
*/ | ||
public final class ElasticPoolState { | ||
/** Static value Creating for ElasticPoolState. */ | ||
public static final ElasticPoolState CREATING = new ElasticPoolState("Creating"); | ||
|
||
/** Static value Ready for ElasticPoolState. */ | ||
public static final ElasticPoolState READY = new ElasticPoolState("Ready"); | ||
|
||
/** Static value Disabled for ElasticPoolState. */ | ||
public static final ElasticPoolState DISABLED = new ElasticPoolState("Disabled"); | ||
|
||
private String value; | ||
|
||
/** | ||
* Creates a custom value for ElasticPoolState. | ||
* @param value the custom value | ||
*/ | ||
public ElasticPoolState(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return value.hashCode(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (!(obj instanceof ElasticPoolState)) { | ||
return false; | ||
} | ||
if (obj == this) { | ||
return true; | ||
} | ||
ElasticPoolState rhs = (ElasticPoolState) obj; | ||
if (value == null) { | ||
return rhs.value == null; | ||
} else { | ||
return value.equals(rhs.value); | ||
} | ||
} | ||
} |
41 changes: 0 additions & 41 deletions
41
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ResourceMoveDefinition.java
This file was deleted.
Oops, something went wrong.
77 changes: 77 additions & 0 deletions
77
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ServiceObjectiveName.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,77 @@ | ||
/** | ||
* 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.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Defines values for ServiceObjectiveName. | ||
*/ | ||
public final class ServiceObjectiveName { | ||
/** Static value Basic for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName BASIC = new ServiceObjectiveName("Basic"); | ||
|
||
/** Static value S0 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName S0 = new ServiceObjectiveName("S0"); | ||
|
||
/** Static value S1 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName S1 = new ServiceObjectiveName("S1"); | ||
|
||
/** Static value S2 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName S2 = new ServiceObjectiveName("S2"); | ||
|
||
/** Static value S3 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName S3 = new ServiceObjectiveName("S3"); | ||
|
||
/** Static value P1 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName P1 = new ServiceObjectiveName("P1"); | ||
|
||
/** Static value P2 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName P2 = new ServiceObjectiveName("P2"); | ||
|
||
/** Static value P3 for ServiceObjectiveName. */ | ||
public static final ServiceObjectiveName P3 = new ServiceObjectiveName("P3"); | ||
|
||
private String value; | ||
|
||
/** | ||
* Creates a custom value for ServiceObjectiveName. | ||
* @param value the custom value | ||
*/ | ||
public ServiceObjectiveName(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return value.hashCode(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (!(obj instanceof ServiceObjectiveName)) { | ||
return false; | ||
} | ||
if (obj == this) { | ||
return true; | ||
} | ||
ServiceObjectiveName rhs = (ServiceObjectiveName) obj; | ||
if (value == null) { | ||
return rhs.value == null; | ||
} else { | ||
return value.equals(rhs.value); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.