@azure-tools/typespec-azure-resource-manager 0.43.0-dev.1 → 0.43.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/dist/src/common-types.d.ts +13 -2
- package/dist/src/common-types.d.ts.map +1 -1
- package/dist/src/common-types.js +133 -3
- package/dist/src/common-types.js.map +1 -1
- package/dist/src/commontypes.private.decorators.d.ts +44 -0
- package/dist/src/commontypes.private.decorators.d.ts.map +1 -0
- package/dist/src/commontypes.private.decorators.js +77 -0
- package/dist/src/commontypes.private.decorators.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +17 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +6 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/namespace.d.ts.map +1 -1
- package/dist/src/namespace.js +35 -0
- package/dist/src/namespace.js.map +1 -1
- package/dist/src/private.decorators.d.ts +1 -27
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +0 -149
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/rules/arm-common-types-version.d.ts.map +1 -1
- package/dist/src/rules/arm-common-types-version.js +2 -3
- package/dist/src/rules/arm-common-types-version.js.map +1 -1
- package/dist/src/rules/arm-post-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-post-response-codes.js.map +1 -1
- package/dist/src/rules/core-operations.js +1 -1
- package/dist/src/rules/core-operations.js.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js.map +1 -1
- package/lib/arm.tsp +2 -9
- package/lib/backcompat.tsp +27 -0
- package/lib/common-types/common-types.tsp +11 -1
- package/lib/common-types/commontypes.private.decorators.tsp +43 -0
- package/lib/common-types/customer-managed-keys-ref.tsp +27 -0
- package/lib/common-types/customer-managed-keys.tsp +37 -46
- package/lib/common-types/extended-location-ref.tsp +1 -0
- package/lib/common-types/extended-location.tsp +15 -16
- package/lib/common-types/internal.tsp +24 -0
- package/lib/common-types/managed-identity-ref.tsp +79 -0
- package/lib/common-types/managed-identity.tsp +50 -66
- package/lib/common-types/private-links-ref.tsp +159 -0
- package/lib/common-types/private-links.tsp +55 -102
- package/lib/common-types/types-ref.tsp +414 -0
- package/lib/common-types/types.tsp +324 -202
- package/lib/decorators.tsp +1 -1
- package/lib/{arm.foundations.tsp → foundations/arm.foundations.tsp} +28 -22
- package/lib/foundations/backcompat.tsp +39 -0
- package/lib/{common-types/backcompat.tsp → foundations/deprecation.tsp} +11 -0
- package/lib/interfaces.tsp +0 -1
- package/lib/models.tsp +25 -5
- package/lib/operations.tsp +5 -32
- package/lib/parameters.tsp +14 -67
- package/lib/private.decorators.tsp +0 -38
- package/lib/responses.tsp +8 -17
- package/package.json +5 -7
|
@@ -1,84 +1,75 @@
|
|
|
1
1
|
using Azure.Core;
|
|
2
|
-
using
|
|
2
|
+
using TypeSpec.Versioning;
|
|
3
3
|
|
|
4
|
-
namespace Azure.ResourceManager;
|
|
4
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */
|
|
7
|
+
@added(Versions.v4)
|
|
7
8
|
union InfrastructureEncryption {
|
|
8
|
-
|
|
9
|
+
/** Encryption is enabled */
|
|
9
10
|
Enabled: "enabled",
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
/** Encryption is disabled */
|
|
12
13
|
Disabled: "disabled",
|
|
13
14
|
|
|
14
15
|
string,
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
union KeyEncryptionKeyIdentity {
|
|
22
|
-
@doc("System assigned identity")
|
|
18
|
+
/** The type of identity to use. */
|
|
19
|
+
@added(Versions.v4)
|
|
20
|
+
union KeyEncryptionKeyIdentityType {
|
|
21
|
+
/** System assigned identity */
|
|
23
22
|
SystemAssignedIdentity: "systemAssignedIdentity",
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
/** User assigned identity */
|
|
26
25
|
UserAssignedIdentity: "userAssignedIdentity",
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
/** Delegated identity */
|
|
29
28
|
DelegatedResourceIdentity: "delegatedResourceIdentity",
|
|
30
29
|
|
|
31
30
|
string,
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
/** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
|
|
34
|
+
@added(Versions.v4)
|
|
35
|
+
model KeyEncryptionKeyIdentity {
|
|
36
|
+
/** The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity. */
|
|
37
|
+
identityType?: KeyEncryptionKeyIdentityType;
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/** User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity. */
|
|
40
40
|
userAssignedIdentityResourceId?: Azure.Core.armResourceIdentifier<[
|
|
41
41
|
{
|
|
42
42
|
type: "Microsoft.ManagedIdentity/userAssignedIdentities";
|
|
43
43
|
}
|
|
44
44
|
]>;
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
/** application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540 */
|
|
47
|
+
@added(Versions.v5)
|
|
47
48
|
federatedClientId?: uuid;
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
/** delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only. */
|
|
50
51
|
delegatedIdentityClientId?: uuid;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
@
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
model EncryptionConfiguration {
|
|
60
|
-
@doc("Indicates if infrastructure encryption is enabled or disabled.")
|
|
61
|
-
infrastructureEncryption?: InfrastructureEncryption;
|
|
62
|
-
|
|
63
|
-
@doc("All customer-managed key encryption properties for the resource.")
|
|
64
|
-
customerManagedKeyEncryption?: CustomerManagedKeyEncryption;
|
|
54
|
+
/** Customer-managed key encryption properties for the resource. */
|
|
55
|
+
@added(Versions.v4)
|
|
56
|
+
model CustomerManagedKeyEncryption {
|
|
57
|
+
/** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
|
|
58
|
+
keyEncryptionKeyIdentity?: KeyEncryptionKeyIdentity;
|
|
65
59
|
|
|
66
|
-
|
|
60
|
+
/** key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. */
|
|
67
61
|
keyEncryptionKeyUrl?: string;
|
|
68
62
|
}
|
|
69
63
|
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
* ```typespec
|
|
75
|
-
* model Foo is TrackedResource<FooProperties> {
|
|
76
|
-
* ...Encryption;
|
|
77
|
-
* }
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
@doc("All encryption configuration for a resource.")
|
|
64
|
+
/** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */
|
|
65
|
+
@added(Versions.v4)
|
|
66
|
+
@encodedName("application/json", "encryption")
|
|
81
67
|
model Encryption {
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
/** Values are enabled and disabled. */
|
|
69
|
+
infrastructureEncryption?: InfrastructureEncryption;
|
|
70
|
+
|
|
71
|
+
/** All Customer-managed key encryption properties for the resource. */
|
|
72
|
+
@added(Versions.v4)
|
|
73
|
+
@removed(Versions.v5)
|
|
74
|
+
customerManagedKeyEncryption?: CustomerManagedKeyEncryption;
|
|
84
75
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./extended-location.tsp";
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
namespace Azure.ResourceManager.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
2
|
+
/** The complex type of the extended location. */
|
|
3
|
+
model ExtendedLocation {
|
|
4
|
+
/** The name of the extended location. */
|
|
5
|
+
name: string;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/** The type of the extended location. */
|
|
8
|
+
type: ExtendedLocationType;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
/** The supported ExtendedLocation types. */
|
|
12
|
+
union ExtendedLocationType {
|
|
13
|
+
/** Azure Edge Zones location type */
|
|
14
|
+
EdgeZone: "EdgeZone",
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/** Azure Custom Locations type */
|
|
17
|
+
CustomLocation: "CustomLocation",
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
string,
|
|
21
20
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An internal enum to indicate the resource support for various path types
|
|
5
|
+
*/
|
|
6
|
+
enum ResourceHome {
|
|
7
|
+
@doc("The resource is bound to a tenant")
|
|
8
|
+
Tenant,
|
|
9
|
+
|
|
10
|
+
@doc("The resource is bound to a subscription")
|
|
11
|
+
Subscription,
|
|
12
|
+
|
|
13
|
+
@doc("The resource is bound to a location")
|
|
14
|
+
Location,
|
|
15
|
+
|
|
16
|
+
@doc("The resource is bound to a resource group")
|
|
17
|
+
ResourceGroup,
|
|
18
|
+
|
|
19
|
+
@doc("The resource is bound to an extension")
|
|
20
|
+
Extension,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Alias of keyEncryptionKeyIdentity for back compatibility. Please change to keyEncryptionKeyIdentity. */
|
|
24
|
+
alias KeyEncryptionIdentity = KeyEncryptionKeyIdentity;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import "./managed-identity.tsp";
|
|
2
|
+
|
|
3
|
+
using Azure.ResourceManager.CommonTypes.Private;
|
|
4
|
+
|
|
5
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The properties of the managed service identities assigned to this resource.
|
|
9
|
+
*/
|
|
10
|
+
@@armCommonDefinition(ManagedServiceIdentity,
|
|
11
|
+
"ManagedServiceIdentity",
|
|
12
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
13
|
+
"managedidentity.json"
|
|
14
|
+
);
|
|
15
|
+
@@armCommonDefinition(ManagedServiceIdentity,
|
|
16
|
+
"ManagedServiceIdentity",
|
|
17
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
18
|
+
"managedidentity.json"
|
|
19
|
+
);
|
|
20
|
+
@@armCommonDefinition(ManagedServiceIdentity,
|
|
21
|
+
"ManagedServiceIdentity",
|
|
22
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
23
|
+
"managedidentity.json"
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */
|
|
27
|
+
@@armCommonDefinition(UserAssignedIdentities,
|
|
28
|
+
"UserAssignedIdentities",
|
|
29
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
30
|
+
"managedidentity.json"
|
|
31
|
+
);
|
|
32
|
+
@@armCommonDefinition(UserAssignedIdentities,
|
|
33
|
+
"UserAssignedIdentities",
|
|
34
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
35
|
+
"managedidentity.json"
|
|
36
|
+
);
|
|
37
|
+
@@armCommonDefinition(UserAssignedIdentities,
|
|
38
|
+
"UserAssignedIdentities",
|
|
39
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
40
|
+
"managedidentity.json"
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The properties of the service-assigned identity associated with this resource.
|
|
45
|
+
*/
|
|
46
|
+
@@armCommonDefinition(SystemAssignedServiceIdentity,
|
|
47
|
+
"SystemAssignedServiceIdentity",
|
|
48
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
49
|
+
"managedidentity.json"
|
|
50
|
+
);
|
|
51
|
+
@@armCommonDefinition(SystemAssignedServiceIdentity,
|
|
52
|
+
"SystemAssignedServiceIdentity",
|
|
53
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
54
|
+
"managedidentity.json"
|
|
55
|
+
);
|
|
56
|
+
@@armCommonDefinition(SystemAssignedServiceIdentity,
|
|
57
|
+
"SystemAssignedServiceIdentity",
|
|
58
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
59
|
+
"managedidentity.json"
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* A managed identity assigned by the user.
|
|
64
|
+
*/
|
|
65
|
+
@@armCommonDefinition(UserAssignedIdentity,
|
|
66
|
+
"UserAssignedIdentity",
|
|
67
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
68
|
+
"managedidentity.json"
|
|
69
|
+
);
|
|
70
|
+
@@armCommonDefinition(UserAssignedIdentity,
|
|
71
|
+
"UserAssignedIdentity",
|
|
72
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
73
|
+
"managedidentity.json"
|
|
74
|
+
);
|
|
75
|
+
@@armCommonDefinition(UserAssignedIdentity,
|
|
76
|
+
"UserAssignedIdentity",
|
|
77
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
78
|
+
"managedidentity.json"
|
|
79
|
+
);
|
|
@@ -1,116 +1,100 @@
|
|
|
1
|
-
using Azure.
|
|
1
|
+
using Azure.Core;
|
|
2
|
+
using TypeSpec.Versioning;
|
|
2
3
|
|
|
3
|
-
namespace Azure.ResourceManager.
|
|
4
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
5
|
+
|
|
6
|
+
/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
|
|
7
|
+
#deprecated "Do not use this model. Instead, use Record<UserAssignedIdentity> directly. Using this model will result in a different client SDK when generated from TypeSpec compared to the Swagger."
|
|
8
|
+
model UserAssignedIdentities is Record<UserAssignedIdentity>;
|
|
4
9
|
|
|
5
|
-
#deprecated "Please change ManagedIdentityProperties to ManagedServiceIdentity."
|
|
6
|
-
alias ManagedIdentityProperties = ManagedServiceIdentity;
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* Managed service identity (system assigned and/or user assigned identities)
|
|
9
12
|
*/
|
|
10
|
-
@armCommonDefinition(
|
|
11
|
-
"ManagedServiceIdentity",
|
|
12
|
-
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
|
|
13
|
-
"managedidentity.json"
|
|
14
|
-
)
|
|
15
|
-
@armCommonDefinition(
|
|
16
|
-
"ManagedServiceIdentity",
|
|
17
|
-
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
18
|
-
"managedidentity.json"
|
|
19
|
-
)
|
|
20
13
|
model ManagedServiceIdentity {
|
|
21
|
-
|
|
14
|
+
/** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */
|
|
22
15
|
@visibility("read")
|
|
23
|
-
|
|
16
|
+
principalId?: uuid;
|
|
24
17
|
|
|
25
|
-
|
|
18
|
+
/** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */
|
|
26
19
|
@visibility("read")
|
|
27
|
-
|
|
20
|
+
tenantId?: uuid;
|
|
28
21
|
|
|
29
|
-
|
|
22
|
+
/** The type of managed identity assigned to this resource. */
|
|
30
23
|
type: ManagedServiceIdentityType;
|
|
31
24
|
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
/** The identities assigned to this resource by the user. */
|
|
26
|
+
@typeChangedFrom(Versions.v5, Record<UserAssignedIdentity>)
|
|
27
|
+
userAssignedIdentities?: Record<UserAssignedIdentity> | null;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
|
-
/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */
|
|
37
|
-
model UserAssignedIdentities is Record<UserAssignedIdentity>;
|
|
38
|
-
|
|
39
|
-
#deprecated "Please change ManagedSystemIdentityProperties to SystemAssignedServiceIdentity."
|
|
40
|
-
alias ManagedSystemIdentityProperties = SystemAssignedServiceIdentity;
|
|
41
30
|
/**
|
|
42
|
-
*
|
|
31
|
+
* Managed service identity (either system assigned, or none)
|
|
43
32
|
*/
|
|
44
|
-
@armCommonDefinition(
|
|
45
|
-
"SystemAssignedServiceIdentity",
|
|
46
|
-
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
|
|
47
|
-
"managedidentity.json"
|
|
48
|
-
)
|
|
49
|
-
@armCommonDefinition(
|
|
50
|
-
"SystemAssignedServiceIdentity",
|
|
51
|
-
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
52
|
-
"managedidentity.json"
|
|
53
|
-
)
|
|
54
33
|
model SystemAssignedServiceIdentity {
|
|
55
|
-
|
|
34
|
+
/** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */
|
|
56
35
|
@visibility("read")
|
|
57
|
-
|
|
36
|
+
principalId?: uuid;
|
|
58
37
|
|
|
59
|
-
|
|
38
|
+
/** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */
|
|
60
39
|
@visibility("read")
|
|
61
|
-
|
|
40
|
+
tenantId?: uuid;
|
|
62
41
|
|
|
63
|
-
|
|
42
|
+
/** The type of managed identity assigned to this resource. */
|
|
64
43
|
type: SystemAssignedServiceIdentityType;
|
|
65
44
|
}
|
|
66
45
|
|
|
67
|
-
/** Alias of ManagedServiceIdentityType for back compatability. Please change to ManagedServiceIdentityType. */
|
|
68
|
-
#deprecated "Please change to ManagedServiceIdentityType."
|
|
69
|
-
alias ManagedIdentityType = ManagedServiceIdentityType;
|
|
70
46
|
/**
|
|
71
|
-
*
|
|
47
|
+
* User assigned identity properties
|
|
72
48
|
*/
|
|
73
|
-
@doc("A managed identity assigned by the user.")
|
|
74
49
|
model UserAssignedIdentity {
|
|
75
|
-
|
|
76
|
-
|
|
50
|
+
/** The principal ID of the assigned identity. */
|
|
51
|
+
@visibility("read")
|
|
52
|
+
principalId?: uuid;
|
|
77
53
|
|
|
78
|
-
|
|
79
|
-
|
|
54
|
+
/** The client ID of the assigned identity. */
|
|
55
|
+
@visibility("read")
|
|
56
|
+
clientId?: uuid;
|
|
80
57
|
}
|
|
81
58
|
|
|
82
59
|
/**
|
|
83
|
-
*
|
|
60
|
+
* Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
|
|
84
61
|
*/
|
|
85
|
-
@doc("The kind of managed identity assigned to this resource.")
|
|
86
62
|
union ManagedServiceIdentityType {
|
|
87
|
-
|
|
63
|
+
/** No managed identity. */
|
|
88
64
|
None: "None",
|
|
89
65
|
|
|
90
|
-
|
|
66
|
+
/** System assigned managed identity. */
|
|
91
67
|
SystemAssigned: "SystemAssigned",
|
|
92
68
|
|
|
93
|
-
|
|
69
|
+
/** User assigned managed identity. */
|
|
94
70
|
UserAssigned: "UserAssigned",
|
|
95
71
|
|
|
96
|
-
|
|
97
|
-
|
|
72
|
+
/** System and user assigned managed identity. */
|
|
73
|
+
@renamedFrom(Versions.v3, "SystemAndUserAssigned")
|
|
74
|
+
@removed(Versions.v4)
|
|
75
|
+
SystemAndUserAssignedV3: "SystemAssigned,UserAssigned",
|
|
76
|
+
|
|
77
|
+
/** System and user assigned managed identity. */
|
|
78
|
+
@added(Versions.v4)
|
|
79
|
+
@renamedFrom(Versions.v4, "SystemAndUserAssigned")
|
|
80
|
+
@removed(Versions.v5)
|
|
81
|
+
SystemAndUserAssignedV4: "SystemAssigned, UserAssigned",
|
|
82
|
+
|
|
83
|
+
/** System and user assigned managed identity. */
|
|
84
|
+
@added(Versions.v5)
|
|
85
|
+
SystemAndUserAssigned: "SystemAssigned,UserAssigned",
|
|
98
86
|
|
|
99
87
|
string,
|
|
100
88
|
}
|
|
101
89
|
|
|
102
|
-
/** Alias of SystemAssignedServiceIdentityType for back compatability. Please change to SystemAssignedServiceIdentityType. */
|
|
103
|
-
alias ManagedSystemIdentityType = SystemAssignedServiceIdentityType;
|
|
104
|
-
|
|
105
90
|
/**
|
|
106
|
-
*
|
|
91
|
+
* Type of managed service identity (either system assigned, or none).
|
|
107
92
|
*/
|
|
108
|
-
@doc("The kind of managemed identity assigned to this resource.")
|
|
109
93
|
union SystemAssignedServiceIdentityType {
|
|
110
|
-
|
|
94
|
+
/** No managed system identity. */
|
|
111
95
|
None: "None",
|
|
112
96
|
|
|
113
|
-
|
|
97
|
+
/** System assigned managed system identity. */
|
|
114
98
|
SystemAssigned: "SystemAssigned",
|
|
115
99
|
|
|
116
100
|
string,
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import "./private-links.tsp";
|
|
2
|
+
|
|
3
|
+
using Azure.ResourceManager.CommonTypes.Private;
|
|
4
|
+
|
|
5
|
+
namespace Azure.ResourceManager.CommonTypes;
|
|
6
|
+
|
|
7
|
+
/** The private endpoint */
|
|
8
|
+
@@armCommonDefinition(PrivateEndpoint,
|
|
9
|
+
"PrivateEndpoint",
|
|
10
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
11
|
+
"privatelinks.json"
|
|
12
|
+
);
|
|
13
|
+
@@armCommonDefinition(PrivateEndpoint,
|
|
14
|
+
"PrivateEndpoint",
|
|
15
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
16
|
+
"privatelinks.json"
|
|
17
|
+
);
|
|
18
|
+
@@armCommonDefinition(PrivateEndpoint,
|
|
19
|
+
"PrivateEndpoint",
|
|
20
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
21
|
+
"privatelinks.json"
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
/** The private endpoint resource */
|
|
25
|
+
@@armCommonDefinition(PrivateLinkResource,
|
|
26
|
+
"PrivateLinkResource",
|
|
27
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
28
|
+
"privatelinks.json"
|
|
29
|
+
);
|
|
30
|
+
@@armCommonDefinition(PrivateLinkResource,
|
|
31
|
+
"PrivateLinkResource",
|
|
32
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
33
|
+
"privatelinks.json"
|
|
34
|
+
);
|
|
35
|
+
@@armCommonDefinition(PrivateLinkResource,
|
|
36
|
+
"PrivateLinkResource",
|
|
37
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
38
|
+
"privatelinks.json"
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
/** PrivateEndpointConnection */
|
|
42
|
+
@@armCommonDefinition(PrivateEndpointConnection,
|
|
43
|
+
"PrivateEndpointConnection",
|
|
44
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
45
|
+
"privatelinks.json"
|
|
46
|
+
);
|
|
47
|
+
@@armCommonDefinition(PrivateEndpointConnection,
|
|
48
|
+
"PrivateEndpointConnection",
|
|
49
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
50
|
+
"privatelinks.json"
|
|
51
|
+
);
|
|
52
|
+
@@armCommonDefinition(PrivateEndpointConnection,
|
|
53
|
+
"PrivateEndpointConnection",
|
|
54
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
55
|
+
"privatelinks.json"
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/** Properties of he private endpoint connection resource */
|
|
59
|
+
@@armCommonDefinition(PrivateEndpointConnectionProperties,
|
|
60
|
+
"PrivateEndpointConnectionProperties",
|
|
61
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
62
|
+
"privatelinks.json"
|
|
63
|
+
);
|
|
64
|
+
@@armCommonDefinition(PrivateEndpointConnectionProperties,
|
|
65
|
+
"PrivateEndpointConnectionProperties",
|
|
66
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
67
|
+
"privatelinks.json"
|
|
68
|
+
);
|
|
69
|
+
@@armCommonDefinition(PrivateEndpointConnectionProperties,
|
|
70
|
+
"PrivateEndpointConnectionProperties",
|
|
71
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
72
|
+
"privatelinks.json"
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
76
|
+
@@armCommonDefinition(PrivateLinkServiceConnectionState,
|
|
77
|
+
"PrivateLinkServiceConnectionState",
|
|
78
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
79
|
+
"privatelinks.json"
|
|
80
|
+
);
|
|
81
|
+
@@armCommonDefinition(PrivateLinkServiceConnectionState,
|
|
82
|
+
"PrivateLinkServiceConnectionState",
|
|
83
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
84
|
+
"privatelinks.json"
|
|
85
|
+
);
|
|
86
|
+
@@armCommonDefinition(PrivateLinkServiceConnectionState,
|
|
87
|
+
"PrivateLinkServiceConnectionState",
|
|
88
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
89
|
+
"privatelinks.json"
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
/** Properties of a private link resource. */
|
|
93
|
+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Matches current common code"
|
|
94
|
+
@@armCommonDefinition(PrivateLinkResourceProperties,
|
|
95
|
+
"PrivateLinkResourceProperties",
|
|
96
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
97
|
+
"privatelinks.json"
|
|
98
|
+
);
|
|
99
|
+
@@armCommonDefinition(PrivateLinkResourceProperties,
|
|
100
|
+
"PrivateLinkResourceProperties",
|
|
101
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
102
|
+
"privatelinks.json"
|
|
103
|
+
);
|
|
104
|
+
@@armCommonDefinition(PrivateLinkResourceProperties,
|
|
105
|
+
"PrivateLinkResourceProperties",
|
|
106
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
107
|
+
"privatelinks.json"
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
/** PrivateEndpointConnectionListResult */
|
|
111
|
+
@@armCommonDefinition(PrivateEndpointConnectionListResult,
|
|
112
|
+
"PrivateEndpointConnectionListResult",
|
|
113
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
114
|
+
"privatelinks.json"
|
|
115
|
+
);
|
|
116
|
+
@@armCommonDefinition(PrivateEndpointConnectionListResult,
|
|
117
|
+
"PrivateEndpointConnectionListResult",
|
|
118
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
119
|
+
"privatelinks.json"
|
|
120
|
+
);
|
|
121
|
+
@@armCommonDefinition(PrivateEndpointConnectionListResult,
|
|
122
|
+
"PrivateEndpointConnectionListResult",
|
|
123
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
124
|
+
"privatelinks.json"
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
/** PrivateLinkResourceListResult */
|
|
128
|
+
@@armCommonDefinition(PrivateLinkResourceListResult,
|
|
129
|
+
"PrivateLinkResourceListResult",
|
|
130
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
131
|
+
"privatelinks.json"
|
|
132
|
+
);
|
|
133
|
+
@@armCommonDefinition(PrivateLinkResourceListResult,
|
|
134
|
+
"PrivateLinkResourceListResult",
|
|
135
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
136
|
+
"privatelinks.json"
|
|
137
|
+
);
|
|
138
|
+
@@armCommonDefinition(PrivateLinkResourceListResult,
|
|
139
|
+
"PrivateLinkResourceListResult",
|
|
140
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
141
|
+
"privatelinks.json"
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
/** PrivateEndpointConnectionParameter */
|
|
145
|
+
@@CommonTypes.Private.armCommonParameter(PrivateEndpointConnectionParameter.name,
|
|
146
|
+
"PrivateEndpointConnectionName",
|
|
147
|
+
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
148
|
+
"privatelinks.json"
|
|
149
|
+
);
|
|
150
|
+
@@CommonTypes.Private.armCommonParameter(PrivateEndpointConnectionParameter.name,
|
|
151
|
+
"PrivateEndpointConnectionName",
|
|
152
|
+
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
153
|
+
"privatelinks.json"
|
|
154
|
+
);
|
|
155
|
+
@@CommonTypes.Private.armCommonParameter(PrivateEndpointConnectionParameter.name,
|
|
156
|
+
"PrivateEndpointConnectionName",
|
|
157
|
+
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
158
|
+
"privatelinks.json"
|
|
159
|
+
);
|