Skip to content

Commit

Permalink
CodeGen from PR 13788 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9d97499f2d96f8cd99eab124315cd37e0fabcdef into 22c22601b9118169906782ac6b9aa28ed6b1197a
  • Loading branch information
SDKAuto committed Apr 7, 2021
1 parent 700f1de commit 67b968d
Show file tree
Hide file tree
Showing 11 changed files with 7,394 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 67b968d

Please sign in to comment.