Skip to content

Commit

Permalink
add autoupgradeprofilestatus
Browse files Browse the repository at this point in the history
add tsp files

add v5 version

generate examples

transfer examples

try generate oav

fix generate

transfer examples

fix  gen

fix format

run prettier on examples

manual fix examples

copy examples

fix updateid

fix subid

fix lro header

copy

run pretty

add sub param

copy

add sub param

add sub

reset examples

reset to release

reset examples
  • Loading branch information
frantran committed Feb 27, 2025
1 parent 79a3a14 commit b43b9ed
Show file tree
Hide file tree
Showing 17 changed files with 212 additions and 1,213 deletions.
1 change: 1 addition & 0 deletions specification/containerservice/Fleet.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ enum Versions {
@doc("Azure Kubernetes Fleet Manager api version 2025-03-01.")
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
v2025_03_01: "2025-03-01",
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ model AutoUpgradeProfileProperties {
By default, this is set to False.
""")
disabled?: boolean;

@doc("The status of the auto upgrade profile.")
@added(Versions.v2025_03_01)
autoUpgradeProfileStatus?: AutoUpgradeProfileStatus;
}

@doc("Configuration of how auto upgrade will be run.")
Expand Down Expand Up @@ -124,3 +128,35 @@ interface AutoUpgradeProfiles {

listByFleet is ArmResourceListByParent<AutoUpgradeProfile>;
}

@doc("AutoUpgradeProfileStatus is the status of an auto upgrade profile.")
@added(Versions.v2025_03_01)
model AutoUpgradeProfileStatus {
@doc("The UTC time of the last attempt to automatically create and start an UpdateRun as triggered by the release of new versions.")
@visibility("read")
lastTriggeredAt?: utcDateTime;

@doc("The status of the last AutoUpgrade trigger.")
@visibility("read")
lastTriggerStatus?: AutoUpgradeLastTriggerStatus;

@doc("The error details of the last trigger.")
@visibility("read")
lastTriggerError?: Azure.ResourceManager.Foundations.ErrorDetail; // https://github.com/Azure/azure-rest-api-specs/blob/1de0b5315d62e1b40052bad2c9a2f2c89d84ff0f/specification/common-types/resource-management/v5/types.json#L260

@doc("The target Kubernetes version or node image versions of the last trigger.")
@visibility("read")
lastTriggerUpgradeVersions?: string[];
}

@doc("AutoUpgradeLastTriggerStatus is the status of the last AutoUpgrade trigger (attempt to automatically create and start UpdateRun when there are new released versions) of an auto upgrade profile.")
@added(Versions.v2025_03_01)
union AutoUpgradeLastTriggerStatus {
string,

@doc("The last AutoUpgrade trigger was succeeded.")
Succeeded: "Succeeded",

@doc("The last AutoUpgrade trigger failed.")
Failed: "Failed",
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b43b9ed

Please sign in to comment.