Skip to content

Commit

Permalink
Generated from de07e1b451ebc32e2150c85225702957853cccaf (#2596)
Browse files Browse the repository at this point in the history
[HDInsight] - Support KV URL
  • Loading branch information
AutorestCI authored Nov 16, 2018
1 parent 7a556f3 commit 3f03d8f
Show file tree
Hide file tree
Showing 16 changed files with 1,076 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public class ClusterCreateProperties {
@JsonProperty(value = "storageProfile")
private StorageProfile storageProfile;

/**
* The disk encryption properties.
*/
@JsonProperty(value = "diskEncryptionProperties")
private DiskEncryptionProperties diskEncryptionProperties;

/**
* Get the version of the cluster.
*
Expand Down Expand Up @@ -197,4 +203,24 @@ public ClusterCreateProperties withStorageProfile(StorageProfile storageProfile)
return this;
}

/**
* Get the disk encryption properties.
*
* @return the diskEncryptionProperties value
*/
public DiskEncryptionProperties diskEncryptionProperties() {
return this.diskEncryptionProperties;
}

/**
* Set the disk encryption properties.
*
* @param diskEncryptionProperties the diskEncryptionProperties value to set
* @return the ClusterCreateProperties object itself.
*/
public ClusterCreateProperties withDiskEncryptionProperties(DiskEncryptionProperties diskEncryptionProperties) {
this.diskEncryptionProperties = diskEncryptionProperties;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The Disk Encryption Cluster request parameters.
*/
public class ClusterDiskEncryptionParameters {
/**
* Base key vault URI where the customers key is located eg.
* https://myvault.vault.azure.net.
*/
@JsonProperty(value = "vaultUri")
private String vaultUri;

/**
* Key name that is used for enabling disk encryption.
*/
@JsonProperty(value = "keyName")
private String keyName;

/**
* Specific key version that is used for enabling disk encryption.
*/
@JsonProperty(value = "keyVersion")
private String keyVersion;

/**
* Get base key vault URI where the customers key is located eg. https://myvault.vault.azure.net.
*
* @return the vaultUri value
*/
public String vaultUri() {
return this.vaultUri;
}

/**
* Set base key vault URI where the customers key is located eg. https://myvault.vault.azure.net.
*
* @param vaultUri the vaultUri value to set
* @return the ClusterDiskEncryptionParameters object itself.
*/
public ClusterDiskEncryptionParameters withVaultUri(String vaultUri) {
this.vaultUri = vaultUri;
return this;
}

/**
* Get key name that is used for enabling disk encryption.
*
* @return the keyName value
*/
public String keyName() {
return this.keyName;
}

/**
* Set key name that is used for enabling disk encryption.
*
* @param keyName the keyName value to set
* @return the ClusterDiskEncryptionParameters object itself.
*/
public ClusterDiskEncryptionParameters withKeyName(String keyName) {
this.keyName = keyName;
return this;
}

/**
* Get specific key version that is used for enabling disk encryption.
*
* @return the keyVersion value
*/
public String keyVersion() {
return this.keyVersion;
}

/**
* Set specific key version that is used for enabling disk encryption.
*
* @param keyVersion the keyVersion value to set
* @return the ClusterDiskEncryptionParameters object itself.
*/
public ClusterDiskEncryptionParameters withKeyVersion(String keyVersion) {
this.keyVersion = keyVersion;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public class ClusterGetProperties {
@JsonProperty(value = "connectivityEndpoints")
private List<ConnectivityEndpoint> connectivityEndpoints;

/**
* The disk encryption properties.
*/
@JsonProperty(value = "diskEncryptionProperties")
private DiskEncryptionProperties diskEncryptionProperties;

/**
* Get the version of the cluster.
*
Expand Down Expand Up @@ -330,4 +336,24 @@ public ClusterGetProperties withConnectivityEndpoints(List<ConnectivityEndpoint>
return this;
}

/**
* Get the disk encryption properties.
*
* @return the diskEncryptionProperties value
*/
public DiskEncryptionProperties diskEncryptionProperties() {
return this.diskEncryptionProperties;
}

/**
* Set the disk encryption properties.
*
* @param diskEncryptionProperties the diskEncryptionProperties value to set
* @return the ClusterGetProperties object itself.
*/
public ClusterGetProperties withDiskEncryptionProperties(DiskEncryptionProperties diskEncryptionProperties) {
this.diskEncryptionProperties = diskEncryptionProperties;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
* Type representing Clusters.
*/
public interface Clusters extends SupportsCreating<Cluster.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<Cluster>, SupportsListingByResourceGroup<Cluster>, SupportsListing<Cluster>, HasInner<ClustersInner> {
/**
* Rotate disk encryption key of the specified HDInsight cluster.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param parameters The parameters for the disk encryption operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable rotateDiskEncryptionKeyAsync(String resourceGroupName, String clusterName, ClusterDiskEncryptionParameters parameters);

/**
* Executes script actions on the specified HDInsight cluster.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/**
* 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.hdinsight.v2015_03_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The disk encryption properties.
*/
public class DiskEncryptionProperties {
/**
* Base key vault URI where the customers key is located eg.
* https://myvault.vault.azure.net.
*/
@JsonProperty(value = "vaultUri")
private String vaultUri;

/**
* Key name that is used for enabling disk encryption.
*/
@JsonProperty(value = "keyName")
private String keyName;

/**
* Specific key version that is used for enabling disk encryption.
*/
@JsonProperty(value = "keyVersion")
private String keyVersion;

/**
* Algorithm identifier for encryption, default RSA-OAEP. Possible values
* include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'.
*/
@JsonProperty(value = "encryptionAlgorithm")
private JsonWebKeyEncryptionAlgorithm encryptionAlgorithm;

/**
* Resource ID of Managed Identity that is used to access the key vault.
*/
@JsonProperty(value = "msiResourceId")
private String msiResourceId;

/**
* Get base key vault URI where the customers key is located eg. https://myvault.vault.azure.net.
*
* @return the vaultUri value
*/
public String vaultUri() {
return this.vaultUri;
}

/**
* Set base key vault URI where the customers key is located eg. https://myvault.vault.azure.net.
*
* @param vaultUri the vaultUri value to set
* @return the DiskEncryptionProperties object itself.
*/
public DiskEncryptionProperties withVaultUri(String vaultUri) {
this.vaultUri = vaultUri;
return this;
}

/**
* Get key name that is used for enabling disk encryption.
*
* @return the keyName value
*/
public String keyName() {
return this.keyName;
}

/**
* Set key name that is used for enabling disk encryption.
*
* @param keyName the keyName value to set
* @return the DiskEncryptionProperties object itself.
*/
public DiskEncryptionProperties withKeyName(String keyName) {
this.keyName = keyName;
return this;
}

/**
* Get specific key version that is used for enabling disk encryption.
*
* @return the keyVersion value
*/
public String keyVersion() {
return this.keyVersion;
}

/**
* Set specific key version that is used for enabling disk encryption.
*
* @param keyVersion the keyVersion value to set
* @return the DiskEncryptionProperties object itself.
*/
public DiskEncryptionProperties withKeyVersion(String keyVersion) {
this.keyVersion = keyVersion;
return this;
}

/**
* Get algorithm identifier for encryption, default RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'.
*
* @return the encryptionAlgorithm value
*/
public JsonWebKeyEncryptionAlgorithm encryptionAlgorithm() {
return this.encryptionAlgorithm;
}

/**
* Set algorithm identifier for encryption, default RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'.
*
* @param encryptionAlgorithm the encryptionAlgorithm value to set
* @return the DiskEncryptionProperties object itself.
*/
public DiskEncryptionProperties withEncryptionAlgorithm(JsonWebKeyEncryptionAlgorithm encryptionAlgorithm) {
this.encryptionAlgorithm = encryptionAlgorithm;
return this;
}

/**
* Get resource ID of Managed Identity that is used to access the key vault.
*
* @return the msiResourceId value
*/
public String msiResourceId() {
return this.msiResourceId;
}

/**
* Set resource ID of Managed Identity that is used to access the key vault.
*
* @param msiResourceId the msiResourceId value to set
* @return the DiskEncryptionProperties object itself.
*/
public DiskEncryptionProperties withMsiResourceId(String msiResourceId) {
this.msiResourceId = msiResourceId;
return this;
}

}
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.hdinsight.v2015_03_01_preview;

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

/**
* Defines values for JsonWebKeyEncryptionAlgorithm.
*/
public final class JsonWebKeyEncryptionAlgorithm extends ExpandableStringEnum<JsonWebKeyEncryptionAlgorithm> {
/** Static value RSA-OAEP for JsonWebKeyEncryptionAlgorithm. */
public static final JsonWebKeyEncryptionAlgorithm RSA_OAEP = fromString("RSA-OAEP");

/** Static value RSA-OAEP-256 for JsonWebKeyEncryptionAlgorithm. */
public static final JsonWebKeyEncryptionAlgorithm RSA_OAEP_256 = fromString("RSA-OAEP-256");

/** Static value RSA1_5 for JsonWebKeyEncryptionAlgorithm. */
public static final JsonWebKeyEncryptionAlgorithm RSA1_5 = fromString("RSA1_5");

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

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

0 comments on commit 3f03d8f

Please sign in to comment.