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
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ interface ScheduledActions {
createOrUpdate is ArmResourceCreateOrReplaceAsync<ScheduledAction>;

@added(Microsoft.ComputeSchedule.Versions.`2025-04-15-preview`)
update is ArmResourcePatchSync<ScheduledAction, ScheduledActionProperties>;
update is ArmCustomPatchSync<
ScheduledAction,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
ScheduledAction,
ScheduledActionProperties
>
>;

@added(Microsoft.ComputeSchedule.Versions.`2025-04-15-preview`)
delete is ArmResourceDeleteWithoutOkAsync<ScheduledAction>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ options:
generate-test: true
generate-sample: true
"@azure-tools/typespec-ts":
# TODO: remove this once issue resolved: https://github.com/Azure/autorest.typescript/issues/3228
generate-sample: false
experimental-extensible-enums: true
package-dir: "arm-computeschedule"
flavor: azure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1838,25 +1838,6 @@
"type": "string",
"description": "Represents an Azure geography region where supported resource providers live."
},
"Azure.ResourceManager.CommonTypes.TrackedResourceUpdate": {
"type": "object",
"title": "Tracked Resource",
"description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
"properties": {
"tags": {
"type": "object",
"description": "Resource tags.",
"additionalProperties": {
"type": "string"
}
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/Resource"
}
]
},
"Azure.ResourceManager.ResourceProvisioningState": {
"type": "string",
"description": "The provisioning state of a resource type.",
Expand Down Expand Up @@ -3695,49 +3676,6 @@
"notificationSettings"
]
},
"ScheduledActionPropertiesUpdate": {
"type": "object",
"description": "Scheduled action properties",
"properties": {
"resourceType": {
"$ref": "#/definitions/ResourceType",
"description": "The type of resource the scheduled action is targeting"
},
"actionType": {
"$ref": "#/definitions/ActionType",
"description": "The action the scheduled action should perform in the resources"
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "The time which the scheduled action is supposed to start running"
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "The time when the scheduled action is supposed to stop scheduling"
},
"schedule": {
"$ref": "#/definitions/ScheduledActionsScheduleUpdate",
"description": "The schedule the scheduled action is supposed to follow"
},
"notificationSettings": {
"type": "array",
"description": "The notification settings for the scheduled action",
"items": {
"$ref": "#/definitions/NotificationProperties"
},
"x-ms-identifiers": [
"destination"
]
},
"disabled": {
"type": "boolean",
"description": "Tell if the scheduled action is disabled or not",
"default": false
}
}
},
"ScheduledActionResource": {
"type": "object",
"description": "Represents an scheduled action resource metadata.",
Expand Down Expand Up @@ -3842,18 +3780,63 @@
},
"ScheduledActionUpdate": {
"type": "object",
"description": "The scheduled action resource",
"description": "The type used for update operations of the ScheduledAction.",
"properties": {
"tags": {
"type": "object",
"description": "Resource tags.",
"additionalProperties": {
"type": "string"
}
},
"properties": {
"$ref": "#/definitions/ScheduledActionPropertiesUpdate",
"$ref": "#/definitions/ScheduledActionUpdateProperties",
"description": "The resource-specific properties for this resource."
}
},
"allOf": [
{
"$ref": "#/definitions/Azure.ResourceManager.CommonTypes.TrackedResourceUpdate"
}
},
"ScheduledActionUpdateProperties": {
"type": "object",
"description": "The updatable properties of the ScheduledAction.",
"properties": {
"resourceType": {
"$ref": "#/definitions/ResourceType",
"description": "The type of resource the scheduled action is targeting"
},
"actionType": {
"$ref": "#/definitions/ActionType",
"description": "The action the scheduled action should perform in the resources"
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "The time which the scheduled action is supposed to start running"
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "The time when the scheduled action is supposed to stop scheduling"
},
"schedule": {
"$ref": "#/definitions/ScheduledActionsScheduleUpdate",
"description": "The schedule the scheduled action is supposed to follow"
},
"notificationSettings": {
"type": "array",
"description": "The notification settings for the scheduled action",
"items": {
"$ref": "#/definitions/NotificationProperties"
},
"x-ms-identifiers": [
"destination"
]
},
"disabled": {
"type": "boolean",
"description": "Tell if the scheduled action is disabled or not",
"default": false
}
]
}
},
"ScheduledActionsId": {
"type": "string",
Expand Down
Loading