Skip to content

Commit 19a0032

Browse files
anat-gilensonAnat Gilenson
andauthored
Add systemData to common-types Resource in a new V3 version (Azure#15600)
* Create v3 common-types with systemData added to Resource definition * Add systemData to Resource properties Co-authored-by: Anat Gilenson <[email protected]>
1 parent 1b57763 commit 19a0032

File tree

2 files changed

+874
-0
lines changed

2 files changed

+874
-0
lines changed
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "3.0",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"PrivateEndpoint": {
10+
"type": "object",
11+
"properties": {
12+
"id": {
13+
"readOnly": true,
14+
"type": "string",
15+
"description": "The ARM identifier for Private Endpoint"
16+
}
17+
},
18+
"description": "The Private Endpoint resource."
19+
},
20+
"PrivateEndpointConnection": {
21+
"type": "object",
22+
"properties": {
23+
"properties": {
24+
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
25+
"x-ms-client-flatten": true,
26+
"description": "Resource properties."
27+
}
28+
},
29+
"allOf": [
30+
{
31+
"$ref": "./types.json#/definitions/Resource"
32+
}
33+
],
34+
"description": "The Private Endpoint Connection resource."
35+
},
36+
"PrivateEndpointConnectionProperties": {
37+
"type": "object",
38+
"properties": {
39+
"privateEndpoint": {
40+
"$ref": "#/definitions/PrivateEndpoint",
41+
"description": "The resource of private end point."
42+
},
43+
"privateLinkServiceConnectionState": {
44+
"$ref": "#/definitions/PrivateLinkServiceConnectionState",
45+
"description": "A collection of information about the state of the connection between service consumer and provider."
46+
},
47+
"provisioningState": {
48+
"$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
49+
"description": "The provisioning state of the private endpoint connection resource."
50+
}
51+
},
52+
"required": [
53+
"privateLinkServiceConnectionState"
54+
],
55+
"description": "Properties of the PrivateEndpointConnectProperties."
56+
},
57+
"PrivateLinkServiceConnectionState": {
58+
"type": "object",
59+
"properties": {
60+
"status": {
61+
"$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
62+
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
63+
},
64+
"description": {
65+
"type": "string",
66+
"description": "The reason for approval/rejection of the connection."
67+
},
68+
"actionsRequired": {
69+
"type": "string",
70+
"description": "A message indicating if changes on the service provider require any updates on the consumer."
71+
}
72+
},
73+
"description": "A collection of information about the state of the connection between service consumer and provider."
74+
},
75+
"PrivateEndpointServiceConnectionStatus": {
76+
"type": "string",
77+
"description": "The private endpoint connection status.",
78+
"enum": [
79+
"Pending",
80+
"Approved",
81+
"Rejected"
82+
],
83+
"x-ms-enum": {
84+
"name": "PrivateEndpointServiceConnectionStatus",
85+
"modelAsString": true
86+
}
87+
},
88+
"PrivateEndpointConnectionProvisioningState": {
89+
"type": "string",
90+
"readOnly": true,
91+
"description": "The current provisioning state.",
92+
"enum": [
93+
"Succeeded",
94+
"Creating",
95+
"Deleting",
96+
"Failed"
97+
],
98+
"x-ms-enum": {
99+
"name": "PrivateEndpointConnectionProvisioningState",
100+
"modelAsString": true
101+
}
102+
},
103+
"PrivateLinkResource": {
104+
"type": "object",
105+
"properties": {
106+
"properties": {
107+
"$ref": "#/definitions/PrivateLinkResourceProperties",
108+
"description": "Resource properties.",
109+
"x-ms-client-flatten": true
110+
}
111+
},
112+
"allOf": [
113+
{
114+
"$ref": "./types.json#/definitions/Resource"
115+
}
116+
],
117+
"description": "A private link resource"
118+
},
119+
"PrivateLinkResourceProperties": {
120+
"type": "object",
121+
"properties": {
122+
"groupId": {
123+
"description": "The private link resource group id.",
124+
"type": "string",
125+
"readOnly": true
126+
},
127+
"requiredMembers": {
128+
"description": "The private link resource required member names.",
129+
"type": "array",
130+
"items": {
131+
"type": "string"
132+
},
133+
"readOnly": true
134+
},
135+
"requiredZoneNames": {
136+
"type": "array",
137+
"items": {
138+
"type": "string"
139+
},
140+
"description": "The private link resource Private link DNS zone name."
141+
}
142+
},
143+
"description": "Properties of a private link resource."
144+
},
145+
"PrivateEndpointConnectionListResult": {
146+
"type": "object",
147+
"properties": {
148+
"value": {
149+
"type": "array",
150+
"description": "Array of private endpoint connections",
151+
"items": {
152+
"$ref": "#/definitions/PrivateEndpointConnection"
153+
}
154+
}
155+
},
156+
"description": "List of private endpoint connection associated with the specified storage account"
157+
},
158+
"PrivateLinkResourceListResult": {
159+
"type": "object",
160+
"properties": {
161+
"value": {
162+
"type": "array",
163+
"description": "Array of private link resources",
164+
"items": {
165+
"$ref": "#/definitions/PrivateLinkResource"
166+
}
167+
}
168+
},
169+
"description": "A list of private link resources"
170+
}
171+
},
172+
"parameters": {
173+
"PrivateEndpointConnectionName": {
174+
"name": "privateEndpointConnectionName",
175+
"in": "path",
176+
"required": true,
177+
"type": "string",
178+
"description": "The name of the private endpoint connection associated with the Azure resource",
179+
"x-ms-parameter-location": "method"
180+
}
181+
}
182+
}

0 commit comments

Comments
 (0)