-
Notifications
You must be signed in to change notification settings - Fork 518
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 16687 in Azure/azure-rest-api-specs
A new API version 2021-10-01 on MS.Subscription (#16687) * Copied the last item from private repo and renamed to 2021-10-01 * Updated the version to 2021-10-01 * Error response is updated. It is required by OpenAPI Validation Tools(linter) * http status response on post method is updated to 201 from 202; required by OpenAPI Validation Tools(linter) * description is added in #definitions.Operation.properties.display; required by OpenAPI Validation Tools(linter) * updated error response to match it previous * systemData properties are added; required by Swagger validation on the PR * updated readme.md for the new version * removed a file getSubscriptionOperation.json as long as it is not referenced; required by Swagger Avocado on the PR * Modified style by npm prettier * executed npm run prettier; required by prettier check on PR * added type:object; required by swagger LintDiff * added type:object; required by swagger LintDiff * reverted back the post response of acceptOwnership to 202 * http status response on post method is updated to 201 from 202; required by OpenAPI Validation Tools(linter) * reverted back the post response of acceptOwnership to 202 Co-authored-by: Ochi <[email protected]>
- Loading branch information
SDKAuto
and
Ochi
committed
Nov 10, 2021
1 parent
2d92207
commit b664590
Showing
2 changed files
with
202 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,196 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Subscription.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Subscription", | ||
"description": "Microsoft Subscription Resource Types", | ||
"resourceDefinitions": {}, | ||
"tenant_resourceDefinitions": { | ||
"aliases": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-10-01" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "AliasName is the name for the subscription creation request. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PutAliasRequestProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Put subscription properties." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Subscription/aliases" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Subscription/aliases" | ||
}, | ||
"policies": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-10-01" | ||
] | ||
}, | ||
"blockSubscriptionsIntoTenant": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Blocks the entering of subscriptions into user's tenant." | ||
}, | ||
"blockSubscriptionsLeavingTenant": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Blocks the leaving of subscriptions from user's tenant." | ||
}, | ||
"exemptedPrincipals": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"enum": [ | ||
"default" | ||
] | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Subscription/policies" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"type" | ||
], | ||
"description": "Microsoft.Subscription/policies" | ||
} | ||
}, | ||
"definitions": { | ||
"PutAliasRequestAdditionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"managementGroupId": { | ||
"type": "string", | ||
"description": "Management group Id for the subscription." | ||
}, | ||
"subscriptionOwnerId": { | ||
"type": "string", | ||
"description": "Owner Id of the subscription" | ||
}, | ||
"subscriptionTenantId": { | ||
"type": "string", | ||
"description": "Tenant Id of the subscription" | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Tags for the subscription" | ||
} | ||
}, | ||
"description": "Put subscription additional properties." | ||
}, | ||
"PutAliasRequestProperties": { | ||
"type": "object", | ||
"properties": { | ||
"additionalProperties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PutAliasRequestAdditionalProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Put subscription additional properties." | ||
}, | ||
"billingScope": { | ||
"type": "string", | ||
"description": "Billing scope of the subscription.\nFor CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}\nFor PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}\nFor Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}" | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "The friendly name of the subscription." | ||
}, | ||
"resellerId": { | ||
"type": "string", | ||
"description": "Reseller Id" | ||
}, | ||
"subscriptionId": { | ||
"type": "string", | ||
"description": "This parameter can be used to create alias for existing subscription Id" | ||
}, | ||
"workload": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Production", | ||
"DevTest" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"description": "Put subscription properties." | ||
} | ||
} | ||
} |