@azure-tools/typespec-azure-resource-manager 0.34.0-dev.1 → 0.34.0-dev.3
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/lib/arm.tsp +1 -0
- package/lib/private-links.tsp +137 -0
- package/package.json +3 -3
package/lib/arm.tsp
CHANGED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import "@typespec/openapi";
|
|
2
|
+
import "@typespec/http";
|
|
3
|
+
import "@typespec/rest";
|
|
4
|
+
import "@typespec/versioning";
|
|
5
|
+
import "@azure-tools/typespec-autorest";
|
|
6
|
+
import "@azure-tools/typespec-azure-core";
|
|
7
|
+
|
|
8
|
+
using TypeSpec.Http;
|
|
9
|
+
using OpenAPI;
|
|
10
|
+
using TypeSpec.Versioning;
|
|
11
|
+
using Azure.ResourceManager.Private;
|
|
12
|
+
|
|
13
|
+
namespace Azure.ResourceManager;
|
|
14
|
+
|
|
15
|
+
/** The private endpoint resource */
|
|
16
|
+
@armCommonDefinition("PrivateEndpoint", "v4", "privatelinks.json")
|
|
17
|
+
model PrivateEndpoint {
|
|
18
|
+
/** The resource identifier for private endpoint */
|
|
19
|
+
id?: ResourceIdentifier<[
|
|
20
|
+
{
|
|
21
|
+
type: "Microsoft.Network/privateEndpoints";
|
|
22
|
+
}
|
|
23
|
+
]>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The private endpoint connection resource */
|
|
27
|
+
model PrivateEndpointConnection extends Azure.ResourceManager.Foundations.ProxyResourceBase {
|
|
28
|
+
/** The private endpoint connection properties */
|
|
29
|
+
properties?: PrivateEndpointConnectionProperties;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Properties of he private endpoint connection resource */
|
|
33
|
+
@armCommonDefinition("PrivateEndpointConnectionProperties", "v4", "privatelinks.json")
|
|
34
|
+
model PrivateEndpointConnectionProperties {
|
|
35
|
+
/** The group identifiers for the private endpoint resource */
|
|
36
|
+
@visibility("read")
|
|
37
|
+
groupIds?: string[];
|
|
38
|
+
|
|
39
|
+
/** The private endpoint resource */
|
|
40
|
+
privateEndpoint?: PrivateEndpoint;
|
|
41
|
+
|
|
42
|
+
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
43
|
+
privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
|
|
44
|
+
|
|
45
|
+
/** The provisioning state of the private endpoint connection resource. */
|
|
46
|
+
provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
50
|
+
@armCommonDefinition("PrivateLinkServiceConnectionState", "v4", "privatelinks.json")
|
|
51
|
+
model PrivateLinkServiceConnectionState {
|
|
52
|
+
/** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */
|
|
53
|
+
status?: PrivateEndpointServiceConnectionStatus;
|
|
54
|
+
|
|
55
|
+
/** The reason for approval/rejection of the connection. */
|
|
56
|
+
description?: string;
|
|
57
|
+
|
|
58
|
+
/** A message indicating if changes on the service provider require any updates on the consumer. */
|
|
59
|
+
actionsRequired?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The provisioning state of the connection */
|
|
63
|
+
enum PrivateEndpointConnectionProvisioningState {
|
|
64
|
+
...ResourceProvisioningState,
|
|
65
|
+
/** Connection is being created */
|
|
66
|
+
Creating,
|
|
67
|
+
/** Connection is being deleted */
|
|
68
|
+
Deleting,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The private endpoint connection status */
|
|
72
|
+
enum PrivateEndpointServiceConnectionStatus {
|
|
73
|
+
/** Connectionaiting for approval or rejection */
|
|
74
|
+
Pending,
|
|
75
|
+
/** Connection approved */
|
|
76
|
+
Approved,
|
|
77
|
+
/** Connection Rejected */
|
|
78
|
+
Rejected,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
model PrivateLinkResource extends Azure.ResourceManager.Foundations.ProxyResourceBase {
|
|
82
|
+
/** Properties of the private link resource. */
|
|
83
|
+
properties?: PrivateLinkResourceProperties;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Properties of a private link resource. */
|
|
87
|
+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Matches current common code"
|
|
88
|
+
@armCommonDefinition("PrivateLinkResourceProperties", "v4", "privatelinks.json")
|
|
89
|
+
model PrivateLinkResourceProperties {
|
|
90
|
+
/** The private link resource group id. */
|
|
91
|
+
@visibility("read")
|
|
92
|
+
groupId?: string;
|
|
93
|
+
|
|
94
|
+
/** The private link resource required member names. */
|
|
95
|
+
@visibility("read")
|
|
96
|
+
requiredMembers?: string[];
|
|
97
|
+
|
|
98
|
+
/** The private link resource private link DNS zone name. */
|
|
99
|
+
requiredZoneNames?: string[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** List of private endpoint connections associated with the specified resource. */
|
|
103
|
+
model PrivateEndpointConnectionResourceListResult {
|
|
104
|
+
/** Array of private endpoint connections */
|
|
105
|
+
value?: PrivateEndpointConnection[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** A list of private link resources. */
|
|
109
|
+
model PrivateLinkResourceListResult {
|
|
110
|
+
/** Array of private link resources */
|
|
111
|
+
value?: PrivateLinkResource[];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The name of the private endpoint connection associated with the Azure resource.
|
|
116
|
+
* @template TSegment The resource type name for private endpoint connections (default is privateEndpointConnections)
|
|
117
|
+
*/
|
|
118
|
+
model PrivateEndpointConnectionParameter<TSegment extends valueof string = "privateEndpointConnections"> {
|
|
119
|
+
/** The name of the private endpoint connection associated with the Azure resource. */
|
|
120
|
+
@path
|
|
121
|
+
@armCommonParameter("PrivateEndpointConnectionName", "v4", "privatelinks.json")
|
|
122
|
+
@TypeSpec.Rest.segment(TSegment)
|
|
123
|
+
@key("privateEndpointConnectionName")
|
|
124
|
+
name: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The name of the private link associated with the Azure resource.
|
|
129
|
+
* @template TSegment The resource type name for private links (default is privateLinkResources)
|
|
130
|
+
*/
|
|
131
|
+
model PrivateLinkResourceParameter<TSegment extends valueof string = "privateLinkResources"> {
|
|
132
|
+
/** The name of the private link associated with the Azure resource. */
|
|
133
|
+
@path
|
|
134
|
+
@TypeSpec.Rest.segment(TSegment)
|
|
135
|
+
@key("privateLinkResourcenName")
|
|
136
|
+
name: string;
|
|
137
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.34.0-dev.
|
|
3
|
+
"version": "0.34.0-dev.3",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@typespec/compiler": "~0.47.1 || >=0.48.0-dev <0.48.0",
|
|
46
|
-
"@azure-tools/typespec-azure-core": "~0.33.
|
|
46
|
+
"@azure-tools/typespec-azure-core": "~0.33.1 || >=0.34.0-dev <0.34.0",
|
|
47
47
|
"@azure-tools/typespec-autorest": "~0.33.0 || >=0.34.0-dev <0.34.0",
|
|
48
48
|
"@typespec/openapi": "~0.47.0 || >=0.48.0-dev <0.48.0",
|
|
49
49
|
"@typespec/rest": "~0.47.0 || >=0.48.0-dev <0.48.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@typespec/compiler": "~0.47.1 || >=0.48.0-dev <0.48.0",
|
|
58
58
|
"@typespec/openapi": "~0.47.0 || >=0.48.0-dev <0.48.0",
|
|
59
|
-
"@azure-tools/typespec-azure-core": "~0.33.
|
|
59
|
+
"@azure-tools/typespec-azure-core": "~0.33.1 || >=0.34.0-dev <0.34.0",
|
|
60
60
|
"@azure-tools/typespec-autorest": "~0.33.0 || >=0.34.0-dev <0.34.0",
|
|
61
61
|
"@typespec/rest": "~0.47.0 || >=0.48.0-dev <0.48.0",
|
|
62
62
|
"@typespec/http": "~0.47.0 || >=0.48.0-dev <0.48.0",
|