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

Commit

Permalink
Generated from 6085607286ab258abaf5d9f5d3aa774c92a9af81 (#4278)
Browse files Browse the repository at this point in the history
typo: marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering

- reponse -> response
  • Loading branch information
AutorestCI authored Dec 3, 2018
1 parent 54ccef4 commit 064cb78
Show file tree
Hide file tree
Showing 13 changed files with 190 additions and 200 deletions.
42 changes: 21 additions & 21 deletions lib/services/marketplaceorderingManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 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.
82 changes: 44 additions & 38 deletions lib/services/marketplaceorderingManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
# Microsoft Azure SDK for Node.js - MarketplaceOrderingAgreement

This project provides a Node.js package for accessing the Azure PAS. Right now it supports:
- **Node.js version: 6.x.x or higher**

## How to Install

```bash
npm install azure-arm-marketplaceordering
```

## How to Use

### Authentication, client creation and listing marketplaceAgreements as an example

```javascript
var msRestAzure = require('ms-rest-azure');
var MarketplaceOrderingAgreementClient = require("azure-arm-marketplaceordering");

// Interactive Login
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful,
// the user will get a DeviceTokenCredentials object.
msRestAzure.interactiveLogin(function(err, credentials) {
let client = new MarketplaceOrderingAgreementClient(credentials, 'your-subscription-id');
client.marketplaceAgreements.get('publisherId', 'offerId', 'planId').then((marketplaceAgreements) => {
console.log('List of marketplaceAgreements:');
console.dir(marketplaceAgreements, {depth: null, colors: true});
});
}).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)
---
uid: azure-arm-marketplaceordering
summary: *content

---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## Microsoft Azure SDK for Node.js - MarketplaceOrderingAgreements
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-marketplaceordering
```

### How to use

#### Authentication, client creation and get marketplaceAgreements as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const MarketplaceOrderingAgreements = require("azure-arm-marketplaceordering");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new MarketplaceOrderingAgreements(creds, subscriptionId);
const publisherId = "testpublisherId";
const offerId = "testofferId";
const planId = "testplanId";
return client.marketplaceAgreements.get(publisherId, offerId, planId).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)
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class MarketplaceOrderingAgreements extends AzureServiceClient {
export default class MarketplaceOrderingAgreements extends AzureServiceClient {
/**
* Initializes a new instance of the MarketplaceOrderingAgreements class.
* @constructor
Expand All @@ -33,11 +34,11 @@ declare class MarketplaceOrderingAgreements extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand All @@ -59,4 +60,4 @@ declare class MarketplaceOrderingAgreements extends AzureServiceClient {
operations: operations.Operations;
}

export = MarketplaceOrderingAgreements;
export { MarketplaceOrderingAgreements, models as MarketplaceOrderingAgreementsModels };
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class MarketplaceOrderingAgreements extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand Down Expand Up @@ -81,3 +81,6 @@ class MarketplaceOrderingAgreements extends ServiceClient {
}

module.exports = MarketplaceOrderingAgreements;
module.exports['default'] = MarketplaceOrderingAgreements;
module.exports.MarketplaceOrderingAgreements = MarketplaceOrderingAgreements;
module.exports.MarketplaceOrderingAgreementsModels = models;
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ const models = require('./index');
class AgreementTerms extends models['Resource'] {
/**
* Create a AgreementTerms.
* @member {string} [publisher] Publisher identifier string of image being
* @property {string} [publisher] Publisher identifier string of image being
* deployed.
* @member {string} [product] Offer identifier string of image being
* @property {string} [product] Offer identifier string of image being
* deployed.
* @member {string} [plan] Plan identifier string of image being deployed.
* @member {string} [licenseTextLink] Link to HTML with Microsoft and
* @property {string} [plan] Plan identifier string of image being deployed.
* @property {string} [licenseTextLink] Link to HTML with Microsoft and
* Publisher terms.
* @member {string} [privacyPolicyLink] Link to the privacy policy of the
* @property {string} [privacyPolicyLink] Link to the privacy policy of the
* publisher.
* @member {string} [retrieveDatetime] Date and time in UTC of when the terms
* were accepted. This is empty if Accepted is false.
* @member {string} [signature] Terms signature.
* @member {boolean} [accepted] If any version of the terms have been
* @property {string} [retrieveDatetime] Date and time in UTC of when the
* terms were accepted. This is empty if Accepted is false.
* @property {string} [signature] Terms signature.
* @property {boolean} [accepted] If any version of the terms have been
* accepted, otherwise false.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@

'use strict';

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

/**
* Error reponse indicates Microsoft.MarketplaceOrdering service is not able to
* process the incoming request. The reason is provided in the error message.
* Error response indicates Microsoft.MarketplaceOrdering service is not able
* to process the incoming request. The reason is provided in the error
* message.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @member {object} [error] The details of the error.
* @member {string} [error.code] Error code.
* @member {string} [error.message] Error message indicating why the
* @property {object} [error] The details of the error.
* @property {string} [error.code] Error code.
* @property {string} [error.message] Error message indicating why the
* operation failed.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class ErrorResponseError {
/**
* Create a ErrorResponseError.
* @member {string} [code] Error code.
* @member {string} [message] Error message indicating why the operation
* @property {string} [code] Error code.
* @property {string} [message] Error message indicating why the operation
* failed.
*/
constructor() {
Expand Down
Loading

0 comments on commit 064cb78

Please sign in to comment.