Skip to content

Commit

Permalink
adding typespec example
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwanath Hiremath <[email protected]>
  • Loading branch information
vishwahiremat committed Feb 22, 2024
1 parent 2125896 commit c331be1
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"operationId": "SecretStores_CreateOrUpdate",
"title": "Create or Update a secret store resource with global scope",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"secretStoreName": "secret",
"api-version": "2023-10-01-preview",
"SecretStoreResource": {
"location": "global",
"properties": {
"type": "certificate",
"data": {
"tls.crt": {
"encoding": "base64",
"value": "certificate"
},
"tls.key": {
"encoding": "base64",
"value": "certificate"
}
},
"resource": "testNamespace/secret"
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores/secret",
"name": "secret",
"type": "Applications.Core/secretStores",
"location": "global",
"properties": {
"provisioningState": "Succeeded",
"type": "certificate",
"data": {
"tls.crt": {
"encoding": "base64"
},
"tls.key": {
"encoding": "base64"
}
},
"resource": "testNamespace/secret"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,9 @@
},
"Create or Update a secret store resource with valueFrom": {
"$ref": "./examples/SecretStores_CreateOrUpdateValueFrom.json"
},
"Create or Update a secret store resource with global scope": {
"$ref": "./examples/SecretStores_CreateOrUpdate_GlobalScope.json"
}
},
"x-ms-long-running-operation-options": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"operationId": "SecretStores_CreateOrUpdate",
"title": "Create or Update a secret store resource with global scope",
"parameters": {
"rootScope": "/planes/radius/local/resourceGroups/testGroup",
"secretStoreName": "secret",
"api-version": "2023-10-01-preview",
"SecretStoreResource": {
"location": "global",
"properties": {
"type": "certificate",
"data": {
"tls.crt": {
"encoding": "base64",
"value": "certificate"
},
"tls.key": {
"encoding": "base64",
"value": "certificate"
}
},
"resource": "testNamespace/secret"
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores/secret",
"name": "secret",
"type": "Applications.Core/secretStores",
"location": "global",
"properties": {
"provisioningState": "Succeeded",
"type": "certificate",
"data": {
"tls.crt": {
"encoding": "base64"
},
"tls.key": {
"encoding": "base64"
}
},
"resource": "testNamespace/secret"
}
}
}
}
}

0 comments on commit c331be1

Please sign in to comment.