forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tsp
More file actions
81 lines (74 loc) · 2.26 KB
/
Copy pathmain.tsp
File metadata and controls
81 lines (74 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS
* Generated by package: @autorest/openapi-to-typespec
* Parameters used:
* isFullCompatible: true
* guessResourceKey: false
* Version: 0.11.12
* Date: 2025-10-27T02:40:16.533Z
*/
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/rest";
import "@typespec/versioning";
import "./back-compatible.tsp";
import "./DataPolicyManifests.tsp";
import "./models.tsp";
import "./PolicyAssignment.tsp";
import "./PolicyDefinition.tsp";
import "./PolicyDefinitionVersion.tsp";
import "./PolicyEnrollment.tsp";
import "./PolicyExemption.tsp";
import "./PolicySetDefinition.tsp";
import "./PolicySetDefinitionVersion.tsp";
import "./routes.tsp";
import "./Variable.tsp";
import "./VariableValue.tsp";
import "./client.tsp";
using Azure.Core;
using Azure.ResourceManager;
using Azure.ResourceManager.Foundations;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
/**
* To manage and control access to your resources, you can define customized policies and assign them at a scope.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "For backward compatibility"
@armProviderNamespace
@service(#{ title: "PolicyClient" })
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
namespace Microsoft.Authorization;
/**
* The available API versions.
*
* The preview version (v2026_01_01_preview) includes everything from the latest
* stable version plus new preview-only resource types:
* - PolicyExemption, Variable, VariableValue (marked with @added(Versions.v2025_12_01_preview))
* - PolicyEnrollment (marked with @added(Versions.v2026_01_01_preview))
*
* See https://azure.github.io/typespec-azure/docs/howtos/versioning/arm/04-preview-after-stable/
*/
enum Versions {
/**
* The 2025-03-01 API version.
*/
v2025_03_01: "2025-03-01",
/**
* The 2025-11-01 API version.
*/
v2025_11_01: "2025-11-01",
/**
* The 2025-12-01-preview API version.
*/
v2025_12_01_preview: "2025-12-01-preview",
/**
* The 2026-01-01-preview API version.
*/
v2026_01_01_preview: "2026-01-01-preview",
/**
* The 2026-06-01 API version.
*/
v2026_06_01: "2026-06-01",
}