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 13897 in Azure/azure-rest-api-specs
Merge 04137b06864ad975a54610fdaa28223561357465 into b3577207350270e9ae3b3e22c91b1730c602f276
- Loading branch information
SDKAuto
committed
Apr 13, 2021
1 parent
9b7453a
commit cd77287
Showing
3 changed files
with
564 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,273 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Management.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Management", | ||
"description": "Microsoft Management Resource Types", | ||
"resourceDefinitions": {}, | ||
"tenant_resourceDefinitions": { | ||
"managementGroups": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-10-01" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Management Group ID." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CreateManagementGroupProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The generic properties of a management group used during creation." | ||
}, | ||
"resources": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/managementGroups_subscriptions_childResource" | ||
}, | ||
{ | ||
"$ref": "#/definitions/managementGroups_settings_childResource" | ||
} | ||
] | ||
} | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Management/managementGroups" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Management/managementGroups" | ||
}, | ||
"managementGroups_settings": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-10-01" | ||
] | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^.*/default$" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CreateOrUpdateSettingsProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The properties of the request to create or update Management Group settings" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Management/managementGroups/settings" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Management/managementGroups/settings" | ||
}, | ||
"managementGroups_subscriptions": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-10-01" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Subscription ID." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Management/managementGroups/subscriptions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"type" | ||
], | ||
"description": "Microsoft.Management/managementGroups/subscriptions" | ||
} | ||
}, | ||
"definitions": { | ||
"CreateManagementGroupDetails": { | ||
"type": "object", | ||
"properties": { | ||
"parent": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CreateParentGroupInfo" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "(Optional) The ID of the parent management group used during creation." | ||
} | ||
}, | ||
"description": "The details of a management group used during creation." | ||
}, | ||
"CreateManagementGroupProperties": { | ||
"type": "object", | ||
"properties": { | ||
"details": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CreateManagementGroupDetails" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The details of a management group used during creation." | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "The friendly name of the management group. If no value is passed then this field will be set to the groupId." | ||
} | ||
}, | ||
"description": "The generic properties of a management group used during creation." | ||
}, | ||
"CreateOrUpdateSettingsProperties": { | ||
"type": "object", | ||
"properties": { | ||
"defaultManagementGroup": { | ||
"type": "string", | ||
"description": "Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup" | ||
}, | ||
"requireAuthorizationForGroupCreation": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access." | ||
} | ||
}, | ||
"description": "The properties of the request to create or update Management Group settings" | ||
}, | ||
"CreateParentGroupInfo": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" | ||
} | ||
}, | ||
"description": "(Optional) The ID of the parent management group used during creation." | ||
}, | ||
"managementGroups_settings_childResource": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-10-01" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"enum": [ | ||
"default" | ||
] | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/CreateOrUpdateSettingsProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The properties of the request to create or update Management Group settings" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"settings" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Management/managementGroups/settings" | ||
}, | ||
"managementGroups_subscriptions_childResource": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-10-01" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Subscription ID." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"subscriptions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"type" | ||
], | ||
"description": "Microsoft.Management/managementGroups/subscriptions" | ||
} | ||
} | ||
} |
Oops, something went wrong.