-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
12,058 additions
and
0 deletions.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
specification/connectedcache/ConnectedCache.Management/cacheNodespreviewResource.tsp
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,40 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
|
||
using TypeSpec.Rest; | ||
using TypeSpec.Http; | ||
using Azure.ResourceManager; | ||
|
||
namespace Microsoft.ConnectedCache; | ||
|
||
model CacheNodePreviewResource is TrackedResource<CacheNodeOldResponse> { | ||
@doc("Name of the Customer resource") | ||
@maxLength(90) | ||
@minLength(1) | ||
@pattern("^[a-zA-Z0-9\\_\\-]*") | ||
@key("customerResourceName") | ||
@segment("cacheNodes") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface CacheNodesOperations { | ||
@doc("Retrieves the properties of a cacheNodes") | ||
get is ArmResourceRead<CacheNodePreviewResource>; | ||
@doc("Creates a cacheNodes with the specified create parameters") | ||
createorUpdate is ArmResourceCreateOrReplaceAsync<CacheNodePreviewResource>; | ||
@doc("Deletes an existing cache Node") | ||
delete is ArmResourceDeleteSync<CacheNodePreviewResource>; | ||
@doc("updates an existing Cache Node") | ||
update is ArmCustomPatchSync< | ||
CacheNodePreviewResource, | ||
ConnectedCachePatchResource | ||
>; | ||
@doc("Retrieves the properties of all ConnectedCache") | ||
listByResourceGroup is ArmResourceListByParent<CacheNodePreviewResource>; | ||
@doc("Retrieves the properties of all ConnectedCaches") | ||
listBySubscription is ArmListBySubscription<CacheNodePreviewResource>; | ||
} |
41 changes: 41 additions & 0 deletions
41
...ification/connectedcache/ConnectedCache.Management/enterpriseCustomerspreviewResource.tsp
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,41 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using TypeSpec.Http; | ||
using Azure.ResourceManager; | ||
|
||
namespace Microsoft.ConnectedCache; | ||
|
||
@doc("ConnectedCache Resource. Represents the high level Nodes needed to provision CacheNode and customer resources used in private preview") | ||
model EnterprisePreviewResource is TrackedResource<CacheNodeOldResponse> { | ||
@doc("Name of the Customer resource") | ||
@maxLength(90) | ||
@minLength(1) | ||
@pattern("^[a-zA-Z0-9\\_\\-]*") | ||
@key("customerResourceName") | ||
@segment("enterpriseCustomers") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface EnterpriseCustomerOperations { | ||
@doc("Retrieves the properties of a Enterprise customer") | ||
get is ArmResourceRead<EnterprisePreviewResource>; | ||
@doc("Creates a cacheNodes with the specified create parameters") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<EnterprisePreviewResource>; | ||
@doc("updates an existing enterpriseCustomers") | ||
update is ArmCustomPatchSync< | ||
EnterprisePreviewResource, | ||
ConnectedCachePatchResource | ||
>; | ||
@doc("Deletes an existing customer Enterprise resource") | ||
delete is ArmResourceDeleteSync<EnterprisePreviewResource>; | ||
@doc("Retrieves the properties of all ConnectedCache enterpriseCustomers") | ||
listByResourceGroup is ArmResourceListByParent<EnterprisePreviewResource>; | ||
@doc("Retrieves the properties of all ConnectedCaches") | ||
listBySubscription is ArmListBySubscription<EnterprisePreviewResource>; | ||
} |
53 changes: 53 additions & 0 deletions
53
specification/connectedcache/ConnectedCache.Management/enterpriseMccCacheNodes.tsp
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,53 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "./enterpriseMccCustomers.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using TypeSpec.Http; | ||
using Azure.ResourceManager; | ||
|
||
namespace Microsoft.ConnectedCache; | ||
|
||
@doc("Represents the high level Nodes needed to provision cache node resources") | ||
@parentResource(EnterpriseMccCustomerResource) | ||
model EnterpriseMccCacheNodeResource is TrackedResource<CacheNodeProperty> { | ||
@doc("Name of the ConnectedCache resource") | ||
@maxLength(90) | ||
@minLength(1) | ||
@pattern("^[a-zA-Z0-9\\_\\-]*") | ||
@key("cacheNodeResourceName") | ||
@segment("enterpriseMccCacheNodes") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface EnterpriseMccCacheNodesOperations { | ||
@doc("This api gets ispCacheNode resource information") | ||
get is ArmResourceRead<EnterpriseMccCacheNodeResource>; | ||
@doc("This api creates an ispCacheNode with the specified create parameters") | ||
createOrUpdate is ArmResourceCreateOrUpdateAsync<EnterpriseMccCacheNodeResource>; | ||
@doc("This api updates an existing ispCacheNode resource") | ||
update is ArmCustomPatchSync< | ||
EnterpriseMccCacheNodeResource, | ||
ConnectedCachePatchResource | ||
>; | ||
@doc("This api deletes an existing ispCacheNode resource") | ||
delete is ArmResourceDeleteWithoutOkAsync<EnterpriseMccCacheNodeResource>; | ||
@doc("This api retrieves information about all ispCacheNode resources under the given subscription and resource group") | ||
listByEnterpriseMccCustomerResource is ArmResourceListByParent<EnterpriseMccCacheNodeResource>; | ||
@doc("This api gets secrets of the ispCacheNode resource install details") | ||
getCacheNodeInstallDetails is ArmResourceActionSync< | ||
EnterpriseMccCacheNodeResource, | ||
void, | ||
MccCacheNodeInstallDetails | ||
>; | ||
} | ||
|
||
@@visibility(Azure.ResourceManager.TrackedResource.properties, | ||
"create", | ||
"update", | ||
"read" | ||
); |
41 changes: 41 additions & 0 deletions
41
specification/connectedcache/ConnectedCache.Management/enterpriseMccCustomers.tsp
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,41 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using TypeSpec.Http; | ||
using Azure.ResourceManager; | ||
|
||
namespace Microsoft.ConnectedCache; | ||
|
||
@doc("Represents the high level Nodes needed to provision customer resources") | ||
model EnterpriseMccCustomerResource is TrackedResource<CustomerProperty> { | ||
@doc("Name of the Customer resource") | ||
@maxLength(90) | ||
@minLength(1) | ||
@pattern("^[a-zA-Z0-9\\_\\-]*") | ||
@key("customerResourceName") | ||
@segment("enterpriseMccCustomers") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface EnterpriseMccCustomers { | ||
@doc("Gets the enterprise mcc customer resource information using this get call") | ||
get is ArmResourceRead<EnterpriseMccCustomerResource>; | ||
@doc("This api creates an enterprise mcc customer with the specified create parameters") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<EnterpriseMccCustomerResource>; | ||
@doc("This api updates an existing enterprise mcc customer resource") | ||
update is ArmCustomPatchSync< | ||
EnterpriseMccCustomerResource, | ||
ConnectedCachePatchResource | ||
>; | ||
@doc("This api deletes an existing enterprise mcc customer resource") | ||
delete is ArmResourceDeleteWithoutOkAsync<EnterpriseMccCustomerResource>; | ||
@doc("This api gets the information about all enterprise mcc customer resources under the given subscription and resource group") | ||
listByResourceGroup is ArmResourceListByParent<EnterpriseMccCustomerResource>; | ||
@doc("This api gets information about all enterpriseMccCustomer resources under the given subscription") | ||
listBySubscription is ArmListBySubscription<EnterpriseMccCustomerResource>; | ||
} |
89 changes: 89 additions & 0 deletions
89
...ement/examples/2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.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,89 @@ | ||
{ | ||
"title": "CacheNodesOperations_CreateorUpdate", | ||
"operationId": "CacheNodesOperations_CreateorUpdate", | ||
"parameters": { | ||
"api-version": "2023-05-01-preview", | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "rgConnectedCache", | ||
"customerResourceName": "lwrsyhvfpcfrwrim", | ||
"resource": { | ||
"location": "westus", | ||
"properties": { | ||
"statusCode": "movtzupooyhdqk", | ||
"statusText": "bjnsrpzaofjntleoesjwammgbi", | ||
"statusDetails": "quuziibkwtgf", | ||
"error": {} | ||
}, | ||
"tags": { | ||
"key8256": "oreqiywrjkmate" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2", | ||
"name": "MCCTPTest2", | ||
"type": "Microsoft.ConnectedCache/cacheNodes", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"statusCode": "movtzupooyhdqk", | ||
"statusText": "bjnsrpzaofjntleoesjwammgbi", | ||
"statusDetails": "quuziibkwtgf", | ||
"status": "vxwmuwtqimapfw", | ||
"error": { | ||
"code": "dzxbdigdjbdbdclvxkxmfutgcbjf", | ||
"message": "ifabxmzinicoximnsjkmhdpdgkw", | ||
"details": [] | ||
} | ||
}, | ||
"tags": { | ||
"key8256": "oreqiywrjkmate" | ||
}, | ||
"systemData": { | ||
"createdBy": "yqwxlhphavoggkcwg", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-31T00:19:33.838Z", | ||
"lastModifiedBy": "knekx", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2024-01-31T00:19:33.838Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://contoso.com/operationstatus" | ||
}, | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2", | ||
"name": "MCCTPTest2", | ||
"type": "Microsoft.ConnectedCache/cacheNodes", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"statusCode": "movtzupooyhdqk", | ||
"statusText": "bjnsrpzaofjntleoesjwammgbi", | ||
"statusDetails": "quuziibkwtgf", | ||
"status": "vxwmuwtqimapfw", | ||
"error": { | ||
"code": "dzxbdigdjbdbdclvxkxmfutgcbjf", | ||
"message": "ifabxmzinicoximnsjkmhdpdgkw", | ||
"details": [] | ||
} | ||
}, | ||
"tags": { | ||
"key8256": "oreqiywrjkmate" | ||
}, | ||
"systemData": { | ||
"createdBy": "yqwxlhphavoggkcwg", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-31T00:19:33.838Z", | ||
"lastModifiedBy": "knekx", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2024-01-31T00:19:33.838Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...he.Management/examples/2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.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,14 @@ | ||
{ | ||
"title": "CacheNodesOperations_Delete", | ||
"operationId": "CacheNodesOperations_Delete", | ||
"parameters": { | ||
"api-version": "2023-05-01-preview", | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "rgConnectedCache", | ||
"customerResourceName": "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...Cache.Management/examples/2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.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,43 @@ | ||
{ | ||
"title": "CacheNodesOperations_Get", | ||
"operationId": "CacheNodesOperations_Get", | ||
"parameters": { | ||
"api-version": "2023-05-01-preview", | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "rgConnectedCache", | ||
"customerResourceName": "nqoxkgorhuzbhjwcegymzqbeydzjupemekt" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2", | ||
"name": "MCCTPTest2", | ||
"type": "Microsoft.ConnectedCache/cacheNodes", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"statusCode": "movtzupooyhdqk", | ||
"statusText": "bjnsrpzaofjntleoesjwammgbi", | ||
"statusDetails": "quuziibkwtgf", | ||
"status": "vxwmuwtqimapfw", | ||
"error": { | ||
"code": "dzxbdigdjbdbdclvxkxmfutgcbjf", | ||
"message": "ifabxmzinicoximnsjkmhdpdgkw", | ||
"details": [] | ||
} | ||
}, | ||
"tags": { | ||
"key8256": "oreqiywrjkmate" | ||
}, | ||
"systemData": { | ||
"createdBy": "yqwxlhphavoggkcwg", | ||
"createdByType": "User", | ||
"createdAt": "2024-01-31T00:19:33.838Z", | ||
"lastModifiedBy": "knekx", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2024-01-31T00:19:33.838Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.