Skip to content

Commit

Permalink
Generated from e6fe8982616bc5219be3f69b2486aa9cb00d6cf2
Browse files Browse the repository at this point in the history
Update EventHub.json
  • Loading branch information
SDK Automation committed Dec 18, 2019
1 parent 4846948 commit 59bc660
Show file tree
Hide file tree
Showing 10 changed files with 206 additions and 16 deletions.
6 changes: 3 additions & 3 deletions sdk/eventhub/arm-eventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ npm install @azure/arm-eventhub

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

- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth
npm install @azure/ms-rest-nodeauth@"^3.0.0"
```

##### Sample code
Expand Down Expand Up @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Feventhub%2Farm-eventhub%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/eventhub/arm-eventhub/README.png)
20 changes: 10 additions & 10 deletions sdk/eventhub/arm-eventhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "EventHubManagementClient Library with typescript type definitions for node.js and browser.",
"version": "3.2.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -20,19 +20,19 @@
"module": "./esm/eventHubManagementClient.js",
"types": "./esm/eventHubManagementClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/eventhub/arm-eventhub",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/eventhub/arm-eventhub",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/arm-eventhub/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};
Expand Down
53 changes: 53 additions & 0 deletions sdk/eventhub/arm-eventhub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,19 @@ export interface AuthorizationRuleListResult extends Array<AuthorizationRule> {
nextLink?: string;
}

/**
* @interface
* The response of the List NetworkRuleSet operation
* @extends Array<NetworkRuleSet>
*/
export interface NetworkRuleSetListResult extends Array<NetworkRuleSet> {
/**
* Link to the next set of results. Not empty if Value contains incomplete list of
* NetworkRuleSet.
*/
nextLink?: string;
}

/**
* @interface
* The result of the List Alias(Disaster Recovery configuration) operation.
Expand Down Expand Up @@ -1057,6 +1070,26 @@ export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & {
};
};

/**
* Contains response data for the listNetworkRuleSets operation.
*/
export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & {
/**
* 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: NetworkRuleSetListResult;
};
};

/**
* Contains response data for the beginCreateOrUpdate operation.
*/
Expand Down Expand Up @@ -1137,6 +1170,26 @@ export type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleList
};
};

/**
* Contains response data for the listNetworkRuleSetsNext operation.
*/
export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult & {
/**
* 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: NetworkRuleSetListResult;
};
};

/**
* Contains response data for the checkNameAvailability operation.
*/
Expand Down
28 changes: 28 additions & 0 deletions sdk/eventhub/arm-eventhub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,34 @@ export const AuthorizationRuleListResult: msRest.CompositeMapper = {
}
};

export const NetworkRuleSetListResult: msRest.CompositeMapper = {
serializedName: "NetworkRuleSetListResult",
type: {
name: "Composite",
className: "NetworkRuleSetListResult",
modelProperties: {
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "NetworkRuleSet"
}
}
}
},
nextLink: {
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};

export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = {
serializedName: "ArmDisasterRecoveryListResult",
type: {
Expand Down
1 change: 1 addition & 0 deletions sdk/eventhub/arm-eventhub/src/models/namespacesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export {
MessagingRegions,
MessagingRegionsProperties,
NetworkRuleSet,
NetworkRuleSetListResult,
NWRuleSetIpRules,
NWRuleSetVirtualNetworkRules,
RegenerateAccessKeyParameters,
Expand Down
1 change: 1 addition & 0 deletions sdk/eventhub/arm-eventhub/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const eventHubName: msRest.OperationURLParameter = {
required: true,
serializedName: "eventHubName",
constraints: {
MaxLength: 50,
MinLength: 1
},
type: {
Expand Down
3 changes: 2 additions & 1 deletion sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ export class EventHubs {
}

/**
* Creates or updates an AuthorizationRule for the specified Event Hub.
* Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the
* AuthorizationRule will take a few seconds to take effect.
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name
* @param eventHubName The Event Hub name
Expand Down
106 changes: 106 additions & 0 deletions sdk/eventhub/arm-eventhub/src/operations/namespaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,38 @@ export class Namespaces {
callback) as Promise<Models.NamespacesGetNetworkRuleSetResponse>;
}

/**
* Gets list of NetworkRuleSet 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<Models.NamespacesListNetworkRuleSetsResponse>
*/
listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.NamespacesListNetworkRuleSetsResponse>;
/**
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name
* @param callback The callback
*/
listNetworkRuleSets(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): 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
*/
listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): void;
listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NetworkRuleSetListResult>, callback?: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): Promise<Models.NamespacesListNetworkRuleSetsResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
namespaceName,
options
},
listNetworkRuleSetsOperationSpec,
callback) as Promise<Models.NamespacesListNetworkRuleSetsResponse>;
}

/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable.
* This operation is idempotent.
Expand Down Expand Up @@ -646,6 +678,34 @@ export class Namespaces {
listAuthorizationRulesNextOperationSpec,
callback) as Promise<Models.NamespacesListAuthorizationRulesNextResponse>;
}

/**
* Gets list of NetworkRuleSet for a Namespace.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.NamespacesListNetworkRuleSetsNextResponse>
*/
listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.NamespacesListNetworkRuleSetsNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listNetworkRuleSetsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): void;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param options The optional parameters
* @param callback The callback
*/
listNetworkRuleSetsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): void;
listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NetworkRuleSetListResult>, callback?: msRest.ServiceCallback<Models.NetworkRuleSetListResult>): Promise<Models.NamespacesListNetworkRuleSetsNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNetworkRuleSetsNextOperationSpec,
callback) as Promise<Models.NamespacesListNetworkRuleSetsNextResponse>;
}
}

// Operation Specifications
Expand Down Expand Up @@ -1041,6 +1101,31 @@ const getNetworkRuleSetOperationSpec: msRest.OperationSpec = {
serializer
};

const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets",
urlParameters: [
Parameters.resourceGroupName,
Parameters.namespaceName,
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.NetworkRuleSetListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};

const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
httpMethod: "PUT",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}",
Expand Down Expand Up @@ -1164,3 +1249,24 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = {
},
serializer
};

const listNetworkRuleSetsNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
path: "{nextLink}",
urlParameters: [
Parameters.nextPageLink
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.NetworkRuleSetListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};
2 changes: 1 addition & 1 deletion sdk/eventhub/arm-eventhub/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es6"],
"lib": ["es6", "dom"],
"declaration": true,
"outDir": "./esm",
"importHelpers": true
Expand Down

0 comments on commit 59bc660

Please sign in to comment.