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

Commit

Permalink
[AutoPR logic/resource-manager] Change some string modelled enums bac…
Browse files Browse the repository at this point in the history
…k into enums (#1612)

* 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 83643a6 commit ee77cbd
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 79 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def delete_async(resource_group_name, integration_account_name, session_name, cu
response_content = http_response.body
unless status_code == 200 || status_code == 204
error_model = JSON.load(response_content)
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end

result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,16 @@ def self.mapper()
required: true,
serialized_name: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
module: 'SegmentTerminatorSuffix'
}
},
decimal_point_indicator: {
required: true,
serialized_name: 'decimalPointIndicator',
type: {
name: 'String'
name: 'Enum',
module: 'EdifactDecimalIndicator'
}
},
release_indicator: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,16 @@ def self.mapper()
required: true,
serialized_name: 'decimalPointIndicator',
type: {
name: 'String'
name: 'Enum',
module: 'EdifactDecimalIndicator'
}
},
segment_terminator_suffix: {
required: true,
serialized_name: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
module: 'SegmentTerminatorSuffix'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def self.mapper()
required: true,
serialized_name: 'properties.agreementType',
type: {
name: 'String'
name: 'Enum',
module: 'AgreementType'
}
},
host_partner: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def self.mapper()
required: true,
serialized_name: 'agreementType',
type: {
name: 'String'
name: 'Enum',
module: 'AgreementType'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def self.mapper()
required: false,
serialized_name: 'DaysOfWeekElementType',
type: {
name: 'String'
name: 'Enum',
module: 'DaysOfWeek'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def self.mapper()
required: false,
serialized_name: 'day',
type: {
name: 'String'
name: 'Enum',
module: 'DayOfWeek'
}
},
occurrence: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def self.mapper()
required: true,
serialized_name: 'eventLevel',
type: {
name: 'String'
name: 'Enum',
module: 'EventLevel'
}
},
event_time: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def self.mapper()
required: true,
serialized_name: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
module: 'SegmentTerminatorSuffix'
}
},
replace_character: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def self.mapper()
required: true,
serialized_name: 'segmentTerminatorSuffix',
type: {
name: 'String'
name: 'Enum',
module: 'SegmentTerminatorSuffix'
}
}
}
Expand Down

0 comments on commit ee77cbd

Please sign in to comment.