Skip to content

Commit

Permalink
Generated from e6fe8982616bc5219be3f69b2486aa9cb00d6cf2
Browse files Browse the repository at this point in the history
Update EventHub.json
  • Loading branch information
SDK Automation committed Dec 6, 2019
1 parent a7775d6 commit f44d680
Show file tree
Hide file tree
Showing 10 changed files with 556 additions and 9 deletions.
4 changes: 3 additions & 1 deletion sdk/eventhubs/mgmt-v2018_01_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-eventhubs</artifactId>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,26 @@
* Type representing EHNamespace.
*/
public interface EHNamespace extends HasInner<EHNamespaceInner>, Resource, GroupableResourceCore<EventHubsManager, EHNamespaceInner>, HasResourceGroup, Refreshable<EHNamespace>, Updatable<EHNamespace.Update>, HasManager<EventHubsManager> {
/**
* @return the clusterArmId value.
*/
String clusterArmId();

/**
* @return the createdAt value.
*/
DateTime createdAt();

/**
* @return the encryption value.
*/
Encryption encryption();

/**
* @return the identity value.
*/
Identity identity();

/**
* @return the isAutoInflateEnabled value.
*/
Expand Down Expand Up @@ -97,6 +112,42 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
}

/**
* The stage of the ehnamespace definition allowing to specify ClusterArmId.
*/
interface WithClusterArmId {
/**
* Specifies clusterArmId.
* @param clusterArmId Cluster ARM ID of the Namespace
* @return the next definition stage
*/
WithCreate withClusterArmId(String clusterArmId);
}

/**
* The stage of the ehnamespace definition allowing to specify Encryption.
*/
interface WithEncryption {
/**
* Specifies encryption.
* @param encryption Properties of BYOK Encryption description
* @return the next definition stage
*/
WithCreate withEncryption(Encryption encryption);
}

/**
* The stage of the ehnamespace definition allowing to specify Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity Properties of BYOK Identity description
* @return the next definition stage
*/
WithCreate withIdentity(Identity identity);
}

/**
* The stage of the ehnamespace definition allowing to specify IsAutoInflateEnabled.
*/
Expand Down Expand Up @@ -162,19 +213,55 @@ interface WithZoneRedundant {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<EHNamespace>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithIsAutoInflateEnabled, DefinitionStages.WithKafkaEnabled, DefinitionStages.WithMaximumThroughputUnits, DefinitionStages.WithSku, DefinitionStages.WithZoneRedundant {
interface WithCreate extends Creatable<EHNamespace>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithClusterArmId, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithIsAutoInflateEnabled, DefinitionStages.WithKafkaEnabled, DefinitionStages.WithMaximumThroughputUnits, DefinitionStages.WithSku, DefinitionStages.WithZoneRedundant {
}
}
/**
* The template for a EHNamespace update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<EHNamespace>, Resource.UpdateWithTags<Update>, UpdateStages.WithIsAutoInflateEnabled, UpdateStages.WithKafkaEnabled, UpdateStages.WithMaximumThroughputUnits, UpdateStages.WithSku, UpdateStages.WithZoneRedundant {
interface Update extends Appliable<EHNamespace>, Resource.UpdateWithTags<Update>, UpdateStages.WithClusterArmId, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithIsAutoInflateEnabled, UpdateStages.WithKafkaEnabled, UpdateStages.WithMaximumThroughputUnits, UpdateStages.WithSku, UpdateStages.WithZoneRedundant {
}

/**
* Grouping of EHNamespace update stages.
*/
interface UpdateStages {
/**
* The stage of the ehnamespace update allowing to specify ClusterArmId.
*/
interface WithClusterArmId {
/**
* Specifies clusterArmId.
* @param clusterArmId Cluster ARM ID of the Namespace
* @return the next update stage
*/
Update withClusterArmId(String clusterArmId);
}

/**
* The stage of the ehnamespace update allowing to specify Encryption.
*/
interface WithEncryption {
/**
* Specifies encryption.
* @param encryption Properties of BYOK Encryption description
* @return the next update stage
*/
Update withEncryption(Encryption encryption);
}

/**
* The stage of the ehnamespace update allowing to specify Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity Properties of BYOK Identity description
* @return the next update stage
*/
Update withIdentity(Identity identity);
}

/**
* The stage of the ehnamespace update allowing to specify IsAutoInflateEnabled.
*/
Expand Down
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;
}

}
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;
}

}
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;
}
}
Loading

0 comments on commit f44d680

Please sign in to comment.