Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Generated from 344b07af1caccde8fdb5784f43cd910ca6e7a702
Update workbooks_API.json
  • Loading branch information
AutorestCI committed Mar 29, 2018
commit bba78b15f2daef64dd93046eaf9e5cec46618773
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export default class ApplicationInsightsManagementClient extends AzureServiceCli
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
workbooks: operations.Workbooks;
workbookOperations: operations.WorkbookOperations;
}

export { ApplicationInsightsManagementClient, models as ApplicationInsightsManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class ApplicationInsightsManagementClient extends ServiceClient {
this.webTestLocations = new operations.WebTestLocations(this);
this.webTests = new operations.WebTests(this);
this.workbooks = new operations.Workbooks(this);
this.workbookOperations = new operations.WorkbookOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
69 changes: 69 additions & 0 deletions lib/services/applicationinsights/lib/models/errorFieldContract.js
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';

/**
* Error Field contract.
*
*/
class ErrorFieldContract {
/**
* Create a ErrorFieldContract.
* @member {string} [code] Property level error code.
* @member {string} [message] Human-readable representation of property-level
* error.
* @member {string} [target] Property name.
*/
constructor() {
}

/**
* Defines the metadata of ErrorFieldContract
*
* @returns {object} metadata of ErrorFieldContract
*
*/
mapper() {
return {
required: false,
serializedName: 'ErrorFieldContract',
type: {
name: 'Composite',
className: 'ErrorFieldContract',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ErrorFieldContract;
47 changes: 47 additions & 0 deletions lib/services/applicationinsights/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,53 @@ export interface Workbook extends Resource {
sourceResourceId?: string;
}

/**
* @class
* Initializes a new instance of the WorkbookListResult class.
* @constructor
* Workbook list result.
*
* @member {array} [value] An array of workbooks.
*/
export interface WorkbookListResult {
value?: Workbook[];
}

/**
* @class
* Initializes a new instance of the ErrorFieldContract class.
* @constructor
* Error Field contract.
*
* @member {string} [code] Property level error code.
* @member {string} [message] Human-readable representation of property-level
* error.
* @member {string} [target] Property name.
*/
export interface ErrorFieldContract {
code?: string;
message?: string;
target?: string;
}

/**
* @class
* Initializes a new instance of the WorkbookErrorResponse class.
* @constructor
* Error message body that will indicate why the operation failed.
*
* @member {string} [code] Service-defined error code. This code serves as a
* sub-status for the HTTP error code specified in the response.
* @member {string} [message] Human-readable representation of the error.
* @member {array} [details] The list of invalid fields send in request, in
* case of validation error.
*/
export interface WorkbookErrorResponse {
code?: string;
message?: string;
details?: ErrorFieldContract[];
}


/**
* @class
Expand Down
3 changes: 3 additions & 0 deletions lib/services/applicationinsights/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ exports.WebTestGeolocation = require('./webTestGeolocation');
exports.WebTestPropertiesConfiguration = require('./webTestPropertiesConfiguration');
exports.WebTest = require('./webTest');
exports.Workbook = require('./workbook');
exports.WorkbookListResult = require('./workbookListResult');
exports.ErrorFieldContract = require('./errorFieldContract');
exports.WorkbookErrorResponse = require('./workbookErrorResponse');
exports.OperationListResult = require('./operationListResult');
exports.ApplicationInsightsComponentAPIKeyListResult = require('./applicationInsightsComponentAPIKeyListResult');
exports.ApplicationInsightsComponentListResult = require('./applicationInsightsComponentListResult');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* 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';

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

/**
* Error message body that will indicate why the operation failed.
*
*/
class WorkbookErrorResponse {
/**
* Create a WorkbookErrorResponse.
* @member {string} [code] Service-defined error code. This code serves as a
* sub-status for the HTTP error code specified in the response.
* @member {string} [message] Human-readable representation of the error.
* @member {array} [details] The list of invalid fields send in request, in
* case of validation error.
*/
constructor() {
}

/**
* Defines the metadata of WorkbookErrorResponse
*
* @returns {object} metadata of WorkbookErrorResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'WorkbookErrorResponse',
type: {
name: 'Composite',
className: 'WorkbookErrorResponse',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
},
details: {
required: false,
serializedName: 'details',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ErrorFieldContractElementType',
type: {
name: 'Composite',
className: 'ErrorFieldContract'
}
}
}
}
}
}
};
}
}

module.exports = WorkbookErrorResponse;
62 changes: 62 additions & 0 deletions lib/services/applicationinsights/lib/models/workbookListResult.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* 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';

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

/**
* Workbook list result.
*
*/
class WorkbookListResult {
/**
* Create a WorkbookListResult.
* @member {array} [value] An array of workbooks.
*/
constructor() {
}

/**
* Defines the metadata of WorkbookListResult
*
* @returns {object} metadata of WorkbookListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'WorkbookListResult',
type: {
name: 'Composite',
className: 'WorkbookListResult',
modelProperties: {
value: {
required: false,
serializedName: 'value',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'WorkbookElementType',
type: {
name: 'Composite',
className: 'Workbook'
}
}
}
}
}
}
};
}
}

module.exports = WorkbookListResult;
Loading