Skip to content

Commit

Permalink
CodeGen from PR 12884 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d9e0eca8393bce3337b2e2162287d2b677190f98 into 4d1cfdb75ea7ba87f91caf3c943205730c739101
  • Loading branch information
SDKAuto committed Feb 8, 2021
1 parent 3805152 commit a699e23
Show file tree
Hide file tree
Showing 10 changed files with 6,883 additions and 0 deletions.
602 changes: 602 additions & 0 deletions schemas/2018-05-31/Microsoft.CostManagement.json

Large diffs are not rendered by default.

742 changes: 742 additions & 0 deletions schemas/2018-08-01-preview/Microsoft.CostManagement.json

Large diffs are not rendered by default.

606 changes: 606 additions & 0 deletions schemas/2019-01-01/Microsoft.CostManagement.json

Large diffs are not rendered by default.

374 changes: 374 additions & 0 deletions schemas/2019-03-01-preview/Microsoft.CostManagement.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,374 @@
{
"id": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.CostManagement",
"description": "Microsoft CostManagement Resource Types",
"resourceDefinitions": {},
"managementGroup_resourceDefinitions": {
"externalSubscriptions": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-03-01-preview"
]
},
"name": {
"type": "string",
"description": "External Subscription Name. (eg 'aws-{UsageAccountId}')"
},
"type": {
"type": "string",
"enum": [
"Microsoft.CostManagement/externalSubscriptions"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.CostManagement/externalSubscriptions"
}
},
"tenant_resourceDefinitions": {
"cloudConnectors": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-03-01-preview"
]
},
"kind": {
"type": "string",
"description": "Connector kind (eg aws)"
},
"name": {
"type": "string",
"description": "Connector Name."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ConnectorProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of a Connector"
},
"type": {
"type": "string",
"enum": [
"Microsoft.CostManagement/cloudConnectors"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.CostManagement/cloudConnectors"
}
},
"extension_resourceDefinitions": {
"showbackRules": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-03-01-preview"
]
},
"name": {
"type": "string",
"description": "Showback rule name"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ShowbackRuleProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of a showback rule."
},
"type": {
"type": "string",
"enum": [
"Microsoft.CostManagement/showbackRules"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.CostManagement/showbackRules"
}
},
"definitions": {
"ConnectorProperties": {
"type": "object",
"properties": {
"billingModel": {
"oneOf": [
{
"type": "string",
"enum": [
"trial",
"autoUpgrade",
"premium",
"expired"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Connector billing model."
},
"credentialsKey": {
"type": "string",
"description": "Credentials authentication key (eg AWS ARN)"
},
"credentialsSecret": {
"type": "string",
"description": "Credentials secret (eg AWS ExternalId)"
},
"defaultManagementGroupId": {
"type": "string",
"description": "Default ManagementGroupId"
},
"displayName": {
"type": "string",
"description": "Connector DisplayName"
},
"reportId": {
"type": "string",
"description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)"
},
"subscriptionId": {
"type": "string",
"description": "Billing SubscriptionId"
}
},
"description": "The properties of a Connector"
},
"CostAllocationDetails": {
"type": "object",
"properties": {
"policy": {
"oneOf": [
{
"type": "string",
"enum": [
"Proportional",
"Evenly",
"Fixed"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Cost allocation policy."
}
},
"description": "Represents CostAllocation showback rule model"
},
"CostAllocationDetailsKind": {
"type": "object",
"properties": {
"details": {
"oneOf": [
{
"$ref": "#/definitions/CostAllocationDetails"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Represents CostAllocation showback rule model"
},
"ruleType": {
"type": "string",
"enum": [
"CostAllocation"
]
}
},
"required": [
"ruleType"
],
"description": "Represents CostAllocation showback rule model"
},
"CustomPriceDetails": {
"type": "object",
"properties": {
"benefits": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"enum": [
"Sum",
"None",
"All",
"AHUB",
"Reservations"
]
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Array of benefits."
},
"markups": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Markup"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of markups."
},
"pricesheet": {
"type": "string"
}
},
"description": "Represents Custom price showback rule model"
},
"CustomPriceDetailsKind": {
"type": "object",
"properties": {
"details": {
"oneOf": [
{
"$ref": "#/definitions/CustomPriceDetails"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Represents Custom price showback rule model"
},
"ruleType": {
"type": "string",
"enum": [
"CustomPrice"
]
}
},
"required": [
"ruleType"
],
"description": "Represents Custom price showback rule model"
},
"Markup": {
"type": "object",
"properties": {
"percentage": {
"type": "string"
}
},
"description": "The Markup model definition"
},
"Scope": {
"type": "object",
"properties": {
"childScope": {
"oneOf": [
{
"$ref": "#/definitions/Scope"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The Scope model definition"
},
"id": {
"type": "string",
"description": "Scope id"
},
"name": {
"type": "string",
"description": "Scope name"
},
"type": {
"type": "string",
"description": "Scope type"
}
},
"description": "The Scope model definition"
},
"ShowbackRuleProperties": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/CustomPriceDetailsKind"
},
{
"$ref": "#/definitions/CostAllocationDetailsKind"
}
],
"properties": {
"description": {
"type": "string",
"description": "Description of a showback rule."
},
"scopes": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Scope"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of authorized assigned scopes."
},
"status": {
"oneOf": [
{
"type": "string",
"enum": [
"NotActive",
"Active"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The current status of the showback rule."
}
},
"description": "The properties of a showback rule."
}
}
}
Loading

0 comments on commit a699e23

Please sign in to comment.