Skip to content

Commit fbc11ac

Browse files
committed
add common-types under each api version folder
1 parent d4d7c7b commit fbc11ac

File tree

33 files changed

+3718
-0
lines changed

33 files changed

+3718
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-09-30-preview",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"BackupName": {
10+
"type": "string",
11+
"description": "The name of the backup.",
12+
"pattern": "(^[a-z0-9]$)|(^[a-z0-9][a-z0-9-]*[a-z0-9]$)"
13+
},
14+
"OperationStatusExtendedResult": {
15+
"description": "Represents Operation Results API Response",
16+
"type": "object",
17+
"properties": {
18+
"properties": {
19+
"$ref": "#/definitions/extendedData",
20+
"description": "The extended properties of Operation Results"
21+
}
22+
},
23+
"allOf": [
24+
{
25+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
26+
}
27+
]
28+
},
29+
"extendedData": {
30+
"type": "object",
31+
"additionalProperties": true,
32+
"description": "A name-value pair that represents extended info."
33+
}
34+
},
35+
"parameters": {
36+
"ServerNameParameter": {
37+
"name": "serverName",
38+
"in": "path",
39+
"required": true,
40+
"type": "string",
41+
"description": "The name of the server.",
42+
"pattern": "^[a-z0-9][-a-z0-9]*(?<!-)$",
43+
"x-ms-parameter-location": "method"
44+
},
45+
"LocationNameParameter": {
46+
"name": "locationName",
47+
"in": "path",
48+
"required": true,
49+
"type": "string",
50+
"description": "The name of the location.",
51+
"minLength": 1,
52+
"pattern": "^[ \\w]+$",
53+
"x-ms-parameter-location": "method"
54+
},
55+
"OperationIdParameter": {
56+
"name": "operationId",
57+
"in": "path",
58+
"required": true,
59+
"type": "string",
60+
"description": "The operation Id.",
61+
"x-ms-parameter-location": "method"
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-12-01-preview",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"BackupName": {
10+
"type": "string",
11+
"description": "The name of the backup.",
12+
"pattern": "(^[a-z0-9]$)|(^[a-z0-9][a-z0-9-]*[a-z0-9]$)"
13+
},
14+
"OperationStatusExtendedResult": {
15+
"description": "Represents Operation Results API Response",
16+
"type": "object",
17+
"properties": {
18+
"properties": {
19+
"$ref": "#/definitions/extendedData",
20+
"description": "The extended properties of Operation Results"
21+
}
22+
},
23+
"allOf": [
24+
{
25+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
26+
}
27+
]
28+
},
29+
"extendedData": {
30+
"type": "object",
31+
"additionalProperties": true,
32+
"description": "A name-value pair that represents extended info."
33+
},
34+
"OperationProgressResult": {
35+
"description": "Represents Operation Results API Response",
36+
"type": "object",
37+
"properties": {
38+
"properties": {
39+
"description": "The response properties specific to the operation",
40+
"$ref": "#/definitions/OperationProgressResponseType",
41+
"x-ms-client-flatten": true
42+
}
43+
},
44+
"allOf": [
45+
{
46+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
47+
}
48+
]
49+
},
50+
"OperationProgressResponseType": {
51+
"description": "Represents the response properties specific to the operation",
52+
"type": "object",
53+
"discriminator": "objectType",
54+
"required": [
55+
"objectType"
56+
],
57+
"properties": {
58+
"objectType": {
59+
"description": "Identifies the type of source operation",
60+
"type": "string",
61+
"enum": [
62+
"BackupAndExportResponse",
63+
"ImportFromStorageResponse"
64+
],
65+
"x-ms-enum": {
66+
"name": "ObjectType",
67+
"modelAsString": true
68+
}
69+
}
70+
}
71+
},
72+
"BackupAndExportResponseType": {
73+
"description": "BackupAndExport Response Properties",
74+
"type": "object",
75+
"x-ms-discriminator-value": "BackupAndExportResponse",
76+
"properties": {
77+
"datasourceSizeInBytes": {
78+
"format": "int64",
79+
"description": "Size of datasource in bytes",
80+
"type": "integer"
81+
},
82+
"dataTransferredInBytes": {
83+
"format": "int64",
84+
"description": "Data transferred in bytes",
85+
"type": "integer"
86+
},
87+
"backupMetadata": {
88+
"description": "Metadata related to backup to be stored for restoring resource in key-value pairs.",
89+
"type": "string"
90+
}
91+
},
92+
"allOf": [
93+
{
94+
"$ref": "#/definitions/OperationProgressResponseType"
95+
}
96+
]
97+
},
98+
"ImportFromStorageResponseType": {
99+
"description": "ImportFromStorage Response Properties",
100+
"type": "object",
101+
"x-ms-discriminator-value": "ImportFromStorageResponse",
102+
"properties": {
103+
"estimatedCompletionTime": {
104+
"description": "The estimated time of operation completion.",
105+
"type": "string",
106+
"format": "date-time"
107+
}
108+
},
109+
"allOf": [
110+
{
111+
"$ref": "#/definitions/OperationProgressResponseType"
112+
}
113+
]
114+
}
115+
},
116+
"parameters": {
117+
"ServerNameParameter": {
118+
"name": "serverName",
119+
"in": "path",
120+
"required": true,
121+
"type": "string",
122+
"description": "The name of the server.",
123+
"pattern": "^[a-z0-9][-a-z0-9]*(?<!-)$",
124+
"x-ms-parameter-location": "method"
125+
},
126+
"LocationNameParameter": {
127+
"name": "locationName",
128+
"in": "path",
129+
"required": true,
130+
"type": "string",
131+
"description": "The name of the location.",
132+
"minLength": 1,
133+
"pattern": "^[ \\w]+$",
134+
"x-ms-parameter-location": "method"
135+
}
136+
}
137+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-12-01-preview",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"BackupName": {
10+
"type": "string",
11+
"description": "The name of the backup.",
12+
"pattern": "(^[a-z0-9]$)|(^[a-z0-9][a-z0-9-]*[a-z0-9]$)"
13+
},
14+
"OperationStatusExtendedResult": {
15+
"description": "Represents Operation Results API Response",
16+
"type": "object",
17+
"properties": {
18+
"properties": {
19+
"$ref": "#/definitions/extendedData",
20+
"description": "The extended properties of Operation Results"
21+
}
22+
},
23+
"allOf": [
24+
{
25+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
26+
}
27+
]
28+
},
29+
"extendedData": {
30+
"type": "object",
31+
"additionalProperties": true,
32+
"description": "A name-value pair that represents extended info."
33+
},
34+
"OperationProgressResult": {
35+
"description": "Represents Operation Results API Response",
36+
"type": "object",
37+
"properties": {
38+
"properties": {
39+
"description": "The response properties specific to the operation",
40+
"$ref": "#/definitions/OperationProgressResponseType",
41+
"x-ms-client-flatten": true
42+
}
43+
},
44+
"allOf": [
45+
{
46+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
47+
}
48+
]
49+
},
50+
"OperationProgressResponseType": {
51+
"description": "Represents the response properties specific to the operation",
52+
"type": "object",
53+
"discriminator": "objectType",
54+
"required": [
55+
"objectType"
56+
],
57+
"properties": {
58+
"objectType": {
59+
"description": "Identifies the type of source operation",
60+
"type": "string",
61+
"enum": [
62+
"BackupAndExportResponse",
63+
"ImportFromStorageResponse"
64+
],
65+
"x-ms-enum": {
66+
"name": "ObjectType",
67+
"modelAsString": true
68+
}
69+
}
70+
}
71+
},
72+
"BackupAndExportResponseType": {
73+
"description": "BackupAndExport Response Properties",
74+
"type": "object",
75+
"x-ms-discriminator-value": "BackupAndExportResponse",
76+
"properties": {
77+
"datasourceSizeInBytes": {
78+
"format": "int64",
79+
"description": "Size of datasource in bytes",
80+
"type": "integer"
81+
},
82+
"dataTransferredInBytes": {
83+
"format": "int64",
84+
"description": "Data transferred in bytes",
85+
"type": "integer"
86+
},
87+
"backupMetadata": {
88+
"description": "Metadata related to backup to be stored for restoring resource in key-value pairs.",
89+
"type": "string"
90+
}
91+
},
92+
"allOf": [
93+
{
94+
"$ref": "#/definitions/OperationProgressResponseType"
95+
}
96+
]
97+
},
98+
"ImportFromStorageResponseType": {
99+
"description": "ImportFromStorage Response Properties",
100+
"type": "object",
101+
"x-ms-discriminator-value": "ImportFromStorageResponse",
102+
"properties": {
103+
"estimatedCompletionTime": {
104+
"description": "The estimated time of operation completion.",
105+
"type": "string",
106+
"format": "date-time"
107+
}
108+
},
109+
"allOf": [
110+
{
111+
"$ref": "#/definitions/OperationProgressResponseType"
112+
}
113+
]
114+
}
115+
},
116+
"parameters": {
117+
"ServerNameParameter": {
118+
"name": "serverName",
119+
"in": "path",
120+
"required": true,
121+
"type": "string",
122+
"description": "The name of the server.",
123+
"pattern": "^[a-z0-9][-a-z0-9]*(?<!-)$",
124+
"x-ms-parameter-location": "method"
125+
},
126+
"LocationNameParameter": {
127+
"name": "locationName",
128+
"in": "path",
129+
"required": true,
130+
"type": "string",
131+
"description": "The name of the location.",
132+
"minLength": 1,
133+
"pattern": "^[ \\w]+$",
134+
"x-ms-parameter-location": "method"
135+
}
136+
}
137+
}

0 commit comments

Comments
 (0)