diff --git a/lib/services/apimanagement/LICENSE.txt b/lib/services/apimanagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/apimanagement/LICENSE.txt +++ b/lib/services/apimanagement/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/lib/services/apimanagement/README.md b/lib/services/apimanagement/README.md index 49ab69189f..33a2a09333 100644 --- a/lib/services/apimanagement/README.md +++ b/lib/services/apimanagement/README.md @@ -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 = ""; - 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 = ""; + 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) diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index 7aaebd0e66..4d9a030f90 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -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; diff --git a/lib/services/apimanagement/lib/models/policyContract.js b/lib/services/apimanagement/lib/models/policyContract.js index 2e7ab71a6d..f335557dff 100644 --- a/lib/services/apimanagement/lib/models/policyContract.js +++ b/lib/services/apimanagement/lib/models/policyContract.js @@ -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(); diff --git a/lib/services/apimanagement/lib/operations/apiOperationPolicy.js b/lib/services/apimanagement/lib/operations/apiOperationPolicy.js index 2a504649ca..02ff39bf3f 100644 --- a/lib/services/apimanagement/lib/operations/apiOperationPolicy.js +++ b/lib/services/apimanagement/lib/operations/apiOperationPolicy.js @@ -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. * @@ -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. * @@ -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. * diff --git a/lib/services/apimanagement/lib/operations/apiPolicy.js b/lib/services/apimanagement/lib/operations/apiPolicy.js index 600e185bb5..048a63f56c 100644 --- a/lib/services/apimanagement/lib/operations/apiPolicy.js +++ b/lib/services/apimanagement/lib/operations/apiPolicy.js @@ -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. * @@ -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. * @@ -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. * diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index bd0f55da27..0b13b0b4ed 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -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. * @@ -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. * @@ -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. * @@ -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. * @@ -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. * @@ -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. * @@ -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. * @@ -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. * diff --git a/lib/services/apimanagement/lib/operations/policy.js b/lib/services/apimanagement/lib/operations/policy.js index 7b144325dc..dd48fa49e1 100644 --- a/lib/services/apimanagement/lib/operations/policy.js +++ b/lib/services/apimanagement/lib/operations/policy.js @@ -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. * @@ -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. * @@ -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. * diff --git a/lib/services/apimanagement/lib/operations/productPolicy.js b/lib/services/apimanagement/lib/operations/productPolicy.js index 5a805671d5..99192fadd6 100644 --- a/lib/services/apimanagement/lib/operations/productPolicy.js +++ b/lib/services/apimanagement/lib/operations/productPolicy.js @@ -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. * @@ -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. * @@ -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. *