Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR web/resource-manager] Adding new API version for Microsoft.Web RP which fixes swagger errors #2650

Merged
merged 3 commits into from
Apr 12, 2018
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
21 changes: 21 additions & 0 deletions lib/services/websiteManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +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.
40 changes: 40 additions & 0 deletions lib/services/websiteManagement2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
uid: azure-arm-website
summary: *content

---
# Microsoft Azure SDK for Node.js - WebSiteManagementClient
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-website
```

## How to use

### Authentication, client creation and list appServiceCertificateOrders as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const WebSiteManagementClient = require("azure-arm-website");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new WebSiteManagementClient(creds, subscriptionId);
return client.appServiceCertificateOrders.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
59 changes: 48 additions & 11 deletions lib/services/websiteManagement2/lib/models/billingMeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@

'use strict';

const models = require('./index');

/**
* Billing meter.
* App Service billing entity that contains information about meter which the
* Azure billing system utilizes to charge users for services.
*
* @extends models['ProxyOnlyResource']
*/
class BillingMeter {
class BillingMeter extends models['ProxyOnlyResource'] {
/**
* Create a BillingMeter.
* @member {string} [meterId] Meter GUID onboarded in Commerce
* @member {string} [billingLocation] CSM Location
* @member {string} [shortName] Short Name from Azure pricing Page
* @member {string} [friendlyName] Meter Resource Name
* @member {string} [resourceType] ResourceType meter used for
* @member {string} [billingLocation] Azure Location of billable resource
* @member {string} [shortName] Short Name from App Service Azure pricing
* Page
* @member {string} [friendlyName] Friendly name of the meter
* @member {string} [resourceType] App Service resource type meter used for
*/
constructor() {
super();
}

/**
Expand All @@ -40,37 +46,68 @@ class BillingMeter {
name: 'Composite',
className: 'BillingMeter',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
kind: {
required: false,
serializedName: 'kind',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
meterId: {
required: false,
serializedName: 'meterId',
serializedName: 'properties.meterId',
type: {
name: 'String'
}
},
billingLocation: {
required: false,
serializedName: 'billingLocation',
serializedName: 'properties.billingLocation',
type: {
name: 'String'
}
},
shortName: {
required: false,
serializedName: 'shortName',
serializedName: 'properties.shortName',
type: {
name: 'String'
}
},
friendlyName: {
required: false,
serializedName: 'friendlyName',
serializedName: 'properties.friendlyName',
type: {
name: 'String'
}
},
resourceType: {
required: false,
serializedName: 'resourceType',
serializedName: 'properties.resourceType',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* 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.
*/

'use strict';

/**
* Collection of Billing Meters
*/
class BillingMeterCollection extends Array {
/**
* Create a BillingMeterCollection.
* @member {string} [nextLink] Link to next page of resources.
*/
constructor() {
super();
}

/**
* Defines the metadata of BillingMeterCollection
*
* @returns {object} metadata of BillingMeterCollection
*
*/
mapper() {
return {
required: false,
serializedName: 'BillingMeterCollection',
type: {
name: 'Composite',
className: 'BillingMeterCollection',
modelProperties: {
value: {
required: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'BillingMeterElementType',
type: {
name: 'Composite',
className: 'BillingMeter'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = BillingMeterCollection;
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const models = require('./index');
class DefaultErrorResponseError {
/**
* Create a DefaultErrorResponseError.
* @member {string} code Standardized string to programmatically identify the
* error.
* @member {string} message Detailed error description and debugging
* @member {string} [code] Standardized string to programmatically identify
* the error.
* @member {string} [message] Detailed error description and debugging
* information.
* @member {string} [target] Detailed error description and debugging
* information.
Expand All @@ -46,15 +46,15 @@ class DefaultErrorResponseError {
className: 'DefaultErrorResponseError',
modelProperties: {
code: {
required: true,
required: false,
readOnly: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: true,
required: false,
readOnly: true,
serializedName: 'message',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
class DefaultErrorResponseErrorDetailsItem {
/**
* Create a DefaultErrorResponseErrorDetailsItem.
* @member {string} code Standardized string to programmatically identify the
* error.
* @member {string} message Detailed error description and debugging
* @member {string} [code] Standardized string to programmatically identify
* the error.
* @member {string} [message] Detailed error description and debugging
* information.
* @member {string} [target] Detailed error description and debugging
* information.
Expand All @@ -42,15 +42,15 @@ class DefaultErrorResponseErrorDetailsItem {
className: 'DefaultErrorResponseErrorDetailsItem',
modelProperties: {
code: {
required: true,
required: false,
readOnly: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: true,
required: false,
readOnly: true,
serializedName: 'message',
type: {
Expand Down
6 changes: 3 additions & 3 deletions lib/services/websiteManagement2/lib/models/handlerMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class HandlerMapping {
* using the specified FastCGI application.
* @member {string} [scriptProcessor] The absolute path to the FastCGI
* application.
* @member {string} [arguments] Command-line arguments to be passed to the
* script processor.
* @member {string} [argumentsProperty] Command-line arguments to be passed
* to the script processor.
*/
constructor() {
}
Expand Down Expand Up @@ -58,7 +58,7 @@ class HandlerMapping {
name: 'String'
}
},
arguments: {
argumentsProperty: {
required: false,
serializedName: 'arguments',
type: {
Expand Down
Loading