forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from e6fe8982616bc5219be3f69b2486aa9cb00d6cf2
Update EventHub.json
- Loading branch information
SDK Automation
committed
Dec 6, 2019
1 parent
a7775d6
commit f44d680
Showing
10 changed files
with
556 additions
and
9 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
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
70 changes: 70 additions & 0 deletions
70
...rc/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Encryption.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,70 @@ | ||
/** | ||
* 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.eventhubs.v2018_01_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Properties to configure Encryption. | ||
*/ | ||
public class Encryption { | ||
/** | ||
* Properties of KeyVault. | ||
*/ | ||
@JsonProperty(value = "keyVaultProperties") | ||
private KeyVaultProperties keyVaultProperties; | ||
|
||
/** | ||
* Enumerates the possible value of keySource for Encryption. Possible | ||
* values include: 'Microsoft.KeyVault'. | ||
*/ | ||
@JsonProperty(value = "keySource") | ||
private KeySource keySource; | ||
|
||
/** | ||
* Get properties of KeyVault. | ||
* | ||
* @return the keyVaultProperties value | ||
*/ | ||
public KeyVaultProperties keyVaultProperties() { | ||
return this.keyVaultProperties; | ||
} | ||
|
||
/** | ||
* Set properties of KeyVault. | ||
* | ||
* @param keyVaultProperties the keyVaultProperties value to set | ||
* @return the Encryption object itself. | ||
*/ | ||
public Encryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { | ||
this.keyVaultProperties = keyVaultProperties; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get enumerates the possible value of keySource for Encryption. Possible values include: 'Microsoft.KeyVault'. | ||
* | ||
* @return the keySource value | ||
*/ | ||
public KeySource keySource() { | ||
return this.keySource; | ||
} | ||
|
||
/** | ||
* Set enumerates the possible value of keySource for Encryption. Possible values include: 'Microsoft.KeyVault'. | ||
* | ||
* @param keySource the keySource value to set | ||
* @return the Encryption object itself. | ||
*/ | ||
public Encryption withKeySource(KeySource keySource) { | ||
this.keySource = keySource; | ||
return this; | ||
} | ||
|
||
} |
96 changes: 96 additions & 0 deletions
96
.../src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Identity.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.eventhubs.v2018_01_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Properties to configure Identity for Bring your Own Keys. | ||
*/ | ||
public class Identity { | ||
/** | ||
* ObjectId from the KeyVault. | ||
*/ | ||
@JsonProperty(value = "principalId") | ||
private String principalId; | ||
|
||
/** | ||
* TenantId from the KeyVault. | ||
*/ | ||
@JsonProperty(value = "tenantId") | ||
private String tenantId; | ||
|
||
/** | ||
* Enumerates the possible value Identity type, which currently supports | ||
* only 'SystemAssigned'. Possible values include: 'SystemAssigned'. | ||
*/ | ||
@JsonProperty(value = "type") | ||
private IdentityType type; | ||
|
||
/** | ||
* Get objectId from the KeyVault. | ||
* | ||
* @return the principalId value | ||
*/ | ||
public String principalId() { | ||
return this.principalId; | ||
} | ||
|
||
/** | ||
* Set objectId from the KeyVault. | ||
* | ||
* @param principalId the principalId value to set | ||
* @return the Identity object itself. | ||
*/ | ||
public Identity withPrincipalId(String principalId) { | ||
this.principalId = principalId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get tenantId from the KeyVault. | ||
* | ||
* @return the tenantId value | ||
*/ | ||
public String tenantId() { | ||
return this.tenantId; | ||
} | ||
|
||
/** | ||
* Set tenantId from the KeyVault. | ||
* | ||
* @param tenantId the tenantId value to set | ||
* @return the Identity object itself. | ||
*/ | ||
public Identity withTenantId(String tenantId) { | ||
this.tenantId = tenantId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned'. | ||
* | ||
* @return the type value | ||
*/ | ||
public IdentityType type() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Set enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned'. | ||
* | ||
* @param type the type value to set | ||
* @return the Identity object itself. | ||
*/ | ||
public Identity withType(IdentityType type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
} |
50 changes: 50 additions & 0 deletions
50
.../main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IdentityType.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,50 @@ | ||
/** | ||
* 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.eventhubs.v2018_01_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Defines values for IdentityType. | ||
*/ | ||
public enum IdentityType { | ||
/** Enum value SystemAssigned. */ | ||
SYSTEM_ASSIGNED("SystemAssigned"); | ||
|
||
/** The actual serialized value for a IdentityType instance. */ | ||
private String value; | ||
|
||
IdentityType(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Parses a serialized value to a IdentityType instance. | ||
* | ||
* @param value the serialized value to parse. | ||
* @return the parsed IdentityType object, or null if unable to parse. | ||
*/ | ||
@JsonCreator | ||
public static IdentityType fromString(String value) { | ||
IdentityType[] items = IdentityType.values(); | ||
for (IdentityType item : items) { | ||
if (item.toString().equalsIgnoreCase(value)) { | ||
return item; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
} |
Oops, something went wrong.