-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] [Don't Merge, Service Rolling out ~Jan/…
…28/18] Adding API Specs for Long Term Retention V2 (#294) * Generated from c3aa875664e691c5cfd9237039358ebc522544ee Updating more references to BackupLongTermRetentionPolic(y|ies) * Generated from c3aa875664e691c5cfd9237039358ebc522544ee Updating more references to BackupLongTermRetentionPolic(y|ies) * Generated from 68173d9459aa56809cfef2ead837c976af0adc15 Update more references of LongTermRetentionPolicy to BackupLongTermRetentionPolicy
- Loading branch information
1 parent
d8d1b9d
commit a7dda78
Showing
8 changed files
with
2,341 additions
and
140 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/DatabaseState.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,44 @@ | ||
/** | ||
* 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 java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for DatabaseState. | ||
*/ | ||
public final class DatabaseState extends ExpandableStringEnum<DatabaseState> { | ||
/** Static value All for DatabaseState. */ | ||
public static final DatabaseState ALL = fromString("All"); | ||
|
||
/** Static value Live for DatabaseState. */ | ||
public static final DatabaseState LIVE = fromString("Live"); | ||
|
||
/** Static value Deleted for DatabaseState. */ | ||
public static final DatabaseState DELETED = fromString("Deleted"); | ||
|
||
/** | ||
* Creates or finds a DatabaseState from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding DatabaseState | ||
*/ | ||
@JsonCreator | ||
public static DatabaseState fromString(String name) { | ||
return fromString(name, DatabaseState.class); | ||
} | ||
|
||
/** | ||
* @return known DatabaseState values | ||
*/ | ||
public static Collection<DatabaseState> values() { | ||
return values(DatabaseState.class); | ||
} | ||
} |
157 changes: 77 additions & 80 deletions
157
...m/microsoft/azure/management/sql/implementation/BackupLongTermRetentionPoliciesInner.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
110 changes: 110 additions & 0 deletions
110
.../java/com/microsoft/azure/management/sql/implementation/LongTermRetentionBackupInner.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,110 @@ | ||
/** | ||
* 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.implementation; | ||
|
||
import org.joda.time.DateTime; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.microsoft.rest.serializer.JsonFlatten; | ||
|
||
/** | ||
* A long term retention backup. | ||
*/ | ||
@JsonFlatten | ||
public class LongTermRetentionBackupInner extends ProxyResourceInner { | ||
/** | ||
* The server name that the backup database belong to. | ||
*/ | ||
@JsonProperty(value = "properties.serverName", access = JsonProperty.Access.WRITE_ONLY) | ||
private String serverName; | ||
|
||
/** | ||
* The create time of the server. | ||
*/ | ||
@JsonProperty(value = "properties.serverCreateTime", access = JsonProperty.Access.WRITE_ONLY) | ||
private DateTime serverCreateTime; | ||
|
||
/** | ||
* The name of the database the backup belong to. | ||
*/ | ||
@JsonProperty(value = "properties.databaseName", access = JsonProperty.Access.WRITE_ONLY) | ||
private String databaseName; | ||
|
||
/** | ||
* The delete time of the database. | ||
*/ | ||
@JsonProperty(value = "properties.databaseDeletionTime", access = JsonProperty.Access.WRITE_ONLY) | ||
private DateTime databaseDeletionTime; | ||
|
||
/** | ||
* The time the backup was taken. | ||
*/ | ||
@JsonProperty(value = "properties.backupTime", access = JsonProperty.Access.WRITE_ONLY) | ||
private DateTime backupTime; | ||
|
||
/** | ||
* The time the long term retention backup will expire. | ||
*/ | ||
@JsonProperty(value = "properties.backupExpirationTime", access = JsonProperty.Access.WRITE_ONLY) | ||
private DateTime backupExpirationTime; | ||
|
||
/** | ||
* Get the serverName value. | ||
* | ||
* @return the serverName value | ||
*/ | ||
public String serverName() { | ||
return this.serverName; | ||
} | ||
|
||
/** | ||
* Get the serverCreateTime value. | ||
* | ||
* @return the serverCreateTime value | ||
*/ | ||
public DateTime serverCreateTime() { | ||
return this.serverCreateTime; | ||
} | ||
|
||
/** | ||
* Get the databaseName value. | ||
* | ||
* @return the databaseName value | ||
*/ | ||
public String databaseName() { | ||
return this.databaseName; | ||
} | ||
|
||
/** | ||
* Get the databaseDeletionTime value. | ||
* | ||
* @return the databaseDeletionTime value | ||
*/ | ||
public DateTime databaseDeletionTime() { | ||
return this.databaseDeletionTime; | ||
} | ||
|
||
/** | ||
* Get the backupTime value. | ||
* | ||
* @return the backupTime value | ||
*/ | ||
public DateTime backupTime() { | ||
return this.backupTime; | ||
} | ||
|
||
/** | ||
* Get the backupExpirationTime value. | ||
* | ||
* @return the backupExpirationTime value | ||
*/ | ||
public DateTime backupExpirationTime() { | ||
return this.backupExpirationTime; | ||
} | ||
|
||
} |
Oops, something went wrong.