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

[AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds #2825

Merged
merged 3 commits into from
Jan 22, 2019
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/**
* 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.v2017_03_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.ManagedBackupShortTermRetentionPolicyInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

/**
* Type representing DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.
*/
public interface DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy extends HasInner<ManagedBackupShortTermRetentionPolicyInner>, Indexable, Refreshable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy>, Updatable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.Update>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the retentionDays value.
*/
Integer retentionDays();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithCreate {
}

/**
* Grouping of DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Blank extends WithDatabasis {
}

/**
* The stage of the databasismanagedinstancemanagedbackupshorttermretentionpolicy definition allowing to specify Databasis.
*/
interface WithDatabasis {
/**
* Specifies resourceGroupName, managedInstanceName, databaseName.
*/
WithCreate withExistingDatabasis(String resourceGroupName, String managedInstanceName, String databaseName);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> {
}
}
/**
* The template for a DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> {
}

/**
* Grouping of DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update stages.
*/
interface UpdateStages {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface LongTermRetentionBackups extends HasInner<LongTermRetentionBack
* Lists the long term retention backups for a given server.
*
* @param locationName The location of the database
* @param longTermRetentionServerName the String value
* @param longTermRetentionServerName The name of the server
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand All @@ -40,8 +40,8 @@ public interface LongTermRetentionBackups extends HasInner<LongTermRetentionBack
* Gets a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName the String value
* @param longTermRetentionDatabaseName the String value
* @param longTermRetentionServerName The name of the server
* @param longTermRetentionDatabaseName The name of the database
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -52,8 +52,8 @@ public interface LongTermRetentionBackups extends HasInner<LongTermRetentionBack
* Lists all long term retention backups for a database.
*
* @param locationName The location of the database
* @param longTermRetentionServerName the String value
* @param longTermRetentionDatabaseName the String value
* @param longTermRetentionServerName The name of the server
* @param longTermRetentionDatabaseName The name of the database
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand All @@ -63,8 +63,8 @@ public interface LongTermRetentionBackups extends HasInner<LongTermRetentionBack
* Deletes a long term retention backup.
*
* @param locationName The location of the database
* @param longTermRetentionServerName the String value
* @param longTermRetentionDatabaseName the String value
* @param longTermRetentionServerName The name of the server
* @param longTermRetentionDatabaseName The name of the database
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Type representing ManagedBackupShortTermRetentionPolicies.
*/
public interface ManagedBackupShortTermRetentionPolicies extends SupportsCreating<ManagedBackupShortTermRetentionPolicy.DefinitionStages.Blank>, HasInner<ManagedBackupShortTermRetentionPoliciesInner> {
public interface ManagedBackupShortTermRetentionPolicies extends SupportsCreating<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.DefinitionStages.Blank>, HasInner<ManagedBackupShortTermRetentionPoliciesInner> {
/**
* Gets a managed database's short term retention policy.
*
Expand All @@ -26,7 +26,7 @@ public interface ManagedBackupShortTermRetentionPolicies extends SupportsCreatin
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedBackupShortTermRetentionPolicy> getAsync(String resourceGroupName, String managedInstanceName, String databaseName);
Observable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> getAsync(String resourceGroupName, String managedInstanceName, String databaseName);

/**
* Gets a managed database's short term retention policy list.
Expand All @@ -37,6 +37,6 @@ public interface ManagedBackupShortTermRetentionPolicies extends SupportsCreatin
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedBackupShortTermRetentionPolicy> listByDatabaseAsync(final String resourceGroupName, final String managedInstanceName, final String databaseName);
Observable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> listByDatabaseAsync(final String resourceGroupName, final String managedInstanceName, final String databaseName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* 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.v2017_03_01_preview;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Observable;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.
*/
public interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies extends SupportsCreating<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.DefinitionStages.Blank>, HasInner<ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesInner> {
/**
* Gets a dropped database's short term retention policy.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param managedInstanceName The name of the managed instance.
* @param restorableDroppedDatabaseId the String value
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> getAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId);

/**
* Gets a dropped database's short term retention policy list.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param managedInstanceName The name of the managed instance.
* @param restorableDroppedDatabaseId the String value
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> listByRestorableDroppedDatabaseAsync(final String resourceGroupName, final String managedInstanceName, final String restorableDroppedDatabaseId);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/**
* 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.v2017_03_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.ManagedBackupShortTermRetentionPolicyInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

/**
* Type representing RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.
*/
public interface RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy extends HasInner<ManagedBackupShortTermRetentionPolicyInner>, Indexable, Refreshable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy>, Updatable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.Update>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the retentionDays value.
*/
Integer retentionDays();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithRestorableDroppedDatabasis, DefinitionStages.WithCreate {
}

/**
* Grouping of RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Blank extends WithRestorableDroppedDatabasis {
}

/**
* The stage of the restorabledroppeddatabasismanagedinstancemanagedbackupshorttermretentionpolicy definition allowing to specify RestorableDroppedDatabasis.
*/
interface WithRestorableDroppedDatabasis {
/**
* Specifies resourceGroupName, managedInstanceName, restorableDroppedDatabaseId.
*/
WithCreate withExistingRestorableDroppedDatabasis(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> {
}
}
/**
* The template for a RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> {
}

/**
* Grouping of RestorableDroppedDatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update stages.
*/
interface UpdateStages {
}
}
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.sql.v2017_03_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.RestorableDroppedManagedDatabaseInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;
import org.joda.time.DateTime;
import java.util.Map;

/**
* Type representing RestorableDroppedManagedDatabase.
*/
public interface RestorableDroppedManagedDatabase extends HasInner<RestorableDroppedManagedDatabaseInner>, Indexable, Refreshable<RestorableDroppedManagedDatabase>, HasManager<SqlManager> {
/**
* @return the creationDate value.
*/
DateTime creationDate();

/**
* @return the databaseName value.
*/
String databaseName();

/**
* @return the deletionDate value.
*/
DateTime deletionDate();

/**
* @return the earliestRestoreDate value.
*/
DateTime earliestRestoreDate();

/**
* @return the id value.
*/
String id();

/**
* @return the location value.
*/
String location();

/**
* @return the name value.
*/
String name();

/**
* @return the tags value.
*/
Map<String, String> tags();

/**
* @return the type value.
*/
String type();

}
Loading