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 13788 in Azure/azure-rest-api-specs
Merge 9d97499f2d96f8cd99eab124315cd37e0fabcdef into 22c22601b9118169906782ac6b9aa28ed6b1197a
- Loading branch information
SDKAuto
committed
Apr 7, 2021
1 parent
700f1de
commit 67b968d
Showing
11 changed files
with
7,394 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
742 changes: 742 additions & 0 deletions
742
schemas/2018-08-01-preview/Microsoft.CostManagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
374 changes: 374 additions & 0 deletions
374
schemas/2019-03-01-preview/Microsoft.CostManagement.json
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,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." | ||
} | ||
} | ||
} |
Oops, something went wrong.