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 @@ -12,12 +12,14 @@ using Azure.Core;

namespace Microsoft.DeviceRegistry;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Using Legacy.TrackedResourceWithOptionalLocation to make location property optional for backward compatibility"
@added(Versions.v2025_11_01_preview)
@removed(Versions.v2026_03_01_preview)
@renamedFrom(Versions.v2026_03_01_preview, "Policy")
@doc("A Credential Policy")
@parentResource(Credential)
model PolicyV1 is TrackedResource<PolicyProperties> {
model PolicyV1
is Azure.ResourceManager.Legacy.TrackedResourceWithOptionalLocation<PolicyProperties> {
@doc("The name of the Policy tracked resource.")
@minLength(3)
@maxLength(63)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8478,12 +8478,27 @@
"properties": {
"properties": {
"$ref": "#/definitions/PolicyProperties",
"description": "The resource-specific properties for this resource."
"description": "The RP-specific properties for this resource."
},
"tags": {
"type": "object",
"description": "Resource tags.",
"additionalProperties": {
"type": "string"
}
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives",
"x-ms-mutability": [
"read",
"create"
]
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource"
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource"
}
]
},
Expand Down
Loading