diff --git a/packages/@azure/arm-eventhub/.npmignore b/packages/@azure/arm-eventhub/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-eventhub/.npmignore +++ b/packages/@azure/arm-eventhub/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-eventhub/LICENSE.txt b/packages/@azure/arm-eventhub/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-eventhub/LICENSE.txt +++ b/packages/@azure/arm-eventhub/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-eventhub/README.md b/packages/@azure/arm-eventhub/README.md index afb50ec49747..0ec6df6ae217 100644 --- a/packages/@azure/arm-eventhub/README.md +++ b/packages/@azure/arm-eventhub/README.md @@ -1,77 +1,77 @@ -# Azure EventHubManagementClient SDK for JavaScript -This package contains an isomorphic SDK for EventHubManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-eventhub -``` - - -## How to use - -### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { EventHubManagementClient, EventHubManagementModels, EventHubManagementMappers } from "@azure/arm-eventhub"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new EventHubManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list operations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-eventhub sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure EventHubManagementClient SDK for JavaScript +This package contains an isomorphic SDK for EventHubManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-eventhub +``` + + +## How to use + +### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { EventHubManagementClient, EventHubManagementModels, EventHubManagementMappers } from "@azure/arm-eventhub"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new EventHubManagementClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list operations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-eventhub sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-eventhub/lib/models/consumerGroupsMappers.ts b/packages/@azure/arm-eventhub/lib/models/consumerGroupsMappers.ts index 3ac407889003..2d26030b4af1 100644 --- a/packages/@azure/arm-eventhub/lib/models/consumerGroupsMappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/consumerGroupsMappers.ts @@ -24,8 +24,6 @@ export { ArmDisasterRecovery, MessagingRegions, MessagingRegionsProperties, - MessagingPlan, - IpFilterRule, - VirtualNetworkRule + MessagingPlan } from "../models/mappers"; diff --git a/packages/@azure/arm-eventhub/lib/models/disasterRecoveryConfigsMappers.ts b/packages/@azure/arm-eventhub/lib/models/disasterRecoveryConfigsMappers.ts index 64ab5fa98d7c..1ebbdd53e313 100644 --- a/packages/@azure/arm-eventhub/lib/models/disasterRecoveryConfigsMappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/disasterRecoveryConfigsMappers.ts @@ -28,8 +28,6 @@ export { ConsumerGroup, MessagingRegions, MessagingRegionsProperties, - MessagingPlan, - IpFilterRule, - VirtualNetworkRule + MessagingPlan } from "../models/mappers"; diff --git a/packages/@azure/arm-eventhub/lib/models/eventHubsMappers.ts b/packages/@azure/arm-eventhub/lib/models/eventHubsMappers.ts index 6f5a52873126..9045da7a9835 100644 --- a/packages/@azure/arm-eventhub/lib/models/eventHubsMappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/eventHubsMappers.ts @@ -27,8 +27,6 @@ export { ArmDisasterRecovery, MessagingRegions, MessagingRegionsProperties, - MessagingPlan, - IpFilterRule, - VirtualNetworkRule + MessagingPlan } from "../models/mappers"; diff --git a/packages/@azure/arm-eventhub/lib/models/index.ts b/packages/@azure/arm-eventhub/lib/models/index.ts index 81ecea4de3fa..1532de235d25 100644 --- a/packages/@azure/arm-eventhub/lib/models/index.ts +++ b/packages/@azure/arm-eventhub/lib/models/index.ts @@ -603,43 +603,6 @@ export interface MessagingPlan extends TrackedResource { readonly revision?: number; } -/** - * @interface - * An interface representing IpFilterRule. - * Single item in a List or Get IpFilterRules operation - * - * @extends Resource - */ -export interface IpFilterRule extends Resource { - /** - * @member {string} [ipMask] IP Mask - */ - ipMask?: string; - /** - * @member {IPAction} [action] The IP Filter Action. Possible values include: - * 'Accept', 'Reject' - */ - action?: IPAction; - /** - * @member {string} [filterName] IP Filter name - */ - filterName?: string; -} - -/** - * @interface - * An interface representing VirtualNetworkRule. - * Single item in a List or Get VirtualNetworkRules operation - * - * @extends Resource - */ -export interface VirtualNetworkRule extends Resource { - /** - * @member {string} [virtualNetworkSubnetId] ARM ID of Virtual Network Subnet - */ - virtualNetworkSubnetId?: string; -} - /** * @interface * An interface representing EventHubsListByNamespaceOptionalParams. @@ -745,36 +708,6 @@ export interface AuthorizationRuleListResult extends Array { nextLink?: string; } -/** - * @interface - * An interface representing the IpFilterRuleListResult. - * The response from the List namespace operation. - * - * @extends Array - */ -export interface IpFilterRuleListResult extends Array { - /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains an incomplete list of IpFilter Rules - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the VirtualNetworkRuleListResult. - * The response from the List namespace operation. - * - * @extends Array - */ -export interface VirtualNetworkRuleListResult extends Array { - /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains an incomplete list of VirtualNetwork Rules - */ - nextLink?: string; -} - /** * @interface * An interface representing the ArmDisasterRecoveryListResult. @@ -967,21 +900,6 @@ export enum RoleDisasterRecovery { Secondary = 'Secondary', } -/** - * Defines values for IPAction. - * Possible values include: 'Accept', 'Reject' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: IPAction = "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum IPAction { - Accept = 'Accept', - Reject = 'Reject', -} - /** * Contains response data for the list operation. */ @@ -1248,120 +1166,6 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { }; }; -/** - * Contains response data for the listIPFilterRules operation. - */ -export type NamespacesListIPFilterRulesResponse = IpFilterRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFilterRuleListResult; - }; -}; - -/** - * Contains response data for the createOrUpdateIpFilterRule operation. - */ -export type NamespacesCreateOrUpdateIpFilterRuleResponse = IpFilterRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFilterRule; - }; -}; - -/** - * Contains response data for the getIpFilterRule operation. - */ -export type NamespacesGetIpFilterRuleResponse = IpFilterRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFilterRule; - }; -}; - -/** - * Contains response data for the listVirtualNetworkRules operation. - */ -export type NamespacesListVirtualNetworkRulesResponse = VirtualNetworkRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRuleListResult; - }; -}; - -/** - * Contains response data for the createOrUpdateVirtualNetworkRule operation. - */ -export type NamespacesCreateOrUpdateVirtualNetworkRuleResponse = VirtualNetworkRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRule; - }; -}; - -/** - * Contains response data for the getVirtualNetworkRule operation. - */ -export type NamespacesGetVirtualNetworkRuleResponse = VirtualNetworkRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRule; - }; -}; - /** * Contains response data for the beginCreateOrUpdate operation. */ @@ -1438,44 +1242,6 @@ export type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleList }; }; -/** - * Contains response data for the listIPFilterRulesNext operation. - */ -export type NamespacesListIPFilterRulesNextResponse = IpFilterRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFilterRuleListResult; - }; -}; - -/** - * Contains response data for the listVirtualNetworkRulesNext operation. - */ -export type NamespacesListVirtualNetworkRulesNextResponse = VirtualNetworkRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRuleListResult; - }; -}; - /** * Contains response data for the checkNameAvailability operation. */ diff --git a/packages/@azure/arm-eventhub/lib/models/mappers.ts b/packages/@azure/arm-eventhub/lib/models/mappers.ts index c82e3e333d54..c04ac03cce79 100644 --- a/packages/@azure/arm-eventhub/lib/models/mappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/mappers.ts @@ -753,52 +753,6 @@ export const MessagingPlan: msRest.CompositeMapper = { } }; -export const IpFilterRule: msRest.CompositeMapper = { - serializedName: "IpFilterRule", - type: { - name: "Composite", - className: "IpFilterRule", - modelProperties: { - ...Resource.type.modelProperties, - ipMask: { - serializedName: "properties.ipMask", - type: { - name: "String" - } - }, - action: { - serializedName: "properties.action", - type: { - name: "String" - } - }, - filterName: { - serializedName: "properties.filterName", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...Resource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", - type: { - name: "String" - } - } - } - } -}; - export const OperationListResult: msRest.CompositeMapper = { serializedName: "OperationListResult", type: { @@ -885,62 +839,6 @@ export const AuthorizationRuleListResult: msRest.CompositeMapper = { } }; -export const IpFilterRuleListResult: msRest.CompositeMapper = { - serializedName: "IpFilterRuleListResult", - type: { - name: "Composite", - className: "IpFilterRuleListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IpFilterRule" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRuleListResult", - type: { - name: "Composite", - className: "VirtualNetworkRuleListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkRule" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { serializedName: "ArmDisasterRecoveryListResult", type: { diff --git a/packages/@azure/arm-eventhub/lib/models/namespacesMappers.ts b/packages/@azure/arm-eventhub/lib/models/namespacesMappers.ts index bdd06705b035..2d6d624854f6 100644 --- a/packages/@azure/arm-eventhub/lib/models/namespacesMappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/namespacesMappers.ts @@ -23,10 +23,6 @@ export { AuthorizationRule, AccessKeys, RegenerateAccessKeyParameters, - IpFilterRuleListResult, - IpFilterRule, - VirtualNetworkRuleListResult, - VirtualNetworkRule, Eventhub, CaptureDescription, Destination, diff --git a/packages/@azure/arm-eventhub/lib/models/parameters.ts b/packages/@azure/arm-eventhub/lib/models/parameters.ts index 99bf3a0aa625..eeadc06dbd26 100644 --- a/packages/@azure/arm-eventhub/lib/models/parameters.ts +++ b/packages/@azure/arm-eventhub/lib/models/parameters.ts @@ -84,19 +84,6 @@ export const eventHubName: msRest.OperationURLParameter = { } } }; -export const ipFilterRuleName: msRest.OperationURLParameter = { - parameterPath: "ipFilterRuleName", - mapper: { - required: true, - serializedName: "ipFilterRuleName", - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; export const namespaceName: msRest.OperationURLParameter = { parameterPath: "namespaceName", mapper: { @@ -192,16 +179,3 @@ export const top: msRest.OperationQueryParameter = { } } }; -export const virtualNetworkRuleName: msRest.OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", - mapper: { - required: true, - serializedName: "virtualNetworkRuleName", - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; diff --git a/packages/@azure/arm-eventhub/lib/models/regionsMappers.ts b/packages/@azure/arm-eventhub/lib/models/regionsMappers.ts index e7ed9c564785..ed3a77d7faf2 100644 --- a/packages/@azure/arm-eventhub/lib/models/regionsMappers.ts +++ b/packages/@azure/arm-eventhub/lib/models/regionsMappers.ts @@ -24,8 +24,6 @@ export { Destination, ConsumerGroup, ArmDisasterRecovery, - MessagingPlan, - IpFilterRule, - VirtualNetworkRule + MessagingPlan } from "../models/mappers"; diff --git a/packages/@azure/arm-eventhub/lib/operations/namespaces.ts b/packages/@azure/arm-eventhub/lib/operations/namespaces.ts index 3652aa6756a5..fdc7ddefa04e 100644 --- a/packages/@azure/arm-eventhub/lib/operations/namespaces.ts +++ b/packages/@azure/arm-eventhub/lib/operations/namespaces.ts @@ -455,294 +455,6 @@ export class Namespaces { callback) as Promise; } - /** - * Gets a list of IP Filter rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param [options] The optional parameters - * @returns Promise - */ - listIPFilterRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param callback The callback - */ - listIPFilterRules(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The optional parameters - * @param callback The callback - */ - listIPFilterRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listIPFilterRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - options - }, - listIPFilterRulesOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param parameters The Namespace IpFilterRule. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param parameters The Namespace IpFilterRule. - * @param callback The callback - */ - createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param parameters The Namespace IpFilterRule. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - ipFilterRuleName, - parameters, - options - }, - createOrUpdateIpFilterRuleOperationSpec, - callback) as Promise; - } - - /** - * Deletes an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param callback The callback - */ - deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The optional parameters - * @param callback The callback - */ - deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - ipFilterRuleName, - options - }, - deleteIpFilterRuleOperationSpec, - callback); - } - - /** - * Gets an IpFilterRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param [options] The optional parameters - * @returns Promise - */ - getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param callback The callback - */ - getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The optional parameters - * @param callback The callback - */ - getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - ipFilterRuleName, - options - }, - getIpFilterRuleOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of VirtualNetwork rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param [options] The optional parameters - * @returns Promise - */ - listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param callback The callback - */ - listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The optional parameters - * @param callback The callback - */ - listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - options - }, - listVirtualNetworkRulesOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param parameters The Namespace VirtualNetworkRule. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param parameters The Namespace VirtualNetworkRule. - * @param callback The callback - */ - createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param parameters The Namespace VirtualNetworkRule. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - virtualNetworkRuleName, - parameters, - options - }, - createOrUpdateVirtualNetworkRuleOperationSpec, - callback) as Promise; - } - - /** - * Deletes an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param callback The callback - */ - deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The optional parameters - * @param callback The callback - */ - deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - virtualNetworkRuleName, - options - }, - deleteVirtualNetworkRuleOperationSpec, - callback); - } - - /** - * Gets an VirtualNetworkRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param [options] The optional parameters - * @returns Promise - */ - getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param callback The callback - */ - getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The optional parameters - * @param callback The callback - */ - getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - virtualNetworkRuleName, - options - }, - getVirtualNetworkRuleOperationSpec, - callback) as Promise; - } - /** * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. * This operation is idempotent. @@ -866,62 +578,6 @@ export class Namespaces { listAuthorizationRulesNextOperationSpec, callback) as Promise; } - - /** - * Gets a list of IP Filter rules for a Namespace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listIPFilterRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listIPFilterRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listIPFilterRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listIPFilterRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listIPFilterRulesNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of VirtualNetwork rules for a Namespace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listVirtualNetworkRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listVirtualNetworkRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listVirtualNetworkRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVirtualNetworkRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listVirtualNetworkRulesNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -1260,224 +916,6 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { serializer }; -const listIPFilterRulesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IpFilterRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const createOrUpdateIpFilterRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.IpFilterRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.IpFilterRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const deleteIpFilterRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const getIpFilterRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IpFilterRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const listVirtualNetworkRulesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const createOrUpdateVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.VirtualNetworkRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const deleteVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const getVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", @@ -1601,45 +1039,3 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listIPFilterRulesNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IpFilterRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const listVirtualNetworkRulesNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/packages/@azure/arm-eventhub/package.json b/packages/@azure/arm-eventhub/package.json index 5f48771b3648..a2d3e05d3678 100644 --- a/packages/@azure/arm-eventhub/package.json +++ b/packages/@azure/arm-eventhub/package.json @@ -4,8 +4,8 @@ "description": "EventHubManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", "tslib": "^1.9.3" }, "keywords": [