-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from de07e1b451ebc32e2150c85225702957853cccaf (#2596)
[HDInsight] - Support KV URL
- Loading branch information
1 parent
7a556f3
commit 3f03d8f
Showing
16 changed files
with
1,076 additions
and
0 deletions.
There are no files selected for viewing
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
96 changes: 96 additions & 0 deletions
96
...osoft/azure/management/hdinsight/v2015_03_01_preview/ClusterDiskEncryptionParameters.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,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; | ||
} | ||
|
||
} |
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
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
149 changes: 149 additions & 0 deletions
149
...om/microsoft/azure/management/hdinsight/v2015_03_01_preview/DiskEncryptionProperties.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,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; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
...crosoft/azure/management/hdinsight/v2015_03_01_preview/JsonWebKeyEncryptionAlgorithm.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.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); | ||
} | ||
} |
Oops, something went wrong.