azure-arm-eventhub
Advanced tools
Comparing version 1.2.0-preview to 1.3.0
@@ -13,5 +13,6 @@ /* | ||
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; | ||
import * as models from "./models"; | ||
import * as operations from "./operations"; | ||
declare class EventHubManagementClient extends AzureServiceClient { | ||
export default class EventHubManagementClient extends AzureServiceClient { | ||
/** | ||
@@ -61,7 +62,9 @@ * Initializes a new instance of the EventHubManagementClient class. | ||
namespaces: operations.Namespaces; | ||
messagingPlanOperations: operations.MessagingPlanOperations; | ||
disasterRecoveryConfigs: operations.DisasterRecoveryConfigs; | ||
eventHubs: operations.EventHubs; | ||
consumerGroups: operations.ConsumerGroups; | ||
regions: operations.Regions; | ||
} | ||
export = EventHubManagementClient; | ||
export { EventHubManagementClient, models as EventHubManagementModels }; |
@@ -77,5 +77,7 @@ /* | ||
this.namespaces = new operations.Namespaces(this); | ||
this.messagingPlanOperations = new operations.MessagingPlanOperations(this); | ||
this.disasterRecoveryConfigs = new operations.DisasterRecoveryConfigs(this); | ||
this.eventHubs = new operations.EventHubs(this); | ||
this.consumerGroups = new operations.ConsumerGroups(this); | ||
this.regions = new operations.Regions(this); | ||
this.models = models; | ||
@@ -88,1 +90,4 @@ msRest.addSerializationMixin(this); | ||
module.exports = EventHubManagementClient; | ||
module.exports['default'] = EventHubManagementClient; | ||
module.exports.EventHubManagementClient = EventHubManagementClient; | ||
module.exports.EventHubManagementModels = models; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -405,5 +405,49 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the MessagingRegionsProperties class. | ||
* @constructor | ||
* @member {string} [code] Region code | ||
* @member {string} [fullName] Full name of the region | ||
*/ | ||
export interface MessagingRegionsProperties { | ||
readonly code?: string; | ||
readonly fullName?: string; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the MessagingRegions class. | ||
* @constructor | ||
* Messaging Region | ||
* | ||
* @member {object} [properties] | ||
* @member {string} [properties.code] Region code | ||
* @member {string} [properties.fullName] Full name of the region | ||
*/ | ||
export interface MessagingRegions extends TrackedResource { | ||
properties?: MessagingRegionsProperties; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the MessagingPlan class. | ||
* @constructor | ||
* Messaging | ||
* | ||
* @member {number} [sku] Sku type | ||
* @member {number} [selectedEventHubUnit] Selected event hub unit | ||
* @member {date} [updatedAt] The exact time the messaging plan was updated. | ||
* @member {number} [revision] revision number | ||
*/ | ||
export interface MessagingPlan extends TrackedResource { | ||
sku?: number; | ||
selectedEventHubUnit?: number; | ||
readonly updatedAt?: Date; | ||
revision?: number; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the OperationListResult class. | ||
@@ -485,1 +529,14 @@ * @constructor | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the MessagingRegionsListResult class. | ||
* @constructor | ||
* The response of the List MessagingRegions operation. | ||
* | ||
* @member {string} [nextLink] Link to the next set of results. Not empty if | ||
* Value contains incomplete list of MessagingRegions. | ||
*/ | ||
export interface MessagingRegionsListResult extends Array<MessagingRegions> { | ||
readonly nextLink?: string; | ||
} |
@@ -38,2 +38,5 @@ /* | ||
exports.ArmDisasterRecovery = require('./armDisasterRecovery'); | ||
exports.MessagingRegionsProperties = require('./messagingRegionsProperties'); | ||
exports.MessagingRegions = require('./messagingRegions'); | ||
exports.MessagingPlan = require('./messagingPlan'); | ||
exports.OperationListResult = require('./operationListResult'); | ||
@@ -45,1 +48,2 @@ exports.EHNamespaceListResult = require('./eHNamespaceListResult'); | ||
exports.ConsumerGroupListResult = require('./consumerGroupListResult'); | ||
exports.MessagingRegionsListResult = require('./messagingRegionsListResult'); |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -19,4 +19,6 @@ /* | ||
exports.Namespaces = require('./namespaces'); | ||
exports.MessagingPlanOperations = require('./messagingPlanOperations'); | ||
exports.DisasterRecoveryConfigs = require('./disasterRecoveryConfigs'); | ||
exports.EventHubs = require('./eventHubs'); | ||
exports.ConsumerGroups = require('./consumerGroups'); | ||
exports.Regions = require('./regions'); |
@@ -0,0 +0,0 @@ /* |
The MIT License (MIT) | ||
Copyright (c) 2017 Microsoft | ||
Copyright (c) 2018 Microsoft | ||
@@ -21,2 +21,2 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
{ | ||
"name": "azure-arm-eventhub", | ||
"author": "Microsoft Corporation", | ||
"contributors": [ | ||
"Zeeshan Sayed <sazeesha@microsoft.com>", | ||
"Amar Zavery <amzavery@microsoft.com>" | ||
], | ||
"version": "1.2.0-preview", | ||
"description": "Microsoft EventHub Management Client Library for node", | ||
"tags": [ | ||
"azure", | ||
"sdk" | ||
], | ||
"description": "EventHubManagementClient Library with typescript type definitions for node", | ||
"version": "1.3.0", | ||
"dependencies": { | ||
"ms-rest": "^2.3.2", | ||
"ms-rest-azure": "^2.5.5" | ||
}, | ||
"keywords": [ | ||
@@ -18,13 +14,9 @@ "node", | ||
], | ||
"license": "MIT", | ||
"main": "./lib/eventHubManagementClient.js", | ||
"types": "./lib/eventHubManagementClient.d.ts", | ||
"license": "MIT", | ||
"dependencies": { | ||
"ms-rest-azure": "^2.5.3", | ||
"ms-rest": "^2.3.0" | ||
}, | ||
"homepage": "http://github.com/Azure/azure-sdk-for-node", | ||
"homepage": "http://github.com/azure/azure-sdk-for-node", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:Azure/azure-sdk-for-node.git" | ||
"url": "https://github.com/azure/azure-sdk-for-node.git" | ||
}, | ||
@@ -31,0 +23,0 @@ "bugs": { |
@@ -1,6 +0,13 @@ | ||
# Microsoft Azure SDK for Node.js - EventHubManagement | ||
--- | ||
uid: azure-arm-eventhub | ||
summary: *content | ||
This project provides a Node.js package that makes it easy to manage Azure EventHub Resources. Right now it supports: | ||
- **Node.js version: 6.0.0 or higher** | ||
--- | ||
# Microsoft Azure SDK for Node.js - EventHubManagementClient | ||
This project provides a Node.js package for accessing Azure. Right now it supports: | ||
- **Node.js version 6.x.x or higher** | ||
## Features | ||
## How to Install | ||
@@ -12,30 +19,23 @@ | ||
## How to Use | ||
## How to use | ||
### Authentication, client creation and getting information about an eventhub as an example | ||
### Authentication, client creation and list operations as an example. | ||
```javascript | ||
var msRestAzure = require('ms-rest-azure'); | ||
var EventHubManagement = require('azure-arm-eventhub'); | ||
// Interactive Login | ||
msRestAzure.interactiveLogin(function(err, credentials) { | ||
var client = new EventHubManagement(credentials, 'your-subscription-id'); | ||
var resourceGroupName = 'testRG'; | ||
var namespaceName = 'testNS'; | ||
var eventHubName = 'testEH'; | ||
client.eventHubs.get(resourceGroupName, namespaceName, eventHubName, function(err, eventHubs, request, response) { | ||
if (err) { | ||
console.log(err); | ||
} else { | ||
eventHubs.map(function (hub, index, array) { | ||
console.log('found hub :' + hub.name); | ||
})); | ||
} | ||
}); | ||
}); | ||
``` | ||
```javascript | ||
const msRestAzure = require("ms-rest-azure"); | ||
const EventHubManagementClient = require("azure-arm-eventhub"); | ||
msRestAzure.interactiveLogin().then((creds) => { | ||
const subscriptionId = "<Subscription_Id>"; | ||
const client = new EventHubManagementClient(creds, subscriptionId); | ||
return client.operations.list().then((result) => { | ||
console.log("The result is:"); | ||
console.log(result); | ||
}); | ||
}).catch((err) => { | ||
console.log('An error ocurred:'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
## Related projects | ||
- [Microsoft Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node) | ||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
860446
43
20189
0
1
Updatedms-rest@^2.3.2
Updatedms-rest-azure@^2.5.5