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

Commit

Permalink
[AutoPR logic/resource-manager] Change some string Microsoft.Logic mo…
Browse files Browse the repository at this point in the history
…deled enums back into enums (#3470)

* Generated from 2b946c42fe05c892efee90f150c5b2b7897d9e8d

Change some string modelled enums back into enums

* Generated from c016726b2b4438bf45bdbebe25f68a67330478b0

Change EDIFACT back to be an enum, not a string
  • Loading branch information
AutorestCI authored Sep 10, 2018
1 parent 3b76f31 commit 33d74f4
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@ class EdifactDelimiterOverride {
required: true,
serializedName: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'None', 'CR', 'LF', 'CRLF' ]
}
},
decimalPointIndicator: {
required: true,
serializedName: 'decimalPointIndicator',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'Comma', 'Decimal' ]
}
},
releaseIndicator: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@ class EdifactFramingSettings {
required: true,
serializedName: 'decimalPointIndicator',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'Comma', 'Decimal' ]
}
},
segmentTerminatorSuffix: {
required: true,
serializedName: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'None', 'CR', 'LF', 'CRLF' ]
}
}
}
Expand Down
11 changes: 0 additions & 11 deletions lib/services/logicManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7983,17 +7983,6 @@ export interface TrackingEventsDefinition {
events: TrackingEvent[];
}

/**
* @class
* Initializes a new instance of the AccessKeyRegenerateActionDefinition class.
* @constructor
* @member {string} keyType Possible values include: 'NotSpecified', 'Primary',
* 'Secondary'
*/
export interface AccessKeyRegenerateActionDefinition {
keyType: string;
}

/**
* @class
* Initializes a new instance of the SetTriggerStateActionDefinition class.
Expand Down
1 change: 0 additions & 1 deletion lib/services/logicManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ exports.KeyVaultKey = require('./keyVaultKey');
exports.TrackingEventErrorInfo = require('./trackingEventErrorInfo');
exports.TrackingEvent = require('./trackingEvent');
exports.TrackingEventsDefinition = require('./trackingEventsDefinition');
exports.AccessKeyRegenerateActionDefinition = require('./accessKeyRegenerateActionDefinition');
exports.SetTriggerStateActionDefinition = require('./setTriggerStateActionDefinition');
exports.Expression = require('./expression');
exports.ExpressionRoot = require('./expressionRoot');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,8 @@ class IntegrationAccountAgreement extends models['Resource'] {
required: true,
serializedName: 'properties.agreementType',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'AS2', 'X12', 'Edifact' ]
}
},
hostPartner: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class IntegrationAccountAgreementFilter {
required: true,
serializedName: 'agreementType',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'AS2', 'X12', 'Edifact' ]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class RecurrenceSchedule {
required: false,
serializedName: 'DaysOfWeekElementType',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class RecurrenceScheduleOccurrence {
required: false,
serializedName: 'day',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
}
},
occurrence: {
Expand Down
3 changes: 2 additions & 1 deletion lib/services/logicManagement/lib/models/trackingEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class TrackingEvent {
required: true,
serializedName: 'eventLevel',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'LogAlways', 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' ]
}
},
eventTime: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class X12DelimiterOverrides {
required: true,
serializedName: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'None', 'CR', 'LF', 'CRLF' ]
}
},
replaceCharacter: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class X12FramingSettings {
required: true,
serializedName: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'NotSpecified', 'None', 'CR', 'LF', 'CRLF' ]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,12 @@ function _deleteMethod(resourceGroupName, integrationAccountName, sessionName, o
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
let internalError = null;
if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
error.code = internalError ? internalError.code : parsedErrorResponse.code;
error.message = internalError ? internalError.message : parsedErrorResponse.message;
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
let resultMapper = new client.models['ErrorResponse']().mapper();
let resultMapper = new client.models['CloudError']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
Expand Down
4 changes: 2 additions & 2 deletions lib/services/logicManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-arm-logic",
"author": "Microsoft Corporation",
"description": "LogicManagementClient Library with typescript type definitions for node",
"version": "3.0.0",
"version": "2.0.0",
"dependencies": {
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
Expand All @@ -14,7 +14,7 @@
"license": "MIT",
"main": "./lib/logicManagementClient.js",
"types": "./lib/logicManagementClient.d.ts",
"homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/logicManagement",
"homepage": "https://github.com/azure/azure-sdk-for-node",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-node.git"
Expand Down

0 comments on commit 33d74f4

Please sign in to comment.