Skip to content

Commit

Permalink
Stumpaudra/fleet status fields dev (#32874)
Browse files Browse the repository at this point in the history
* Update version to stable/2025-03-01

Updated the API version from preview/2024-05-02-preview to stable/2025-03-01.

* run prettier

* run prettier for all

* updated

* updated api versions

* added status

* tidied

* tidied

* formatted

* added examples

* restoring readme

* restoring readme

* reformatting

* added visibility to fleet status

* merged with dev branch

* tsp compile

* updated examples

---------

Co-authored-by: frantran <[email protected]>
  • Loading branch information
audrastump and frantran authored Feb 27, 2025
1 parent 1f5473e commit d2b4b28
Show file tree
Hide file tree
Showing 21 changed files with 212 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Updating"
"provisioningState": "Updating",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
},
Expand Down
17 changes: 17 additions & 0 deletions specification/containerservice/Fleet.Management/fleet.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ model FleetProperties {
@added(Versions.v2024_02_02_preview)
@added(Versions.v2024_04_01)
hubProfile?: FleetHubProfile;

@added(Versions.v2025_03_01)
@visibility("read")
@doc("Status information for the fleet.")
status?: FleetStatus;
}

@doc("The FleetHubProfile configures the fleet hub.")
Expand Down Expand Up @@ -180,6 +185,18 @@ model FleetCredentialResults {
kubeconfigs?: FleetCredentialResult[];
}

@added(Versions.v2025_03_01)
@doc("Status information for the fleet.")
model FleetStatus {
@visibility("read")
@doc("The last operation ID for the fleet.")
lastOperationId?: string;

@visibility("read")
@doc("The last operation error for the fleet.")
lastOperationError?: Azure.ResourceManager.Foundations.ErrorDetail;
}

@armResourceOperations
interface Fleets {
@doc("Gets a Fleet.")
Expand Down
17 changes: 17 additions & 0 deletions specification/containerservice/Fleet.Management/fleetmember.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ model FleetMemberProperties {
@added(Versions.v2025_03_01)
@doc("The labels for the fleet member.")
labels?: Record<string>;

@added(Versions.v2025_03_01)
@visibility("read")
@doc("Status information of the last operation for fleet member.")
status?: FleetMemberStatus;
}

@added(Versions.v2025_03_01)
@doc("Status information for the fleet member")
model FleetMemberStatus {
@visibility("read")
@doc("The last operation ID for the fleet member")
lastOperationId?: string;

@visibility("read")
@doc("The last operation error of the fleet member")
lastOperationError?: Azure.ResourceManager.Foundations.ErrorDetail;
}

@lroStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"provisioningState": "Succeeded",
"labels": {
"environment": "production"
},
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Updating"
"provisioningState": "Updating",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@
"vmSize": "Standard_DS1"
}
},
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": {
"lastOperationId": "operation-12345",
"lastOperationError": {
"code": "None",
"message": "No error"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2461,6 +2461,11 @@
"additionalProperties": {
"type": "string"
}
},
"status": {
"$ref": "#/definitions/FleetMemberStatus",
"description": "Status information of the last operation for fleet member.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -2516,6 +2521,22 @@
},
"readOnly": true
},
"FleetMemberStatus": {
"type": "object",
"description": "Status information for the fleet member",
"properties": {
"lastOperationId": {
"type": "string",
"description": "The last operation ID for the fleet member",
"readOnly": true
},
"lastOperationError": {
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail",
"description": "The last operation error of the fleet member",
"readOnly": true
}
}
},
"FleetMemberUpdate": {
"type": "object",
"description": "The type used for update operations of the FleetMember.",
Expand Down Expand Up @@ -2576,6 +2597,11 @@
"hubProfile": {
"$ref": "#/definitions/FleetHubProfile",
"description": "The FleetHubProfile configures the Fleet's hub."
},
"status": {
"$ref": "#/definitions/FleetStatus",
"description": "Status information for the fleet.",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -2628,6 +2654,22 @@
},
"readOnly": true
},
"FleetStatus": {
"type": "object",
"description": "Status information for the fleet.",
"properties": {
"lastOperationId": {
"type": "string",
"description": "The last operation ID for the fleet.",
"readOnly": true
},
"lastOperationError": {
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail",
"description": "The last operation error for the fleet.",
"readOnly": true
}
}
},
"FleetUpdateStrategy": {
"type": "object",
"description": "Defines a multi-stage process to perform update operations across members of a Fleet.",
Expand Down

0 comments on commit d2b4b28

Please sign in to comment.