Skip to content

Commit

Permalink
Update swagger for microsoft.quota group quota (Azure#31162)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuxi Zhang <yuxzha@microsoft.com>
  • Loading branch information
yuxiz1993 and yuxzha authored Oct 24, 2024
1 parent e38ec25 commit 71341bf
Show file tree
Hide file tree
Showing 54 changed files with 7,175 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"parameters": {
"api-version": "2024-10-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Quota/quotas/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "Resource Quota limit",
"operation": "Get resource Quota limit",
"description": "Get the current Service limit or quota of the specified resource"
}
},
{
"name": "Microsoft.Quota/quotas/write",
"display": {
"provider": "Microsoft.Quota",
"resource": "Resource Quota limit",
"operation": "Creates resource Quota limit request",
"description": "Creates the service limit or quota request for the specified resource"
}
},
{
"name": "Microsoft.Quota/quotaRequests/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "Resource Quota limit request",
"operation": "Get Quota limit request",
"description": "Get any service limit request for the specified resource"
}
},
{
"name": "Microsoft.Quota/usages/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "usages information",
"operation": "Get the usages for providers",
"description": "Get the usages for resource providers"
}
},
{
"name": "Microsoft.Quota/operations/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "Read Operation",
"operation": "Get the Operations supported by Microsoft.Quota",
"description": "Get the Operations supported by Microsoft.Quota"
}
},
{
"name": "Microsoft.Quota/register/action",
"display": {
"provider": "Microsoft.Quota",
"resource": "Subscription registration with Resource provider",
"operation": "Register the subscription with Microsoft.Quota Resource Provider",
"description": "Register the subscription with Microsoft.Quota Resource Provider"
}
},
{
"name": "Microsoft.Quota/groupQuotas/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota resource",
"operation": "Get GroupQuota resource",
"description": "Get the GroupQuota"
}
},
{
"name": "Microsoft.Quota/groupQuotas/write",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota Resource",
"operation": "Creates GroupQuota resource",
"description": "Creates the GroupQuota resource"
}
},
{
"name": "Microsoft.Quota/groupQuotas/subscriptions/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "Subscriptions added to GroupQuota resource",
"operation": "Get GroupQuota subscriptions",
"description": "Get the GroupQuota subscriptions"
}
},
{
"name": "Microsoft.Quota/groupQuotas/subscriptions/write",
"display": {
"provider": "Creates request to add subscription to GroupQuota resource",
"resource": "Subscriptions added to GroupQuota resource",
"operation": "Adds subscription to GroupQuota resource",
"description": "Add Subscriptions to GroupQuota resource"
}
},
{
"name": "Microsoft.Quota/groupQuotas/groupQuotaLimits/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota Resource Quota limit",
"operation": "Get GroupQuota resource Quota limit",
"description": "Get the current GroupQuota of the specified resource"
}
},
{
"name": "Microsoft.Quota/groupQuotas/groupQuotaLimits/write",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota Resource Quota limit",
"operation": "Creates GroupQuota resource Quota limit request",
"description": "Creates the GroupQuota request for the specified resource"
}
},
{
"name": "Microsoft.Quota/groupQuotas/groupQuotaRequests/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota request",
"operation": "Get GroupQuota request status",
"description": "Get the GroupQuota request status for the specific request"
}
},
{
"name": "Microsoft.Quota/groupQuotas/quotaAllocations/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota to Subscription Quota allocation",
"operation": "Get GroupQuota to Subscription Quota allocation",
"description": "Get the current GroupQuota to Subscription Quota allocation"
}
},
{
"name": "Microsoft.Quota/groupQuotas/quotaAllocations/write",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota to Subscription Quota allocation",
"operation": "Creates GroupQuota to subscription Quota limit request",
"description": "Creates the GroupQuota to subscription Quota limit request for the specified resource"
}
},
{
"name": "Microsoft.Quota/groupQuotas/quotaAllocationRequests/read",
"display": {
"provider": "Microsoft.Quota",
"resource": "GroupQuota to Subscription Quota allocation request",
"operation": "Get GroupQuota to Subscription Quota allocation request status",
"description": "Get the GroupQuota to Subscription Quota allocation request status for the specific request"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"operationId": "GroupQuotaLimits_List",
"parameters": {
"managementGroupId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09",
"groupQuotaName": "groupquota1",
"api-version": "2024-10-15-preview",
"resourceProviderName": "Microsoft.Compute",
"location": "westus",
"$filter": "resourceName eq cores"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/resourceProviders/Microsoft.Compute/groupQuotaLimits/westus",
"name": "westus",
"type": "Microsoft.Quota/groupQuotas/groupQuotaLimits",
"properties": {
"provisioningState": "Succeeded",
"value": [
{
"properties": {
"limit": 100,
"resourceName": "standardddv4family",
"name": {
"value": "standardddv4family",
"localizedValue": "standard DDv4 Family vCPUs"
},
"unit": "count",
"availableLimit": 50,
"allocatedToSubscriptions": {
"value": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"quotaAllocated": 20
},
{
"subscriptionId": "A000000-0000-0000-0000-000000000000",
"quotaAllocated": 30
}
]
}
}
},
{
"properties": {
"limit": 100,
"resourceName": "standardav2family",
"name": {
"value": "standardav2family",
"localizedValue": "Standard AV2 Family vCPUs"
},
"unit": "count",
"availableLimit": 80,
"allocatedToSubscriptions": {
"value": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"quotaAllocated": 20
}
]
}
}
}
],
"nextLink": "https://yourLinkHere.com"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"operationId": "GroupQuotaLimitsRequests_Get",
"parameters": {
"managementGroupId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09",
"groupQuotaName": "groupquota1",
"requestId": "requestId",
"api-version": "2024-10-15-preview"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/resourceProviders/Microsoft.Compute/groupQuotaLimitsRequests/requestId",
"type": "Microsoft.Quota/groupQuotas/groupQuotaLimitsRequests",
"name": "requestId",
"properties": {
"requestedResource": {
"properties": {
"limit": 100,
"name": {
"value": "standardddv4family",
"localizedValue": "standard DDv4 Family vCPUs"
},
"region": "westus",
"comments": ""
}
},
"requestSubmitTime": "2024-03-20T05:29:34.144Z",
"provisioningState": "Failed",
"faultCode": "ResourceNotAvailableForOffer"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"operationId": "GroupQuotaLimitsRequests_List",
"parameters": {
"managementGroupId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09",
"groupQuotaName": "groupquota1",
"resourceProviderName": "Microsoft.Compute",
"resourceName": "standardav2family",
"api-version": "2024-10-15-preview",
"$filter": "location eq westus"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/resourceProviders/Microsoft.Compute/groupQuotaLimitsRequests/requestId1",
"type": "Microsoft.Quota/groupQuotas/groupQuotaLimitsRequests",
"name": "requestId1",
"properties": {
"requestedResource": {
"properties": {
"limit": 100,
"name": {
"value": "standardddv4family",
"localizedValue": "standard DDv4 Family vCPUs"
},
"region": "westus",
"comments": "Contoso requires more quota."
}
},
"requestSubmitTime": "2023-11-18T00:12:34.004Z",
"provisioningState": "Failed",
"faultCode": "ResourceNotAvailableForOffer"
}
},
{
"id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/resourceProviders/Microsoft.Compute/groupQuotaLimitsRequests/requestId2",
"type": "Microsoft.Quota/groupQuotas/groupQuotaLimitsRequests",
"name": "requestId2",
"properties": {
"requestedResource": {
"properties": {
"region": "westus",
"comments": "Contoso requires more quota.",
"name": {
"value": "standardav2family",
"localizedValue": "standardav2family"
},
"limit": 150
}
},
"requestSubmitTime": "2023-11-17T00:57:43.410Z",
"provisioningState": "Succeeded",
"faultCode": ""
}
}
],
"nextLink": "https://yourLinkHere.com"
}
}
}
}
Loading

0 comments on commit 71341bf

Please sign in to comment.