-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
16 changed files
with
1,039 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...enEnergyPlatform/preview/2021-06-01-preview/examples/Locations_CheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview", | ||
"body": { | ||
"name": "sample-name", | ||
"type": "Microsoft.OEP/oepResource" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": null, | ||
"message": null | ||
} | ||
} | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
.../Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroupName": "DummyResourceGroupName", | ||
"resourceName": "DummyResourceName", | ||
"oepResource": { | ||
"location": "West US", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
}, | ||
"properties": { | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroupName": "DummyResourceGroupName", | ||
"api-version": "2021-06-01-preview", | ||
"resourceName": "DummyResourceName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ger/Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroupName": "DummyResourceGroupName", | ||
"resourceName": "DummyResourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...enEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_ListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroupName": "DummyResourceGroupName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
], | ||
"nextLink": "" | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...nEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_ListBySubscriptionId.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
], | ||
"nextLink": "" | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
.../Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/OepResource_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroupName": "DummyResourceGroupName", | ||
"resourceName": "DummyResourceName", | ||
"api-version": "2021-06-01-preview", | ||
"oepPatchResource": { | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Success", | ||
"authAppId": "sample-id", | ||
"dataPartitionNames": [ | ||
{ | ||
"name": "dataPartition1" | ||
}, | ||
{ | ||
"name": "dataPartition2" | ||
} | ||
] | ||
}, | ||
"name": "DummyResourceName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName", | ||
"type": "Microsoft.OEP/oepResource", | ||
"location": "WestUS", | ||
"tags": { | ||
"additionalProps1": "additional properties" | ||
} | ||
} | ||
} | ||
} | ||
} |
133 changes: 133 additions & 0 deletions
133
...ger/Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/Operations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/register/action", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "Microsoft.OpenEnergyPlatform", | ||
"operation": "Register the Microsoft.OpenEnergyPlatform", | ||
"description": "Register the subscription for Microsoft.OpenEnergyPlatform" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/unregister/action", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "Microsoft.OpenEnergyPlatform", | ||
"operation": "Unregister the Microsoft.OpenEnergyPlatform", | ||
"description": "Unregister the subscription for Microsoft.OpenEnergyPlatform" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "Locations/OperationStatuses", | ||
"operation": "read_OperationStatuses", | ||
"description": "read OperationStatuses" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/write", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "Locations/OperationStatuses", | ||
"operation": "write_OperationStatuses", | ||
"description": "write OperationStatuses" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_ListByResourceGroup", | ||
"description": "Returns list of oep resources.." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_ListBySubscriptionId", | ||
"description": "Lists a collection of oep resources under the given Azure Subscription ID." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_Get", | ||
"description": "Returns oep resource for a given name." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/write", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_Create", | ||
"description": "Method that gets called if subscribed for ResourceCreationBegin trigger." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/delete", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_Delete", | ||
"description": "Deletes oep resource" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/energyServices/write", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "energyServices", | ||
"operation": "OepResources_Update", | ||
"description": "write energyServices" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/Operations/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "Operations", | ||
"operation": "read_Operations", | ||
"description": "read Operations" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.OpenEnergyPlatform/checkNameAvailability/action", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.OpenEnergyPlatform", | ||
"resource": "checkNameAvailability", | ||
"operation": "action_checkNameAvailability", | ||
"description": "action checkNameAvailability" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.