Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions specification/postgresql/DBforPostgreSQL.Management/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4051,6 +4051,31 @@ model PrecheckErrorInfo {
errorMessage?: string;
}

@doc("Response model for maintenance event reschedule and apply-now actions.")
@added(Versions.v2026_04_01)
model MaintenanceEventActionResponse {
@doc("The maintenance event name (maintenance ID).")
maintenanceEventId?: string;

@doc("The full Azure resource ID of the server.")
serverId?: armResourceIdentifier;

@doc("The status (e.g. 'Accepted', 'Succeeded').")
status?: string;

@doc("The planned start time of the maintenance event (UTC).")
plannedStartTime?: utcDateTime;

@doc("The planned end time of the maintenance event (UTC).")
plannedEndTime?: utcDateTime;

@doc("A value indicating whether this was an apply-now (immediate) action. True for ApplyNow; false for Reschedule.")
appliedNow?: boolean;

@doc("The time this maintenance event record was last updated (UTC).")
lastUpdatedTime?: utcDateTime;
}

@doc("Upgrade sequence information.")
@added(Versions.v2026_04_01)
model UpgradeSequence {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ interface MaintenanceEvents {
MaintenanceEventResource,
MaintenanceEventRescheduleRequest,

| ArmResponse<MaintenanceEventResource>
| ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = MaintenanceEventResource> &
| ArmResponse<MaintenanceEventActionResponse>
| ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = MaintenanceEventActionResponse> &
Azure.Core.Foundations.RetryAfterHeader>,
BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters<MaintenanceEventResource>
>;
Expand All @@ -143,8 +143,8 @@ interface MaintenanceEvents {
MaintenanceEventResource,
void,

| ArmResponse<MaintenanceEventResource>
| ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = MaintenanceEventResource> &
| ArmResponse<MaintenanceEventActionResponse>
| ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = MaintenanceEventActionResponse> &
Azure.Core.Foundations.RetryAfterHeader>,
BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters<MaintenanceEventResource>
>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@
"200": {
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "#/definitions/MaintenanceEventResource"
"$ref": "#/definitions/MaintenanceEventActionResponse"
}
},
"202": {
Expand Down Expand Up @@ -2926,7 +2926,7 @@
},
"x-ms-long-running-operation-options": {
"final-state-via": "location",
"final-state-schema": "#/definitions/MaintenanceEventResource"
"final-state-schema": "#/definitions/MaintenanceEventActionResponse"
},
"x-ms-long-running-operation": true
}
Expand Down Expand Up @@ -2980,7 +2980,7 @@
"200": {
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "#/definitions/MaintenanceEventResource"
"$ref": "#/definitions/MaintenanceEventActionResponse"
}
},
"202": {
Expand Down Expand Up @@ -3016,7 +3016,7 @@
},
"x-ms-long-running-operation-options": {
"final-state-via": "location",
"final-state-schema": "#/definitions/MaintenanceEventResource"
"final-state-schema": "#/definitions/MaintenanceEventActionResponse"
},
"x-ms-long-running-operation": true
}
Expand Down Expand Up @@ -7077,6 +7077,44 @@
"value"
]
},
"MaintenanceEventActionResponse": {
"type": "object",
"description": "Response model for maintenance event reschedule and apply-now actions.",
"properties": {
"maintenanceEventId": {
"type": "string",
"description": "The maintenance event name (maintenance ID)."
},
"serverId": {
"type": "string",
"format": "arm-id",
"description": "The full Azure resource ID of the server."
},
"status": {
"type": "string",
"description": "The status (e.g. 'Accepted', 'Succeeded')."
},
"plannedStartTime": {
"type": "string",
"format": "date-time",
"description": "The planned start time of the maintenance event (UTC)."
},
"plannedEndTime": {
"type": "string",
"format": "date-time",
"description": "The planned end time of the maintenance event (UTC)."
},
"appliedNow": {
"type": "boolean",
"description": "A value indicating whether this was an apply-now (immediate) action. True for ApplyNow; false for Reschedule."
},
"lastUpdatedTime": {
"type": "string",
"format": "date-time",
"description": "The time this maintenance event record was last updated (UTC)."
}
}
},
"MaintenanceEventRescheduleRequest": {
"type": "object",
"description": "Parameters to reschedule a maintenance event.",
Expand Down
8 changes: 2 additions & 6 deletions specification/postgresql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ input-file:
suppressions:
- code: GuidUsage
from: openapi.json
where: $.definitions.DataEncryption.properties.primaryFederatedIdentityClientId
reason: Client ID of multi-tenant Microsoft Entra application, defined as GUID per ARM guidelines.
- code: GuidUsage
from: openapi.json
where: $.definitions.DataEncryption.properties.geoBackupFederatedIdentityClientId
reason: Client ID of multi-tenant Microsoft Entra application for geo-redundant backups, defined as GUID per ARM guidelines.
where: $.definitions.Azure.Core.uuid
reason: Client ID of multi-tenant Microsoft Entra application and multi-tenant Microsoft Entra application for geo-redundant backups, defined as GUID per ARM guidelines.
- code: EnumInsteadOfBoolean
from: openapi.json
where: $.definitions.PolicyDetail.properties.passed
Expand Down
Loading