Skip to content

Commit

Permalink
LCM updated completion status as string enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-mohammedali committed Nov 15, 2024
1 parent 2cc8e81 commit cfd891c
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Policy run status of an account in a Blob Management cycle. */
model StorageLifecyclePolicyRunSummary {
/** Policy status can be Completed/CompletedWithError/Incomplete. */
completionStatus?: string;
completionStatus: StorageLifecycleCompletionStatus;
}

/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobTierChanged event. */
Expand Down Expand Up @@ -368,6 +368,20 @@ namespace Microsoft.EventGrid.SystemEvents {
summaryReportBlobUrl: url;
}

/** The status for a LCM policy. */
union StorageLifecycleCompletionStatus {
/** Completed */
"Completed",

/** CompletedWithError */
"CompletedWithError",

/** Incomplete */
"Incomplete",

string,
}

/** The status for a storage task. */
union StorageTaskAssignmentCompletedStatus {
/** Succeeded */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8498,6 +8498,36 @@
"storageDiagnostics"
]
},
"StorageLifecycleCompletionStatus": {
"type": "string",
"description": "The status for a LCM policy.",
"enum": [
"Completed",
"CompletedWithError",
"Incomplete"
],
"x-ms-enum": {
"name": "StorageLifecycleCompletionStatus",
"modelAsString": true,
"values": [
{
"name": "Completed",
"value": "Completed",
"description": "Completed"
},
{
"name": "CompletedWithError",
"value": "CompletedWithError",
"description": "CompletedWithError"
},
{
"name": "Incomplete",
"value": "Incomplete",
"description": "Incomplete"
}
]
}
},
"StorageLifecyclePolicyActionSummaryDetail": {
"type": "object",
"description": "Execution statistics of a specific policy action in a Blob Management cycle.",
Expand Down Expand Up @@ -8560,10 +8590,13 @@
"description": "Policy run status of an account in a Blob Management cycle.",
"properties": {
"completionStatus": {
"type": "string",
"$ref": "#/definitions/StorageLifecycleCompletionStatus",
"description": "Policy status can be Completed/CompletedWithError/Incomplete."
}
}
},
"required": [
"completionStatus"
]
},
"StorageTaskAssignmentCompletedEventData": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8642,6 +8642,36 @@
"storageDiagnostics"
]
},
"StorageLifecycleCompletionStatus": {
"type": "string",
"description": "The status for a LCM policy.",
"enum": [
"Completed",
"CompletedWithError",
"Incomplete"
],
"x-ms-enum": {
"name": "StorageLifecycleCompletionStatus",
"modelAsString": true,
"values": [
{
"name": "Completed",
"value": "Completed",
"description": "Completed"
},
{
"name": "CompletedWithError",
"value": "CompletedWithError",
"description": "CompletedWithError"
},
{
"name": "Incomplete",
"value": "Incomplete",
"description": "Incomplete"
}
]
}
},
"StorageLifecyclePolicyActionSummaryDetail": {
"type": "object",
"description": "Execution statistics of a specific policy action in a Blob Management cycle.",
Expand Down Expand Up @@ -8704,10 +8734,13 @@
"description": "Policy run status of an account in a Blob Management cycle.",
"properties": {
"completionStatus": {
"type": "string",
"$ref": "#/definitions/StorageLifecycleCompletionStatus",
"description": "Policy status can be Completed/CompletedWithError/Incomplete."
}
}
},
"required": [
"completionStatus"
]
},
"StorageTaskAssignmentCompletedEventData": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,18 @@
"description": "Policy run status of an account in a Blob Management cycle.",
"properties": {
"completionStatus": {
"description": "Policy status can be Completed/CompletedWithError/Incomplete.",
"type": "string",
"description": "Policy status can be Completed/CompletedWithError/Incomplete."
"enum": [
"Completed",
"CompletedWithError",
"Incomplete"

],
"x-ms-enum": {
"name": "StorageLifecycleCompletionStatus",
"modelAsString": true
}
}
}
},
Expand Down

0 comments on commit cfd891c

Please sign in to comment.