forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 14849 in Azure/azure-rest-api-specs
Merge d92ad0602a75c088e55633cbec84ef0751a6b8a1 into 8dff86df71bee429af84ea4713288ef3cdd1db2f
- Loading branch information
SDKAuto
committed
Jun 25, 2021
1 parent
b0ddce1
commit ec369b7
Showing
2 changed files
with
235 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
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,232 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-07-01/Microsoft.Capacity.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Capacity", | ||
"description": "Microsoft Capacity Resource Types", | ||
"resourceDefinitions": {}, | ||
"tenant_resourceDefinitions": { | ||
"reservationOrders": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-07-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The Azure Region where the reserved resource lives." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Order Id of the reservation" | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PurchaseRequestProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/SkuName" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Capacity/reservationOrders" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Capacity/reservationOrders" | ||
} | ||
}, | ||
"definitions": { | ||
"PurchaseRequestProperties": { | ||
"type": "object", | ||
"properties": { | ||
"appliedScopes": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared." | ||
}, | ||
"appliedScopeType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Single", | ||
"Shared" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"billingPlan": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Upfront", | ||
"Monthly" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"billingScopeId": { | ||
"type": "string", | ||
"description": "Subscription that will be charged for purchasing Reservation" | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "Friendly name of the Reservation" | ||
}, | ||
"quantity": { | ||
"oneOf": [ | ||
{ | ||
"type": "integer" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero." | ||
}, | ||
"renew": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Setting this to true will automatically purchase a new reservation on the expiration date time." | ||
}, | ||
"reservedResourceProperties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PurchaseRequestPropertiesReservedResourceProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Properties specific to each reserved resource type. Not required if not applicable." | ||
}, | ||
"reservedResourceType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"VirtualMachines", | ||
"SqlDatabases", | ||
"SuseLinux", | ||
"CosmosDb", | ||
"RedHat", | ||
"SqlDataWarehouse", | ||
"VMwareCloudSimple", | ||
"RedHatOsa", | ||
"Databricks", | ||
"AppService", | ||
"ManagedDisk", | ||
"BlockBlob", | ||
"RedisCache", | ||
"AzureDataExplorer", | ||
"MySql", | ||
"MariaDb", | ||
"PostgreSql", | ||
"DedicatedHost", | ||
"SapHana", | ||
"SqlAzureHybridBenefit", | ||
"AVS", | ||
"DataFactory", | ||
"NetAppStorage", | ||
"AzureFiles", | ||
"SqlEdge" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"term": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"P1Y", | ||
"P3Y", | ||
"P5Y" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"PurchaseRequestPropertiesReservedResourceProperties": { | ||
"type": "object", | ||
"properties": { | ||
"instanceFlexibility": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"On", | ||
"Off" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"description": "Properties specific to each reserved resource type. Not required if not applicable." | ||
}, | ||
"SkuName": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |