Skip to content

Commit

Permalink
[AutoPR] servicebus/resource-manager (Azure#286)
Browse files Browse the repository at this point in the history
* [AutoPR servicebus/resource-manager] Service Bus: moved VNet and IpFilter rules from 2018-preview to 2017 API version (Azure#203)

* Generated from d7bcecddf6db2cf2857de2ed818a5b3a33bf4b5f

moved VNet and IpFilter rules from 2018-preview to 2017 API version

* Generated from cf8138058fa1001ab7532759064a35de1860aed5

added the readonly enum for type of replication of Alias(Geo DR)

* Generated from fedce30b02d58fee823a40fd8cfb34fe8ddbd514

Removed the type property of DisasterRecoveryConfig
  • Loading branch information
AutorestCI authored and kpajdzik committed Oct 23, 2018
1 parent 1455c01 commit eb587ef
Show file tree
Hide file tree
Showing 8 changed files with 199 additions and 3 deletions.
75 changes: 75 additions & 0 deletions packages/@azure/arm-servicebus/dist/arm-servicebus.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@azure/arm-servicebus/dist/arm-servicebus.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/@azure/arm-servicebus/dist/arm-servicebus.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions packages/@azure/arm-servicebus/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,21 @@ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch {
readonly metricId?: string;
}

/**
* @interface
* An interface representing SBNamespaceMigrate.
* Namespace Migrate Object
*
*/
export interface SBNamespaceMigrate {
/**
* @member {NameSpaceType} targetNamespaceType Type of namespaces. Possible
* values include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub',
* 'Relay'
*/
targetNamespaceType: NameSpaceType;
}

/**
* @interface
* An interface representing SBAuthorizationRule.
Expand Down Expand Up @@ -1544,6 +1559,21 @@ export enum SkuTier {
Premium = 'Premium',
}

/**
* Defines values for NameSpaceType.
* Possible values include: 'Messaging', 'NotificationHub', 'Mixed',
* 'EventHub', 'Relay'
* @readonly
* @enum {string}
*/
export enum NameSpaceType {
Messaging = 'Messaging',
NotificationHub = 'NotificationHub',
Mixed = 'Mixed',
EventHub = 'EventHub',
Relay = 'Relay',
}

/**
* Defines values for AccessRights.
* Possible values include: 'Manage', 'Send', 'Listen'
Expand Down
24 changes: 24 additions & 0 deletions packages/@azure/arm-servicebus/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,30 @@ export const SBNamespaceUpdateParameters: msRest.CompositeMapper = {
}
};

export const SBNamespaceMigrate: msRest.CompositeMapper = {
serializedName: "SBNamespaceMigrate",
type: {
name: "Composite",
className: "SBNamespaceMigrate",
modelProperties: {
targetNamespaceType: {
required: true,
serializedName: "targetNamespaceType",
type: {
name: "Enum",
allowedValues: [
"Messaging",
"NotificationHub",
"Mixed",
"EventHub",
"Relay"
]
}
}
}
}
};

export const SBAuthorizationRule: msRest.CompositeMapper = {
serializedName: "SBAuthorizationRule",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export {
SBAuthorizationRule,
AccessKeys,
RegenerateAccessKeyParameters,
SBNamespaceMigrate,
IpFilterRuleListResult,
IpFilterRule,
VirtualNetworkRuleListResult,
Expand Down
66 changes: 66 additions & 0 deletions packages/@azure/arm-servicebus/lib/operations/namespaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,42 @@ export class Namespaces {
callback) as Promise<Models.NamespacesRegenerateKeysResponse>;
}

/**
* This operation Migrate the given namespace to provided name type
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name
* @param parameters Parameters supplied to migrate namespace type.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name
* @param parameters Parameters supplied to migrate namespace type.
* @param callback The callback
*/
migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, callback: msRest.ServiceCallback<void>): void;
/**
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name
* @param parameters Parameters supplied to migrate namespace type.
* @param options The optional parameters
* @param callback The callback
*/
migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
namespaceName,
parameters,
options
},
migrateOperationSpec,
callback);
}

/**
* Gets a list of IP Filter rules for a Namespace.
* @param resourceGroupName Name of the Resource group within the Azure subscription.
Expand Down Expand Up @@ -1200,6 +1236,36 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
serializer
};

const migrateOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrate",
urlParameters: [
Parameters.resourceGroupName,
Parameters.namespaceName1,
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "parameters",
mapper: {
...Mappers.SBNamespaceMigrate,
required: true
}
},
responses: {
200: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};

const listIpFilterRulesOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules",
Expand Down

0 comments on commit eb587ef

Please sign in to comment.