File tree Expand file tree Collapse file tree 5 files changed +257
-0
lines changed
datamodels-datatypes-object Expand file tree Collapse file tree 5 files changed +257
-0
lines changed Original file line number Diff line number Diff line change 2323 " datamodels-datatypes-array" ,
2424 " datamodels-datatypes-integer" ,
2525 " datamodels-datatypes-string" ,
26+ " datamodels-combineschema" ,
2627 " directive-model" ,
2728 " directive-tableformat" ,
2829 " extension-ms-azureresource" ,
Original file line number Diff line number Diff line change 1+ ### AutoRest Configuration
2+ > see https://aka.ms/autorest
3+
4+ ``` yaml
5+ require :
6+ - $(this-folder)/../readme.azure.noprofile.md
7+ input-file :
8+ - $(this-folder)/swagger.json
9+
10+ ```
Original file line number Diff line number Diff line change 1+ {
2+
3+ "swagger" : " 2.0" ,
4+ "info" : {
5+ "title" : " DatabricksClient" ,
6+ "version" : " 2018-04-01" ,
7+ "description" : " ARM Databricks"
8+ },
9+ "host" : " management.azure.com" ,
10+ "schemes" : [
11+ " https"
12+ ],
13+ "consumes" : [
14+ " application/json"
15+ ],
16+ "produces" : [
17+ " application/json"
18+ ],
19+ "security" : [
20+ {
21+ "azure_auth" : [
22+ " user_impersonation"
23+ ]
24+ }
25+ ],
26+ "securityDefinitions" : {
27+ "azure_auth" : {
28+ "type" : " oauth2" ,
29+ "authorizationUrl" : " https://login.microsoftonline.com/common/oauth2/authorize" ,
30+ "flow" : " implicit" ,
31+ "description" : " Azure Active Directory OAuth2 Flow" ,
32+ "scopes" : {
33+ "user_impersonation" : " impersonate your user account"
34+ }
35+ }
36+ },
37+ "paths" : {
38+ "/pets" : {
39+ "patch" : {
40+ "tags" : [
41+ " pets"
42+ ],
43+ "operationId" : " Pets_Update" ,
44+ "description" : " Gets pet list." ,
45+ "parameters" : [
46+ {
47+ "name" : " pets" ,
48+ "in" : " body" ,
49+ "required" : true ,
50+ "description" : " The pets update." ,
51+ "schema" : {
52+ "$ref" :" #/definitions/Dog"
53+ }
54+ }
55+ ],
56+ "responses" : {
57+ "200" : {
58+ "description" : " OK-Return workspace."
59+ }
60+ }
61+ }
62+ }
63+ },
64+ "definitions" : {
65+ "Pet" : {
66+ "type" : " object" ,
67+ "properties" : {
68+ "petType" : {
69+ "type" : " string"
70+ }
71+ }
72+ },
73+ "Dog" :{
74+ "type" : " object" ,
75+ "properties" : {
76+ "bark" : {
77+ "type" : " boolean"
78+ },
79+ "breed" : {
80+ "type" : " string"
81+ }
82+ }
83+ },
84+ "Cat" : {
85+ "allOf" : [
86+ {
87+ "$ref" : " #/definitions/Pet"
88+
89+ },
90+ {
91+ "type" : " object" ,
92+ "properties" : {
93+ "hunts" : {
94+ "type" : " boolean"
95+ },
96+ "age" : {
97+ "type" : " integer"
98+ }
99+ }
100+ }
101+ ]
102+
103+ }
104+ }
105+ }
Original file line number Diff line number Diff line change 1+ ### AutoRest Configuration
2+ > see https://aka.ms/autorest
3+
4+ ``` yaml
5+ require :
6+ - $(this-folder)/../readme.azure.noprofile.md
7+ input-file :
8+ - $(this-folder)/swagger.json
9+
10+ ```
Original file line number Diff line number Diff line change 1+ {
2+
3+ "swagger" : " 2.0" ,
4+ "info" : {
5+ "title" : " DatabricksClient" ,
6+ "version" : " 2018-04-01" ,
7+ "description" : " ARM Databricks"
8+ },
9+ "host" : " management.azure.com" ,
10+ "schemes" : [
11+ " https"
12+ ],
13+ "consumes" : [
14+ " application/json"
15+ ],
16+ "produces" : [
17+ " application/json"
18+ ],
19+ "security" : [
20+ {
21+ "azure_auth" : [
22+ " user_impersonation"
23+ ]
24+ }
25+ ],
26+ "securityDefinitions" : {
27+ "azure_auth" : {
28+ "type" : " oauth2" ,
29+ "authorizationUrl" : " https://login.microsoftonline.com/common/oauth2/authorize" ,
30+ "flow" : " implicit" ,
31+ "description" : " Azure Active Directory OAuth2 Flow" ,
32+ "scopes" : {
33+ "user_impersonation" : " impersonate your user account"
34+ }
35+ }
36+ },
37+ "paths" : {
38+ "/subscriptions/resourceGroup" : {
39+ "get" : {
40+ "tags" : [
41+ " Workspaces"
42+ ],
43+ "operationId" : " Workspaces_Get" ,
44+ "description" : " Gets the workspace." ,
45+ "responses" : {
46+ "200" : {
47+ "description" : " OK-Return workspace."
48+ }
49+ }
50+ }
51+ }
52+ },
53+ "definitions" : {
54+ "Model" : {
55+ "type" : " object" ,
56+ "properties" : {
57+ "message" : {
58+ "type" : " string"
59+ },
60+ "code" : {
61+ "type" : " integer"
62+ }
63+ }
64+ },
65+ "Model2" : {
66+ "type" : " object" ,
67+ "properties" : {
68+ "id" : {
69+ "type" : " integer"
70+ },
71+ "username" : {
72+ "type" : " string"
73+ },
74+ "name" : {
75+ "type" : " string"
76+ }
77+ },
78+ "required" : [
79+ " id" ,
80+ " username"
81+ ]
82+ },
83+ "Model3" : {
84+ "type" : " object" ,
85+ "properties" : {
86+ "id" : {
87+ "type" : " integer" ,
88+ "readOnly" : true
89+ },
90+ "password" : {
91+ "type" : " string"
92+ }
93+ },
94+ "required" : [
95+ " id" ,
96+ " username"
97+ ]
98+ },
99+ "ContactInfo" : {
100+ "type" : " object" ,
101+ "properties" : {
102+ "email" : {
103+ "type" : " string" ,
104+ "format" : " email"
105+ },
106+ "phone" : {
107+ "type" : " string"
108+ }
109+ }
110+ },
111+ "User" : {
112+ "type" : " object" ,
113+ "properties" : {
114+ "id" : {
115+ "type" : " integer"
116+ },
117+ "name" : {
118+ "type" : " string"
119+ },
120+ "contact_info" : {
121+ "$ref" : " #/definitions/ContactInfo"
122+ }
123+ }
124+ },
125+ "Model4" : {
126+ "type" : " object" ,
127+ "minProperties" : 2 ,
128+ "maxProperties" : 10
129+ }
130+ }
131+ }
You can’t perform that action at this time.
0 commit comments