Skip to content

Commit

Permalink
Revert "modelAsString for Media Union as False"
Browse files Browse the repository at this point in the history
This reverts commit 6b60581.
  • Loading branch information
l0lawrence committed Apr 24, 2024
1 parent 95adb71 commit a047881
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** Describes the schema of the Azure Media Services events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
# suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
/** State of a Media Job. */
union MediaJobState {
/** The job was canceled. This is a final state for the job. */
Expand All @@ -23,9 +22,10 @@ namespace Microsoft.EventGrid.SystemEvents {

/** The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. */
"Scheduled",

string,
}

# suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
/** Media Job Error Codes. */
union MediaJobErrorCode {
/** Fatal service error, please contact support. */
Expand Down Expand Up @@ -57,9 +57,10 @@ namespace Microsoft.EventGrid.SystemEvents {

/** There is an error verifying to the account identity. Check and fix the identity configurations and retry. If unsuccessful, please contact support. */
"IdentityUnsupported",

string,
}

# suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
/** Error categories for Media Job Errors. */
union MediaJobErrorCategory {
/** The error is service related. */
Expand All @@ -80,9 +81,9 @@ namespace Microsoft.EventGrid.SystemEvents {
/** The error is related to account information. */
"Account",

string,
}

# suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
/** Media Job Retry Options. */
union MediaJobRetry {
/** Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected. */
Expand All @@ -91,6 +92,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Issue may be resolved after waiting for a period of time and resubmitting the same Job. */
"MayRetry",

string,
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5769,7 +5769,7 @@
],
"x-ms-enum": {
"name": "MediaJobErrorCategory",
"modelAsString": false,
"modelAsString": true,
"values": [
{
"name": "Service",
Expand Down Expand Up @@ -5821,7 +5821,7 @@
],
"x-ms-enum": {
"name": "MediaJobErrorCode",
"modelAsString": false,
"modelAsString": true,
"values": [
{
"name": "ServiceError",
Expand Down Expand Up @@ -6095,7 +6095,7 @@
],
"x-ms-enum": {
"name": "MediaJobRetry",
"modelAsString": false,
"modelAsString": true,
"values": [
{
"name": "DoNotRetry",
Expand Down Expand Up @@ -6133,7 +6133,7 @@
],
"x-ms-enum": {
"name": "MediaJobState",
"modelAsString": false,
"modelAsString": true,
"values": [
{
"name": "Canceled",
Expand Down

0 comments on commit a047881

Please sign in to comment.