diff --git a/packages/@azure/arm-marketplaceordering/lib/marketplaceOrderingAgreementsContext.ts b/packages/@azure/arm-marketplaceordering/lib/marketplaceOrderingAgreementsContext.ts index f887b693a463..391296ab2460 100644 --- a/packages/@azure/arm-marketplaceordering/lib/marketplaceOrderingAgreementsContext.ts +++ b/packages/@azure/arm-marketplaceordering/lib/marketplaceOrderingAgreementsContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-marketplaceordering"; -const packageVersion = "1.2.0"; +const packageVersion = "1.3.0"; export class MarketplaceOrderingAgreementsContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-marketplaceordering/lib/models/index.ts b/packages/@azure/arm-marketplaceordering/lib/models/index.ts index 2c310d323eef..02f481eba327 100644 --- a/packages/@azure/arm-marketplaceordering/lib/models/index.ts +++ b/packages/@azure/arm-marketplaceordering/lib/models/index.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -11,141 +13,189 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; + /** + * @interface + * An interface representing Resource. * ARM resource. + * + * @extends BaseResource */ export interface Resource extends BaseResource { /** - * Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; } /** + * @interface + * An interface representing AgreementTerms. * Terms properties for provided Publisher/Offer/Plan tuple + * + * @extends Resource */ export interface AgreementTerms extends Resource { /** - * Publisher identifier string of image being deployed. + * @member {string} [publisher] Publisher identifier string of image being + * deployed. */ publisher?: string; /** - * Offer identifier string of image being deployed. + * @member {string} [product] Offer identifier string of image being + * deployed. */ product?: string; /** - * Plan identifier string of image being deployed. + * @member {string} [plan] Plan identifier string of image being deployed. */ plan?: string; /** - * Link to HTML with Microsoft and Publisher terms. + * @member {string} [licenseTextLink] Link to HTML with Microsoft and + * Publisher terms. */ licenseTextLink?: string; /** - * Link to the privacy policy of the publisher. + * @member {string} [privacyPolicyLink] Link to the privacy policy of the + * publisher. */ privacyPolicyLink?: string; /** - * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. + * @member {string} [retrieveDatetime] Date and time in UTC of when the terms + * were accepted. This is empty if Accepted is false. */ retrieveDatetime?: string; /** - * Terms signature. + * @member {string} [signature] Terms signature. */ signature?: string; /** - * If any version of the terms have been accepted, otherwise false. + * @member {boolean} [accepted] If any version of the terms have been + * accepted, otherwise false. */ accepted?: boolean; } /** + * @interface + * An interface representing ErrorResponseError. * The details of the error. + * */ export interface ErrorResponseError { /** - * Error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [code] Error code. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly code?: string; /** - * Error message indicating why the operation failed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [message] Error message indicating why the operation + * failed. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly message?: string; } /** - * Error response indicates Microsoft.MarketplaceOrdering service is not able to process the - * incoming request. The reason is provided in the error message. + * @interface + * An interface representing ErrorResponse. + * Error response indicates Microsoft.MarketplaceOrdering service is not able + * to process the incoming request. The reason is provided in the error + * message. + * */ export interface ErrorResponse { /** - * The details of the error. + * @member {ErrorResponseError} [error] The details of the error. */ error?: ErrorResponseError; } /** + * @interface + * An interface representing OperationDisplay. * The object that represents the operation. + * */ export interface OperationDisplay { /** - * Service provider: Microsoft.MarketplaceOrdering + * @member {string} [provider] Service provider: + * Microsoft.MarketplaceOrdering */ provider?: string; /** - * Resource on which the operation is performed: Agreement, virtualmachine, etc. + * @member {string} [resource] Resource on which the operation is performed: + * Agreement, virtualmachine, etc. */ resource?: string; /** - * Operation type: Get Agreement, Sign Agreement, Cancel Agreement etc. + * @member {string} [operation] Operation type: Get Agreement, Sign + * Agreement, Cancel Agreement etc. */ operation?: string; } /** + * @interface + * An interface representing Operation. * Microsoft.MarketplaceOrdering REST API operation + * */ export interface Operation { /** - * Operation name: {provider}/{resource}/{operation} + * @member {string} [name] Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * The object that represents the operation. + * @member {OperationDisplay} [display] The object that represents the + * operation. */ display?: OperationDisplay; } /** + * @interface * An interface representing MarketplaceOrderingAgreementsOptions. + * @extends AzureServiceClientOptions */ export interface MarketplaceOrderingAgreementsOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ baseUri?: string; } + /** * @interface - * Result of the request to list MarketplaceOrdering operations. It contains a list of operations - * and a URL link to get the next set of results. + * An interface representing the OperationListResult. + * Result of the request to list MarketplaceOrdering operations. It contains a + * list of operations and a URL link to get the next set of results. + * * @extends Array */ export interface OperationListResult extends Array { /** - * URL to get the next set of operation list results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] URL to get the next set of operation list + * results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } @@ -162,7 +212,6 @@ export type MarketplaceAgreementsGetResponse = AgreementTerms & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -182,7 +231,6 @@ export type MarketplaceAgreementsCreateResponse = AgreementTerms & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -202,7 +250,6 @@ export type MarketplaceAgreementsSignResponse = AgreementTerms & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -222,7 +269,6 @@ export type MarketplaceAgreementsCancelResponse = AgreementTerms & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -242,7 +288,6 @@ export type MarketplaceAgreementsGetAgreementResponse = AgreementTerms & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -262,7 +307,6 @@ export type MarketplaceAgreementsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -282,7 +326,6 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -302,7 +345,6 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-marketplaceordering/lib/models/mappers.ts b/packages/@azure/arm-marketplaceordering/lib/models/mappers.ts index f5702ff6034c..0ef4ad2da442 100644 --- a/packages/@azure/arm-marketplaceordering/lib/models/mappers.ts +++ b/packages/@azure/arm-marketplaceordering/lib/models/mappers.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/packages/@azure/arm-marketplaceordering/lib/models/marketplaceAgreementsMappers.ts b/packages/@azure/arm-marketplaceordering/lib/models/marketplaceAgreementsMappers.ts index 10d9ac850590..39aef5ab91a0 100644 --- a/packages/@azure/arm-marketplaceordering/lib/models/marketplaceAgreementsMappers.ts +++ b/packages/@azure/arm-marketplaceordering/lib/models/marketplaceAgreementsMappers.ts @@ -1,16 +1,19 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { AgreementTerms, + Resource, BaseResource, CloudError, ErrorResponse, - ErrorResponseError, - Resource + ErrorResponseError } from "../models/mappers"; + diff --git a/packages/@azure/arm-marketplaceordering/lib/models/operationsMappers.ts b/packages/@azure/arm-marketplaceordering/lib/models/operationsMappers.ts index f95be41b77a7..43363f2606b4 100644 --- a/packages/@azure/arm-marketplaceordering/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-marketplaceordering/lib/models/operationsMappers.ts @@ -1,15 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorResponse, - ErrorResponseError, + OperationListResult, Operation, OperationDisplay, - OperationListResult + ErrorResponse, + ErrorResponseError } from "../models/mappers"; + diff --git a/packages/@azure/arm-marketplaceordering/lib/operations/marketplaceAgreements.ts b/packages/@azure/arm-marketplaceordering/lib/operations/marketplaceAgreements.ts index 4748d93d7eb0..bbedaac653da 100644 --- a/packages/@azure/arm-marketplaceordering/lib/operations/marketplaceAgreements.ts +++ b/packages/@azure/arm-marketplaceordering/lib/operations/marketplaceAgreements.ts @@ -299,7 +299,7 @@ const createOperationSpec: msRest.OperationSpec = { }; const signOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", + httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign", urlParameters: [ Parameters.subscriptionId, @@ -325,7 +325,7 @@ const signOperationSpec: msRest.OperationSpec = { }; const cancelOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", + httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/cancel", urlParameters: [ Parameters.subscriptionId, diff --git a/packages/@azure/arm-marketplaceordering/package.json b/packages/@azure/arm-marketplaceordering/package.json index 0e529e25bfe9..df84e7ee998e 100644 --- a/packages/@azure/arm-marketplaceordering/package.json +++ b/packages/@azure/arm-marketplaceordering/package.json @@ -4,8 +4,8 @@ "description": "MarketplaceOrderingAgreements Library with typescript type definitions for node.js and browser.", "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -44,7 +44,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-marketplaceordering.js.map'\" -o ./dist/arm-marketplaceordering.min.js ./dist/arm-marketplaceordering.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false }