Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
4c00ae3
Generated from 8a72b9ba5c2b5c8621cd628c62702a0bd4933259 (#2122)
AutorestCI Jun 21, 2018
ebe1527
[AutoPR sql/resource-manager] [DO NOT MERGE] Add DatabaseVulnerabilit…
AutorestCI Jul 27, 2018
b3d6e01
[AutoPR sql/resource-manager] New Cmdlets for Management.Sql to allow…
AutorestCI Sep 4, 2018
1cc9f13
Generated from ae5e50da51607b6c59745d9d2969c4f6acba0d81 (#2385)
AutorestCI Sep 17, 2018
a03d011
Generated from 1d3074c3f3f50b396875f414d62eec4195234f83 (#2451)
AutorestCI Oct 4, 2018
e472346
Generated from b77f5d1a2652b84a016c368bff34ec26940facac (#2552)
AutorestCI Oct 31, 2018
8b40594
Generated from 63e4176e8577c1abaf1a1496628dc432c7fa5479 (#2562)
AutorestCI Nov 6, 2018
21d6115
[AutoPR sql/resource-manager] Reorganized sql readme.md and extracted…
AutorestCI Dec 13, 2018
454cecd
Generated from 9d8ee581a6a578917bf10678c5d69d7e08d57c7f (#2786)
AutorestCI Dec 13, 2018
06e4e60
Generated from 9d6a28b409c220cdac4477e608e14fbed6bd7c6e (#2787)
AutorestCI Dec 13, 2018
12dc2f6
Generated from 59e8d0868a5c15631fdaaa7806897f22f4872fef (#2801)
AutorestCI Dec 17, 2018
5d24801
Generated from d82d1491879729cdf44da9a664e815112acde158 (#2836)
AutorestCI Jan 11, 2019
08fec10
[AutoPR sql/resource-manager] Added support for dropped databases on …
AutorestCI Jan 18, 2019
35ebb9c
[AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds (#2825)
AutorestCI Jan 22, 2019
0df5398
Generated from 45f508a8851c33aa3d6e6901127de68e75ed596d (#2890)
AutorestCI Jan 30, 2019
8d2f2cf
Generated from 45e35bcbc58caa5f6d38632405b8a855872b77d9 (#2920)
AutorestCI Feb 6, 2019
0bdf0a1
Generated from a03ebb5e6ea5c7aa1585f40be78db1703c328084 (#2988)
AutorestCI Feb 28, 2019
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
Prev Previous commit
Next Next commit
[AutoPR sql/resource-manager] New Cmdlets for Management.Sql to allow…
… customers to add TDE keys and set TDE protector (#2351)

* Generated from bdb271f9fc7fa148176e6470e7e5b27cc2450c73

Changes for ManagedInstanceEncryptionProtectors

* Generated from 724082f8646ab05191f7eee135fd674fd26d1a94

Changing operation id to ListByInstance as per Jared's recommendation

* Generated from f5321fc054067d1d4e8937cfc92452bf4a6a4950

Addressed comments By @anuchandy
- Changed comment to created or updated
- changed operation if to listByInstance
  • Loading branch information
AutorestCI authored Sep 4, 2018
commit b3d6e01e0317ff34456b7b165f881e2e98fac31d
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* 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_10_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.SqlManager;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.ManagedInstanceEncryptionProtectorInner;

/**
* Type representing ManagedInstanceEncryptionProtector.
*/
public interface ManagedInstanceEncryptionProtector extends HasInner<ManagedInstanceEncryptionProtectorInner>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

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

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

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

/**
* @return the serverKeyType value.
*/
ServerKeyType serverKeyType();

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

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

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

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

import rx.Observable;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.ManagedInstanceEncryptionProtectorInner;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.ManagedInstanceEncryptionProtectorsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing ManagedInstanceEncryptionProtectors.
*/
public interface ManagedInstanceEncryptionProtectors extends HasInner<ManagedInstanceEncryptionProtectorsInner> {
/**
* Gets a list of managed instance encryption protectors.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedInstanceEncryptionProtector> listByInstanceAsync(final String resourceGroupName, final String managedInstanceName);

/**
* Gets a managed instance encryption protector.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedInstanceEncryptionProtector> getAsync(String resourceGroupName, String managedInstanceName);

/**
* Updates an existing encryption protector.
*
* @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 parameters The requested encryption protector resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedInstanceEncryptionProtector> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, ManagedInstanceEncryptionProtectorInner parameters);

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.ManagedInstanceKeyInner;
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_10_01_preview.implementation.SqlManager;
import org.joda.time.DateTime;

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

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

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

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

/**
* @return the serverKeyType value.
*/
ServerKeyType serverKeyType();

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

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

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

/**
* The entirety of the ManagedInstanceKey definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithManagedInstance, DefinitionStages.WithServerKeyType, DefinitionStages.WithCreate {
}

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

/**
* The stage of the managedinstancekey definition allowing to specify ManagedInstance.
*/
interface WithManagedInstance {
/**
* Specifies resourceGroupName, managedInstanceName.
*/
WithServerKeyType withExistingManagedInstance(String resourceGroupName, String managedInstanceName);
}

/**
* The stage of the managedinstancekey definition allowing to specify ServerKeyType.
*/
interface WithServerKeyType {
/**
* Specifies serverKeyType.
*/
WithCreate withServerKeyType(ServerKeyType serverKeyType);
}

/**
* The stage of the managedinstancekey definition allowing to specify Uri.
*/
interface WithUri {
/**
* Specifies uri.
*/
WithCreate withUri(String uri);
}

/**
* 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<ManagedInstanceKey>, DefinitionStages.WithUri {
}
}
/**
* The template for a ManagedInstanceKey update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<ManagedInstanceKey>, UpdateStages.WithUri {
}

/**
* Grouping of ManagedInstanceKey update stages.
*/
interface UpdateStages {
/**
* The stage of the managedinstancekey update allowing to specify Uri.
*/
interface WithUri {
/**
* Specifies uri.
*/
Update withUri(String uri);
}

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

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Completable;
import rx.Observable;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.ManagedInstanceKeysInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing ManagedInstanceKeys.
*/
public interface ManagedInstanceKeys extends SupportsCreating<ManagedInstanceKey.DefinitionStages.Blank>, HasInner<ManagedInstanceKeysInner> {
/**
* Gets a managed instance key.
*
* @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 keyName The name of the managed instance key to be retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedInstanceKey> getAsync(String resourceGroupName, String managedInstanceName, String keyName);

/**
* Gets a list of managed instance keys.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ManagedInstanceKey> listByInstanceAsync(final String resourceGroupName, final String managedInstanceName);

/**
* Deletes the managed instance key with the given name.
*
* @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 keyName The name of the managed instance key to be deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteAsync(String resourceGroupName, String managedInstanceName, String keyName);

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

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for ServerKeyType.
*/
public final class ServerKeyType extends ExpandableStringEnum<ServerKeyType> {
/** Static value ServiceManaged for ServerKeyType. */
public static final ServerKeyType SERVICE_MANAGED = fromString("ServiceManaged");

/** Static value AzureKeyVault for ServerKeyType. */
public static final ServerKeyType AZURE_KEY_VAULT = fromString("AzureKeyVault");

/**
* Creates or finds a ServerKeyType from its string representation.
* @param name a name to look for
* @return the corresponding ServerKeyType
*/
@JsonCreator
public static ServerKeyType fromString(String name) {
return fromString(name, ServerKeyType.class);
}

/**
* @return known ServerKeyType values
*/
public static Collection<ServerKeyType> values() {
return values(ServerKeyType.class);
}
}
Loading