Skip to content

Commit

Permalink
Merge 2b95869 into e38ec25
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharam-Msft authored Oct 24, 2024
2 parents e38ec25 + 2b95869 commit d6581bd
Show file tree
Hide file tree
Showing 91 changed files with 12,058 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,12 @@
"words": [
"SEVSNP"
]
},
{
"filename": "**/specification/connectedcache/resource-manager/Microsoft.ConnectedCache/preview/**/*.json",
"words": [
"Eflow"
]
}
],
"enableFiletypes": [
Expand Down
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>;
}
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>;
}
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"
);
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>;
}
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
Loading

0 comments on commit d6581bd

Please sign in to comment.