Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/apimanagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
76 changes: 38 additions & 38 deletions lib/services/apimanagement/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# Microsoft Azure SDK for Node.js - ApiManagementClient
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

```bash
npm install azure-arm-apimanagement
```

## How to use

### Authentication, client creation and listByService policy as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const ApiManagementClient = require("azure-arm-apimanagement");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new ApiManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const serviceName = "testserviceName";
const scope = "Tenant";
return client.policy.listByService(resourceGroupName, serviceName, scope).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](https://github.com/Azure/azure-sdk-for-node)
# Microsoft Azure SDK for Node.js - ApiManagementClient
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
```bash
npm install azure-arm-apimanagement
```
## How to use
### Authentication, client creation and listByService policy as an example.
```javascript
const msRestAzure = require("ms-rest-azure");
const ApiManagementClient = require("azure-arm-apimanagement");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new ApiManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const serviceName = "testserviceName";
const scope = "Tenant";
return client.policy.listByService(resourceGroupName, serviceName, scope).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](https://github.com/Azure/azure-sdk-for-node)
3 changes: 2 additions & 1 deletion lib/services/apimanagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export interface Resource extends BaseResource {
* @member {string} policyContent Json escaped Xml Encoded contents of the
* Policy.
* @member {string} [contentFormat] Format of the policyContent. Possible
* values include: 'xml', 'xml-link'. Default value: 'xml' .
* values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. Default value:
* 'xml' .
*/
export interface PolicyContract extends Resource {
policyContent: string;
Expand Down
3 changes: 2 additions & 1 deletion lib/services/apimanagement/lib/models/policyContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class PolicyContract extends models['Resource'] {
* @member {string} policyContent Json escaped Xml Encoded contents of the
* Policy.
* @member {string} [contentFormat] Format of the policyContent. Possible
* values include: 'xml', 'xml-link'. Default value: 'xml' .
* values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. Default value:
* 'xml' .
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function _get(resourceGroupName, serviceName, apiId, operationId, options, callb
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1400,7 +1400,7 @@ class ApiOperationPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1450,7 +1450,7 @@ class ApiOperationPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down
6 changes: 3 additions & 3 deletions lib/services/apimanagement/lib/operations/apiPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ function _get(resourceGroupName, serviceName, apiId, options, callback) {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1274,7 +1274,7 @@ class ApiPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1321,7 +1321,7 @@ class ApiPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down
16 changes: 8 additions & 8 deletions lib/services/apimanagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export interface Policy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -249,7 +249,7 @@ export interface Policy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -3168,7 +3168,7 @@ export interface ApiOperationPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -3206,7 +3206,7 @@ export interface ApiOperationPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -3702,7 +3702,7 @@ export interface ApiPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -3737,7 +3737,7 @@ export interface ApiPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -17333,7 +17333,7 @@ export interface ProductPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -17367,7 +17367,7 @@ export interface ProductPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down
6 changes: 3 additions & 3 deletions lib/services/apimanagement/lib/operations/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function _get(resourceGroupName, serviceName, options, callback) {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1146,7 +1146,7 @@ class Policy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1187,7 +1187,7 @@ class Policy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down
6 changes: 3 additions & 3 deletions lib/services/apimanagement/lib/operations/productPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ function _get(resourceGroupName, serviceName, productId, options, callback) {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1259,7 +1259,7 @@ class ProductPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1305,7 +1305,7 @@ class ProductPolicy {
* of the Policy.
*
* @param {string} [parameters.contentFormat] Format of the policyContent.
* Possible values include: 'xml', 'xml-link'
* Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
*
* @param {object} [options] Optional Parameters.
*
Expand Down