Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR managedservices] Fix examples to include ExpandRegistrationDefinition field in public docs #1600

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 64 additions & 44 deletions schemas/2018-06-01-preview/Microsoft.ManagedServices.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,21 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.ManagedServices",
"description": "Microsoft ManagedServices Resource Types",
"resourceDefinitions": {
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"registrationAssignments": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Guid of the registration assignment."
},
"type": {
"type": "string",
"enum": [
"Microsoft.ManagedServices/registrationAssignments"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2018-06-01-preview"
]
},
"name": {
"type": "string",
"description": "Guid of the registration assignment."
},
"properties": {
"oneOf": [
{
Expand All @@ -33,63 +28,69 @@
}
],
"description": "Properties of a registration assignment."
},
"type": {
"type": "string",
"enum": [
"Microsoft.ManagedServices/registrationAssignments"
]
}
},
"required": [
"name",
"type",
"apiVersion",
"properties"
"name",
"properties",
"type"
],
"description": "Microsoft.ManagedServices/registrationAssignments"
},
"registrationDefinitions": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Guid of the registration definition."
},
"type": {
"type": "string",
"enum": [
"Microsoft.ManagedServices/registrationDefinitions"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2018-06-01-preview"
]
},
"properties": {
"name": {
"type": "string",
"description": "Guid of the registration definition."
},
"plan": {
"oneOf": [
{
"$ref": "#/definitions/RegistrationDefinitionProperties"
"$ref": "#/definitions/Plan"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of a registration definition."
"description": "Plan details for the managed services."
},
"plan": {
"properties": {
"oneOf": [
{
"$ref": "#/definitions/Plan"
"$ref": "#/definitions/RegistrationDefinitionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Plan details for the managed services."
"description": "Properties of a registration definition."
},
"type": {
"type": "string",
"enum": [
"Microsoft.ManagedServices/registrationDefinitions"
]
}
},
"required": [
"name",
"type",
"apiVersion",
"properties"
"name",
"properties",
"type"
],
"description": "Microsoft.ManagedServices/registrationDefinitions"
}
Expand All @@ -98,10 +99,29 @@
"Authorization": {
"type": "object",
"properties": {
"delegatedRoleDefinitionIds": {
"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": "The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users."
},
"principalId": {
"type": "string",
"description": "Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription"
},
"principalIdDisplayName": {
"type": "string",
"description": "Display name of the principal Id."
},
"roleDefinitionId": {
"type": "string",
"description": "The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role."
Expand All @@ -120,23 +140,23 @@
"type": "string",
"description": "The plan name."
},
"publisher": {
"type": "string",
"description": "The publisher ID."
},
"product": {
"type": "string",
"description": "The product code."
},
"publisher": {
"type": "string",
"description": "The publisher ID."
},
"version": {
"type": "string",
"description": "The plan's version."
}
},
"required": [
"name",
"publisher",
"product",
"publisher",
"version"
],
"description": "Plan details for the managed services."
Expand All @@ -157,10 +177,6 @@
"RegistrationDefinitionProperties": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Description of the registration definition."
},
"authorizations": {
"oneOf": [
{
Expand All @@ -175,13 +191,17 @@
],
"description": "Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role."
},
"registrationDefinitionName": {
"description": {
"type": "string",
"description": "Name of the registration definition."
"description": "Description of the registration definition."
},
"managedByTenantId": {
"type": "string",
"description": "Id of the managedBy tenant."
},
"registrationDefinitionName": {
"type": "string",
"description": "Name of the registration definition."
}
},
"required": [
Expand Down
Loading