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

[AutoPR machinelearning/resource-manager] typo: asscociation -> association #4723

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default class AzureMLCommitmentPlansManagementClient extends AzureService
generateClientRequestId: boolean;

// Operation groups
operations: operations.Operations;
skus: operations.Skus;
commitmentAssociations: operations.CommitmentAssociations;
commitmentPlans: operations.CommitmentPlans;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class AzureMLCommitmentPlansManagementClient extends ServiceClient {
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
this.generateClientRequestId = options.generateClientRequestId;
}
this.operations = new operations.Operations(this);
this.skus = new operations.Skus(this);
this.commitmentAssociations = new operations.CommitmentAssociations(this);
this.commitmentPlans = new operations.CommitmentPlans(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface SkuCapacity {
}

/**
* Describes The SKU capabilites object.
* Describes The SKU capabilities object.
*/
export interface SkuCapability {
/**
Expand Down Expand Up @@ -355,6 +355,48 @@ export interface PlanUsageHistory {
usageDate?: Date;
}

/**
* The API operation info.
*/
export interface OperationDisplayInfo {
/**
* The description of the operation.
*/
readonly description?: string;
/**
* The action that users can perform, based on their permission level.
*/
readonly operation?: string;
/**
* The service provider.
*/
readonly provider?: string;
/**
* The resource on which the operation is performed.
*/
readonly resource?: string;
}

/**
* An API operation.
*/
export interface OperationEntity {
/**
* Operation name: {provider}/{resource}/{operation}.
*/
readonly name?: string;
/**
* The API operation info.
*/
display?: OperationDisplayInfo;
}

/**
* The list of REST API operations.
*/
export interface OperationEntityListResult extends Array<OperationEntity> {
}

/**
* The list of commitment plan SKUs.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ exports.PlanQuantity = require('./planQuantity');
exports.CommitmentPlanProperties = require('./commitmentPlanProperties');
exports.CommitmentPlan = require('./commitmentPlan');
exports.PlanUsageHistory = require('./planUsageHistory');
exports.OperationDisplayInfo = require('./operationDisplayInfo');
exports.OperationEntity = require('./operationEntity');
exports.OperationEntityListResult = require('./operationEntityListResult');
exports.SkuListResult = require('./skuListResult');
exports.CommitmentAssociationListResult = require('./commitmentAssociationListResult');
exports.CommitmentPlanListResult = require('./commitmentPlanListResult');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* 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';

/**
* The API operation info.
*
*/
class OperationDisplayInfo {
/**
* Create a OperationDisplayInfo.
* @property {string} [description] The description of the operation.
* @property {string} [operation] The action that users can perform, based on
* their permission level.
* @property {string} [provider] The service provider.
* @property {string} [resource] The resource on which the operation is
* performed.
*/
constructor() {
}

/**
* Defines the metadata of OperationDisplayInfo
*
* @returns {object} metadata of OperationDisplayInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'OperationDisplayInfo',
type: {
name: 'Composite',
className: 'OperationDisplayInfo',
modelProperties: {
description: {
required: false,
readOnly: true,
serializedName: 'description',
type: {
name: 'String'
}
},
operation: {
required: false,
readOnly: true,
serializedName: 'operation',
type: {
name: 'String'
}
},
provider: {
required: false,
readOnly: true,
serializedName: 'provider',
type: {
name: 'String'
}
},
resource: {
required: false,
readOnly: true,
serializedName: 'resource',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = OperationDisplayInfo;
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* 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';

/**
* An API operation.
*
*/
class OperationEntity {
/**
* Create a OperationEntity.
* @property {string} [name] Operation name:
* {provider}/{resource}/{operation}.
* @property {object} [display] The API operation info.
* @property {string} [display.description] The description of the operation.
* @property {string} [display.operation] The action that users can perform,
* based on their permission level.
* @property {string} [display.provider] The service provider.
* @property {string} [display.resource] The resource on which the operation
* is performed.
*/
constructor() {
}

/**
* Defines the metadata of OperationEntity
*
* @returns {object} metadata of OperationEntity
*
*/
mapper() {
return {
required: false,
serializedName: 'OperationEntity',
type: {
name: 'Composite',
className: 'OperationEntity',
modelProperties: {
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
display: {
required: false,
serializedName: 'display',
type: {
name: 'Composite',
className: 'OperationDisplayInfo'
}
}
}
}
};
}
}

module.exports = OperationEntity;
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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';

/**
* The list of REST API operations.
*/
class OperationEntityListResult extends Array {
/**
* Create a OperationEntityListResult.
*/
constructor() {
super();
}

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

module.exports = OperationEntityListResult;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

/**
* Describes The SKU capabilites object.
* Describes The SKU capabilities object.
*
*/
class SkuCapability {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,69 @@ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationRes
import * as models from '../models';


/**
* @class
* Operations
* __NOTE__: An instance of this class is automatically created for an
* instance of the AzureMLCommitmentPlansManagementClient.
*/
export interface Operations {


/**
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP
* REST API operations.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<OperationEntityListResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.OperationEntityListResult>>;

/**
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP
* REST API operations.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {OperationEntityListResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {OperationEntityListResult} [result] - The deserialized result object if an error did not occur.
* See {@link OperationEntityListResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.OperationEntityListResult>;
list(callback: ServiceCallback<models.OperationEntityListResult>): void;
list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationEntityListResult>): void;
}

/**
* @class
* Skus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

'use strict';

exports.Operations = require('./operations');
exports.Skus = require('./skus');
exports.CommitmentAssociations = require('./commitmentAssociations');
exports.CommitmentPlans = require('./commitmentPlans');
Expand Down
Loading