Skip to content
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,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