Skip to content

Commit

Permalink
Change typespec examples dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayada1 committed Sep 20, 2023
1 parent bcb7744 commit 18e1e60
Show file tree
Hide file tree
Showing 147 changed files with 2,270 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/azure/clientv2/apiversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ limitations under the License.
package clientv2

var (
AccountsClientAPIVersion = "2022-09-01"
StateStoreClientAPIVersion = "2022-09-01"
ServiceBusClientAPIVersion = "2022-01-01-preview"
MSIClientAPIVersion = "2022-01-31-preview"
AccountsClientAPIVersion = "2023-10-01"
StateStoreClientAPIVersion = "2023-10-01"
ServiceBusClientAPIVersion = "2023-10-01-preview"
MSIClientAPIVersion = "2023-10-01-preview"
RoleAssignmentClientAPIVersion = "2022-04-01"

// https://github.com/Azure/azure-rest-api-specs/blob/main/specification/sql/resource-manager/readme.md
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"operationId": "TestAsyncResources_CreateOrUpdate",
"title": "Create or Update TestAsyncResource resources",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"testAsyncResourceName": "resource0",
"api-version": "2022-08-19-preview",
"TestAsyncResource": {
"location": "global",
"properties": {
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0",
"property1": "test"
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0",
"name": "resource0",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0",
"property1": "test"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"operationId": "TestAsyncResources_Delete",
"title": "Delete a TestAsyncResource resource",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"testAsyncResourceName": "resource0",
"api-version": "2022-08-19-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"operationId": "TestAsyncResources_Get",
"title": "Get a TestAsyncResource resource",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"testAsyncResourceName": "resource0",
"api-version": "2022-08-19-preview"
},
"responses": {
"200": {
"body": {
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0",
"name": "resource0",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"operationId": "TestAsyncResources_ListByScope",
"title": "List TestAsyncResource resources by resourcegroup",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"api-version": "2023-10-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0",
"name": "resource0",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0"
}
},
{
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1",
"name": "resource1",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0"
}
}
],
"nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2022-08-19-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"operationId": "TestAsyncResources_ListByScope",
"title": "List TestAsyncResource resources at root scope",
"parameters": {
"rootScope": "/planes/radius/local",
"api-version": "2023-10-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0",
"name": "resource0",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0"
}
},
{
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1",
"name": "resource1",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0"
}
}
],
"nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2022-08-19-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"operationId": "TestAsyncResources_Update",
"title": "Update TestAsyncResource resources",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"testSyncResourceName": "resource0",
"api-version": "2022-08-19-preview",
"TestSyncResource": {
"location": "global",
"properties": {
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0",
"property1": "test"
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0",
"name": "resource0",
"type": "Test.Resource/testAsyncResources",
"properties": {
"provisioningState": "Succeeded",
"application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0",
"property1": "test"
}
}
}
}
}
Loading

0 comments on commit 18e1e60

Please sign in to comment.