Skip to content

Commit

Permalink
tsp format
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence committed Apr 24, 2024
1 parent 6b60581 commit 1a01cf8
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** 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. */
#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
union MediaJobState {
/** The job was canceled. This is a final state for the job. */
"Canceled",
Expand All @@ -25,8 +25,8 @@ namespace Microsoft.EventGrid.SystemEvents {
"Scheduled",
}

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

# 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. */
#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
union MediaJobErrorCategory {
/** The error is service related. */
"Service",
Expand All @@ -79,18 +79,16 @@ namespace Microsoft.EventGrid.SystemEvents {

/** The error is related to account information. */
"Account",

}

# suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
/** Media Job Retry Options. */
#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Suppressing literal union type for compatibility with existing models."
union MediaJobRetry {
/** Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected. */
"DoNotRetry",

/** Issue may be resolved after waiting for a period of time and resubmitting the same Job. */
"MayRetry",

}

/**
Expand Down

0 comments on commit 1a01cf8

Please sign in to comment.