Skip to content

Commit

Permalink
Generated from 848b0f1e3a346d31bf0134c2f075586c69075f28
Browse files Browse the repository at this point in the history
corrected parameter location
  • Loading branch information
SDK Automation committed Apr 22, 2020
1 parent 0c7adb7 commit feb94c0
Show file tree
Hide file tree
Showing 22 changed files with 3,354 additions and 1,264 deletions.
8 changes: 4 additions & 4 deletions sdk/eventhub/arm-eventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-eventhub

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - Authentication, client creation and listAvailableClusters clusters as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -35,7 +35,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new EventHubManagementClient(creds, subscriptionId);
client.operations.list().then((result) => {
client.clusters.listAvailableClusters().then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -44,7 +44,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and list operations as an example written in JavaScript.
#### browser - Authentication, client creation and listAvailableClusters clusters as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

Expand Down Expand Up @@ -78,7 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
authManager.login();
}
const client = new Azure.ArmEventhub.EventHubManagementClient(res.creds, subscriptionId);
client.operations.list().then((result) => {
client.clusters.listAvailableClusters().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
8 changes: 6 additions & 2 deletions sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ import { EventHubManagementClientContext } from "./eventHubManagementClientConte

class EventHubManagementClient extends EventHubManagementClientContext {
// Operation groups
operations: operations.Operations;
clusters: operations.Clusters;
namespaces: operations.Namespaces;
operations: operations.Operations;
configuration: operations.Configuration;
disasterRecoveryConfigs: operations.DisasterRecoveryConfigs;
eventHubs: operations.EventHubs;
consumerGroups: operations.ConsumerGroups;
Expand All @@ -33,8 +35,10 @@ class EventHubManagementClient extends EventHubManagementClientContext {
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.EventHubManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.clusters = new operations.Clusters(this);
this.namespaces = new operations.Namespaces(this);
this.operations = new operations.Operations(this);
this.configuration = new operations.Configuration(this);
this.disasterRecoveryConfigs = new operations.DisasterRecoveryConfigs(this);
this.eventHubs = new operations.EventHubs(this);
this.consumerGroups = new operations.ConsumerGroups(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const packageVersion = "3.2.0";
export class EventHubManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the EventHubManagementClient class.
Expand All @@ -45,7 +44,6 @@ export class EventHubManagementClientContext extends msRestAzure.AzureServiceCli

super(credentials, options);

this.apiVersion = '2017-04-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
40 changes: 40 additions & 0 deletions sdk/eventhub/arm-eventhub/src/models/clustersMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ArmDisasterRecovery,
AuthorizationRule,
AvailableCluster,
AvailableClustersList,
BaseResource,
CaptureDescription,
Cluster,
ClusterListResult,
ClusterSku,
ConsumerGroup,
Destination,
EHNamespace,
EHNamespaceIdContainer,
EHNamespaceIdListResult,
Encryption,
ErrorResponse,
Eventhub,
Identity,
IpFilterRule,
KeyVaultProperties,
MessagingRegions,
MessagingRegionsProperties,
NetworkRuleSet,
NWRuleSetIpRules,
NWRuleSetVirtualNetworkRules,
Resource,
Sku,
Subnet,
TrackedResource,
VirtualNetworkRule
} from "../models/mappers";
12 changes: 12 additions & 0 deletions sdk/eventhub/arm-eventhub/src/models/configurationMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* 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.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ClusterQuotaConfigurationProperties,
ErrorResponse
} from "../models/mappers";
10 changes: 8 additions & 2 deletions sdk/eventhub/arm-eventhub/src/models/consumerGroupsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ export {
AuthorizationRule,
BaseResource,
CaptureDescription,
Cluster,
ClusterSku,
ConsumerGroup,
ConsumerGroupListResult,
Destination,
EHNamespace,
Encryption,
ErrorResponse,
Eventhub,
MessagingPlan,
Identity,
IpFilterRule,
KeyVaultProperties,
MessagingRegions,
MessagingRegionsProperties,
NetworkRuleSet,
Expand All @@ -26,5 +31,6 @@ export {
Resource,
Sku,
Subnet,
TrackedResource
TrackedResource,
VirtualNetworkRule
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ export {
CaptureDescription,
CheckNameAvailabilityParameter,
CheckNameAvailabilityResult,
Cluster,
ClusterSku,
ConsumerGroup,
Destination,
EHNamespace,
Encryption,
ErrorResponse,
Eventhub,
MessagingPlan,
Identity,
IpFilterRule,
KeyVaultProperties,
MessagingRegions,
MessagingRegionsProperties,
NetworkRuleSet,
Expand All @@ -30,5 +35,6 @@ export {
Resource,
Sku,
Subnet,
TrackedResource
TrackedResource,
VirtualNetworkRule
} from "../models/mappers";
10 changes: 8 additions & 2 deletions sdk/eventhub/arm-eventhub/src/models/eventHubsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ export {
AuthorizationRuleListResult,
BaseResource,
CaptureDescription,
Cluster,
ClusterSku,
ConsumerGroup,
Destination,
EHNamespace,
Encryption,
ErrorResponse,
Eventhub,
EventHubListResult,
MessagingPlan,
Identity,
IpFilterRule,
KeyVaultProperties,
MessagingRegions,
MessagingRegionsProperties,
NetworkRuleSet,
Expand All @@ -29,5 +34,6 @@ export {
Resource,
Sku,
Subnet,
TrackedResource
TrackedResource,
VirtualNetworkRule
} from "../models/mappers";
Loading

0 comments on commit feb94c0

Please sign in to comment.