Skip to content
Open
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
4 changes: 2 additions & 2 deletions sdk/servicebus/mgmt-v2018_01_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-servicebus</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* 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.servicebus.v2018_01_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.servicebus.v2018_01_01_preview.implementation.ServiceBusManager;
import com.microsoft.azure.management.servicebus.v2018_01_01_preview.implementation.AccessKeysInner;

/**
* Type representing AccessKeys.
*/
public interface AccessKeys extends HasInner<AccessKeysInner>, HasManager<ServiceBusManager> {
/**
* @return the aliasPrimaryConnectionString value.
*/
String aliasPrimaryConnectionString();

/**
* @return the aliasSecondaryConnectionString value.
*/
String aliasSecondaryConnectionString();

/**
* @return the keyName value.
*/
String keyName();

/**
* @return the primaryConnectionString value.
*/
String primaryConnectionString();

/**
* @return the primaryKey value.
*/
String primaryKey();

/**
* @return the secondaryConnectionString value.
*/
String secondaryConnectionString();

/**
* @return the secondaryKey value.
*/
String secondaryKey();

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AccessRights.
*/
public enum AccessRights {
/** Enum value Manage. */
MANAGE("Manage"),

/** Enum value Send. */
SEND("Send"),

/** Enum value Listen. */
LISTEN("Listen");

/** The actual serialized value for a AccessRights instance. */
private String value;

AccessRights(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AccessRights instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessRights object, or null if unable to parse.
*/
@JsonCreator
public static AccessRights fromString(String value) {
AccessRights[] items = AccessRights.values();
for (AccessRights item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**
* 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.servicebus.v2018_01_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Represents the filter actions which are allowed for the transformation of a
* message that have been matched by a filter expression.
*/
public class Action {
/**
* SQL expression. e.g. MyProperty='ABC'.
*/
@JsonProperty(value = "sqlExpression")
private String sqlExpression;

/**
* This property is reserved for future use. An integer value showing the
* compatibility level, currently hard-coded to 20.
*/
@JsonProperty(value = "compatibilityLevel")
private Integer compatibilityLevel;

/**
* Value that indicates whether the rule action requires preprocessing.
*/
@JsonProperty(value = "requiresPreprocessing")
private Boolean requiresPreprocessing;

/**
* Get sQL expression. e.g. MyProperty='ABC'.
*
* @return the sqlExpression value
*/
public String sqlExpression() {
return this.sqlExpression;
}

/**
* Set sQL expression. e.g. MyProperty='ABC'.
*
* @param sqlExpression the sqlExpression value to set
* @return the Action object itself.
*/
public Action withSqlExpression(String sqlExpression) {
this.sqlExpression = sqlExpression;
return this;
}

/**
* Get this property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.
*
* @return the compatibilityLevel value
*/
public Integer compatibilityLevel() {
return this.compatibilityLevel;
}

/**
* Set this property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.
*
* @param compatibilityLevel the compatibilityLevel value to set
* @return the Action object itself.
*/
public Action withCompatibilityLevel(Integer compatibilityLevel) {
this.compatibilityLevel = compatibilityLevel;
return this;
}

/**
* Get value that indicates whether the rule action requires preprocessing.
*
* @return the requiresPreprocessing value
*/
public Boolean requiresPreprocessing() {
return this.requiresPreprocessing;
}

/**
* Set value that indicates whether the rule action requires preprocessing.
*
* @param requiresPreprocessing the requiresPreprocessing value to set
* @return the Action object itself.
*/
public Action withRequiresPreprocessing(Boolean requiresPreprocessing) {
this.requiresPreprocessing = requiresPreprocessing;
return this;
}

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.servicebus.v2018_01_01_preview.implementation.ArmDisasterRecoveryInner;
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.servicebus.v2018_01_01_preview.implementation.ServiceBusManager;

/**
* Type representing ArmDisasterRecovery.
*/
public interface ArmDisasterRecovery extends HasInner<ArmDisasterRecoveryInner>, Indexable, Refreshable<ArmDisasterRecovery>, Updatable<ArmDisasterRecovery.Update>, HasManager<ServiceBusManager> {
/**
* @return the alternateName value.
*/
String alternateName();

/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the partnerNamespace value.
*/
String partnerNamespace();

/**
* @return the pendingReplicationOperationsCount value.
*/
Long pendingReplicationOperationsCount();

/**
* @return the provisioningState value.
*/
ProvisioningStateDR provisioningState();

/**
* @return the role value.
*/
RoleDisasterRecovery role();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the ArmDisasterRecovery definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithCreate {
}

/**
* Grouping of ArmDisasterRecovery definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a ArmDisasterRecovery definition.
*/
interface Blank extends WithNamespace {
}

/**
* The stage of the armdisasterrecovery definition allowing to specify Namespace.
*/
interface WithNamespace {
/**
* Specifies resourceGroupName, namespaceName.
* @param resourceGroupName Name of the Resource group within the Azure subscription
* @param namespaceName The namespace name
* @return the next definition stage
*/
WithCreate withExistingNamespace(String resourceGroupName, String namespaceName);
}

/**
* The stage of the armdisasterrecovery definition allowing to specify AlternateName.
*/
interface WithAlternateName {
/**
* Specifies alternateName.
* @param alternateName Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
* @return the next definition stage
*/
WithCreate withAlternateName(String alternateName);
}

/**
* The stage of the armdisasterrecovery definition allowing to specify PartnerNamespace.
*/
interface WithPartnerNamespace {
/**
* Specifies partnerNamespace.
* @param partnerNamespace ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
* @return the next definition stage
*/
WithCreate withPartnerNamespace(String partnerNamespace);
}

/**
* 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<ArmDisasterRecovery>, DefinitionStages.WithAlternateName, DefinitionStages.WithPartnerNamespace {
}
}
/**
* The template for a ArmDisasterRecovery update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<ArmDisasterRecovery>, UpdateStages.WithAlternateName, UpdateStages.WithPartnerNamespace {
}

/**
* Grouping of ArmDisasterRecovery update stages.
*/
interface UpdateStages {
/**
* The stage of the armdisasterrecovery update allowing to specify AlternateName.
*/
interface WithAlternateName {
/**
* Specifies alternateName.
* @param alternateName Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
* @return the next update stage
*/
Update withAlternateName(String alternateName);
}

/**
* The stage of the armdisasterrecovery update allowing to specify PartnerNamespace.
*/
interface WithPartnerNamespace {
/**
* Specifies partnerNamespace.
* @param partnerNamespace ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
* @return the next update stage
*/
Update withPartnerNamespace(String partnerNamespace);
}

}
}
Loading