Skip to content

Commit 23d896b

Browse files
authored
Dev oep microsoft.open energy platform 2021 06 01 preview (#17105)
* New Swagger Spec File * New Swagger Example Spec File * New Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Go Language Readme Config File * New Python Language Readme Config File * New Typescript Language Readme Config File * New C# Language Readme Config File * Updated swagger * adding examples * correcting version of api * Go readme changed * Changing operation id Names from oepresource to energyservices * added id for data partition name for linter to pass * Removing stray operationsgroupget file * lint fix * prettier fix * added multiapi * testing the SDK pipeline run * Correcting go readme and adding SDK link * Correcting go readme and adding SDK link * Removing ARM schema * Using common type for availability response and request * removing definition * renaming definition from OEPResources to EneryServices * correcting energy services * Changing properties name * Adding v3 error response * Adding description to Data partion Names list. * correcting energyservices to energyservice * adding operation list reponse * correcting ref for operationlist * Adding examples and prettier-fix
1 parent 7206f4d commit 23d896b

16 files changed

+1039
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2021-06-01-preview",
5+
"body": {
6+
"name": "sample-name",
7+
"type": "Microsoft.OEP/oepResource"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true,
14+
"reason": null,
15+
"message": null
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01-preview",
4+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
5+
"resourceGroupName": "DummyResourceGroupName",
6+
"resourceName": "DummyResourceName",
7+
"oepResource": {
8+
"location": "West US",
9+
"tags": {
10+
"additionalProps1": "additional properties"
11+
},
12+
"properties": {
13+
"authAppId": "sample-id",
14+
"dataPartitionNames": [
15+
{
16+
"name": "dataPartition1"
17+
},
18+
{
19+
"name": "dataPartition2"
20+
}
21+
]
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"properties": {
29+
"provisioningState": "Succeeded",
30+
"authAppId": "sample-id",
31+
"dataPartitionNames": [
32+
{
33+
"name": "dataPartition1"
34+
},
35+
{
36+
"name": "dataPartition2"
37+
}
38+
]
39+
},
40+
"name": "DummyResourceName",
41+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
42+
"type": "Microsoft.OEP/oepResource",
43+
"location": "WestUS",
44+
"tags": {
45+
"additionalProps1": "additional properties"
46+
}
47+
}
48+
},
49+
"201": {
50+
"body": {
51+
"properties": {
52+
"provisioningState": "Accepted",
53+
"authAppId": "sample-id",
54+
"dataPartitionNames": [
55+
{
56+
"name": "dataPartition1"
57+
},
58+
{
59+
"name": "dataPartition2"
60+
}
61+
]
62+
},
63+
"name": "DummyResourceName",
64+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
65+
"type": "Microsoft.OEP/oepResource",
66+
"location": "WestUS",
67+
"tags": {
68+
"additionalProps1": "additional properties"
69+
}
70+
}
71+
}
72+
}
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
4+
"resourceGroupName": "DummyResourceGroupName",
5+
"api-version": "2021-06-01-preview",
6+
"resourceName": "DummyResourceName"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01-preview",
4+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
5+
"resourceGroupName": "DummyResourceGroupName",
6+
"resourceName": "DummyResourceName"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"properties": {
13+
"provisioningState": "Accepted",
14+
"authAppId": "sample-id",
15+
"dataPartitionNames": [
16+
{
17+
"name": "dataPartition1"
18+
},
19+
{
20+
"name": "dataPartition2"
21+
}
22+
]
23+
},
24+
"name": "DummyResourceName",
25+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
26+
"type": "Microsoft.OEP/oepResource",
27+
"location": "WestUS",
28+
"tags": {
29+
"additionalProps1": "additional properties"
30+
}
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01-preview",
4+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
5+
"resourceGroupName": "DummyResourceGroupName"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"value": [
12+
{
13+
"properties": {
14+
"provisioningState": "Accepted",
15+
"authAppId": "sample-id",
16+
"dataPartitionNames": [
17+
{
18+
"name": "dataPartition1"
19+
},
20+
{
21+
"name": "dataPartition2"
22+
}
23+
]
24+
},
25+
"name": "DummyResourceName",
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
27+
"type": "Microsoft.OEP/oepResource",
28+
"location": "WestUS",
29+
"tags": {
30+
"additionalProps1": "additional properties"
31+
}
32+
}
33+
],
34+
"nextLink": ""
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01-preview",
4+
"subscriptionId": "0000000-0000-0000-0000-000000000001"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"value": [
11+
{
12+
"properties": {
13+
"provisioningState": "Accepted",
14+
"authAppId": "sample-id",
15+
"dataPartitionNames": [
16+
{
17+
"name": "dataPartition1"
18+
},
19+
{
20+
"name": "dataPartition2"
21+
}
22+
]
23+
},
24+
"name": "DummyResourceName",
25+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
26+
"type": "Microsoft.OEP/oepResource",
27+
"location": "WestUS",
28+
"tags": {
29+
"additionalProps1": "additional properties"
30+
}
31+
}
32+
],
33+
"nextLink": ""
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "0000000-0000-0000-0000-000000000001",
4+
"resourceGroupName": "DummyResourceGroupName",
5+
"resourceName": "DummyResourceName",
6+
"api-version": "2021-06-01-preview",
7+
"oepPatchResource": {
8+
"tags": {
9+
"additionalProps1": "additional properties"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {},
16+
"body": {
17+
"properties": {
18+
"provisioningState": "Success",
19+
"authAppId": "sample-id",
20+
"dataPartitionNames": [
21+
{
22+
"name": "dataPartition1"
23+
},
24+
{
25+
"name": "dataPartition2"
26+
}
27+
]
28+
},
29+
"name": "DummyResourceName",
30+
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
31+
"type": "Microsoft.OEP/oepResource",
32+
"location": "WestUS",
33+
"tags": {
34+
"additionalProps1": "additional properties"
35+
}
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.OpenEnergyPlatform/register/action",
11+
"isDataAction": false,
12+
"display": {
13+
"provider": "Microsoft.OpenEnergyPlatform",
14+
"resource": "Microsoft.OpenEnergyPlatform",
15+
"operation": "Register the Microsoft.OpenEnergyPlatform",
16+
"description": "Register the subscription for Microsoft.OpenEnergyPlatform"
17+
}
18+
},
19+
{
20+
"name": "Microsoft.OpenEnergyPlatform/unregister/action",
21+
"isDataAction": false,
22+
"display": {
23+
"provider": "Microsoft.OpenEnergyPlatform",
24+
"resource": "Microsoft.OpenEnergyPlatform",
25+
"operation": "Unregister the Microsoft.OpenEnergyPlatform",
26+
"description": "Unregister the subscription for Microsoft.OpenEnergyPlatform"
27+
}
28+
},
29+
{
30+
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/read",
31+
"isDataAction": false,
32+
"display": {
33+
"provider": "Microsoft.OpenEnergyPlatform",
34+
"resource": "Locations/OperationStatuses",
35+
"operation": "read_OperationStatuses",
36+
"description": "read OperationStatuses"
37+
}
38+
},
39+
{
40+
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/write",
41+
"isDataAction": false,
42+
"display": {
43+
"provider": "Microsoft.OpenEnergyPlatform",
44+
"resource": "Locations/OperationStatuses",
45+
"operation": "write_OperationStatuses",
46+
"description": "write OperationStatuses"
47+
}
48+
},
49+
{
50+
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
51+
"isDataAction": false,
52+
"display": {
53+
"provider": "Microsoft.OpenEnergyPlatform",
54+
"resource": "energyServices",
55+
"operation": "OepResources_ListByResourceGroup",
56+
"description": "Returns list of oep resources.."
57+
}
58+
},
59+
{
60+
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
61+
"isDataAction": false,
62+
"display": {
63+
"provider": "Microsoft.OpenEnergyPlatform",
64+
"resource": "energyServices",
65+
"operation": "OepResources_ListBySubscriptionId",
66+
"description": "Lists a collection of oep resources under the given Azure Subscription ID."
67+
}
68+
},
69+
{
70+
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
71+
"isDataAction": false,
72+
"display": {
73+
"provider": "Microsoft.OpenEnergyPlatform",
74+
"resource": "energyServices",
75+
"operation": "OepResources_Get",
76+
"description": "Returns oep resource for a given name."
77+
}
78+
},
79+
{
80+
"name": "Microsoft.OpenEnergyPlatform/energyServices/write",
81+
"isDataAction": false,
82+
"display": {
83+
"provider": "Microsoft.OpenEnergyPlatform",
84+
"resource": "energyServices",
85+
"operation": "OepResources_Create",
86+
"description": "Method that gets called if subscribed for ResourceCreationBegin trigger."
87+
}
88+
},
89+
{
90+
"name": "Microsoft.OpenEnergyPlatform/energyServices/delete",
91+
"isDataAction": false,
92+
"display": {
93+
"provider": "Microsoft.OpenEnergyPlatform",
94+
"resource": "energyServices",
95+
"operation": "OepResources_Delete",
96+
"description": "Deletes oep resource"
97+
}
98+
},
99+
{
100+
"name": "Microsoft.OpenEnergyPlatform/energyServices/write",
101+
"isDataAction": false,
102+
"display": {
103+
"provider": "Microsoft.OpenEnergyPlatform",
104+
"resource": "energyServices",
105+
"operation": "OepResources_Update",
106+
"description": "write energyServices"
107+
}
108+
},
109+
{
110+
"name": "Microsoft.OpenEnergyPlatform/Operations/read",
111+
"isDataAction": false,
112+
"display": {
113+
"provider": "Microsoft.OpenEnergyPlatform",
114+
"resource": "Operations",
115+
"operation": "read_Operations",
116+
"description": "read Operations"
117+
}
118+
},
119+
{
120+
"name": "Microsoft.OpenEnergyPlatform/checkNameAvailability/action",
121+
"isDataAction": false,
122+
"display": {
123+
"provider": "Microsoft.OpenEnergyPlatform",
124+
"resource": "checkNameAvailability",
125+
"operation": "action_checkNameAvailability",
126+
"description": "action checkNameAvailability"
127+
}
128+
}
129+
]
130+
}
131+
}
132+
}
133+
}

0 commit comments

Comments
 (0)