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

[AutoPR automation/resource-manager] Remove 4xx responses and change schema to file #3124

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
120 changes: 60 additions & 60 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ export { CloudError } from 'ms-rest-azure';

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* Initializes a new instance of the Sku class.
* @constructor
* Error response of an operation failure
* The account SKU.
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
* @member {string} name Gets or sets the SKU name of the account. Possible
* values include: 'Free', 'Basic'
* @member {string} [family] Gets or sets the SKU family.
* @member {number} [capacity] Gets or sets the SKU capacity.
*/
export interface ErrorResponse {
code?: string;
message?: string;
export interface Sku {
name: string;
family?: string;
capacity?: number;
}

/**
Expand Down Expand Up @@ -61,33 +63,6 @@ export interface TrackedResource extends Resource {
location?: string;
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* ARM proxy resource.
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the Sku class.
* @constructor
* The account SKU.
*
* @member {string} name Gets or sets the SKU name of the account. Possible
* values include: 'Free', 'Basic'
* @member {string} [family] Gets or sets the SKU family.
* @member {number} [capacity] Gets or sets the SKU capacity.
*/
export interface Sku {
name: string;
family?: string;
capacity?: number;
}

/**
* @class
* Initializes a new instance of the AutomationAccount class.
Expand Down Expand Up @@ -286,6 +261,31 @@ export interface AutomationAccountUpdateParameters {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* ARM proxy resource.
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* @constructor
* Error response of an operation failure
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
*/
export interface ErrorResponse {
code?: string;
message?: string;
}

/**
* @class
* Initializes a new instance of the CertificateCreateOrUpdateParameters class.
Expand Down Expand Up @@ -1148,31 +1148,6 @@ export interface TypeField {
type?: string;
}

/**
* @class
* Initializes a new instance of the JobStream class.
* @constructor
* Definition of the job stream.
*
* @member {string} [id] Gets or sets the id of the resource.
* @member {string} [jobStreamId] Gets or sets the id of the job stream.
* @member {date} [time] Gets or sets the creation time of the job.
* @member {string} [streamType] Gets or sets the stream type. Possible values
* include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any'
* @member {string} [streamText] Gets or sets the stream text.
* @member {string} [summary] Gets or sets the summary.
* @member {object} [value] Gets or sets the values of the job stream.
*/
export interface JobStream {
id?: string;
jobStreamId?: string;
time?: Date;
streamType?: string;
streamText?: string;
summary?: string;
value?: { [propertyName: string]: any };
}

/**
* @class
* Initializes a new instance of the RunbookParameter class.
Expand Down Expand Up @@ -1525,6 +1500,31 @@ export interface RunbookCreateOrUpdateDraftParameters {
runbookContent: string;
}

/**
* @class
* Initializes a new instance of the JobStream class.
* @constructor
* Definition of the job stream.
*
* @member {string} [id] Gets or sets the id of the resource.
* @member {string} [jobStreamId] Gets or sets the id of the job stream.
* @member {date} [time] Gets or sets the creation time of the job.
* @member {string} [streamType] Gets or sets the stream type. Possible values
* include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any'
* @member {string} [streamText] Gets or sets the stream text.
* @member {string} [summary] Gets or sets the summary.
* @member {object} [value] Gets or sets the values of the job stream.
*/
export interface JobStream {
id?: string;
jobStreamId?: string;
time?: Date;
streamType?: string;
streamText?: string;
summary?: string;
value?: { [propertyName: string]: any };
}

/**
* @class
* Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class.
Expand Down
8 changes: 4 additions & 4 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ var msRestAzure = require('ms-rest-azure');

exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
exports.ErrorResponse = require('./errorResponse');
exports.Sku = require('./sku');
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
exports.ProxyResource = require('./proxyResource');
exports.Sku = require('./sku');
exports.AutomationAccount = require('./automationAccount');
exports.AutomationAccountCreateOrUpdateParameters = require('./automationAccountCreateOrUpdateParameters');
exports.OperationDisplay = require('./operationDisplay');
Expand All @@ -33,6 +31,8 @@ exports.Usage = require('./usage');
exports.Key = require('./key');
exports.KeyListResult = require('./keyListResult');
exports.AutomationAccountUpdateParameters = require('./automationAccountUpdateParameters');
exports.ProxyResource = require('./proxyResource');
exports.ErrorResponse = require('./errorResponse');
exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters');
exports.Certificate = require('./certificate');
exports.CertificateUpdateParameters = require('./certificateUpdateParameters');
Expand Down Expand Up @@ -72,7 +72,6 @@ exports.Module = require('./module');
exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters');
exports.ModuleUpdateParameters = require('./moduleUpdateParameters');
exports.TypeField = require('./typeField');
exports.JobStream = require('./jobStream');
exports.RunbookParameter = require('./runbookParameter');
exports.RunbookDraft = require('./runbookDraft');
exports.Runbook = require('./runbook');
Expand All @@ -83,6 +82,7 @@ exports.TestJobCreateParameters = require('./testJobCreateParameters');
exports.TestJob = require('./testJob');
exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties');
exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters');
exports.JobStream = require('./jobStream');
exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence');
exports.AdvancedSchedule = require('./advancedSchedule');
exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters');
Expand Down
Loading