Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
122 changes: 82 additions & 40 deletions packages/@azure/arm-marketplaceordering/lib/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,151 +1,201 @@
/*
* 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";
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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* 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;
}
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -262,7 +307,6 @@ export type MarketplaceAgreementsListResponse = Array<AgreementTerms> & {
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down
6 changes: 4 additions & 2 deletions packages/@azure/arm-marketplaceordering/lib/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Original file line number Diff line number Diff line change
@@ -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";

Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading