From 4a46dc7e1f7909e671fb8eb88e4a264d512dc135 Mon Sep 17 00:00:00 2001 From: Daniel Orozco Date: Wed, 18 Aug 2021 16:46:40 -0700 Subject: [PATCH 1/2] add RBAC to 2020-10-01-preview autogen --- .../authorization-ClassicAdminCalls.json | 3 + ...authorization-ProviderOperationsCalls.json | 5 + .../authorization-RoleAssignmentsCalls.json | 1 + .../authorization-RoleDefinitionsCalls.json | 16 +-- .../authorization-AccessReviewCalls.json | 56 +++++--- .../authorization-DenyAssignmentGetCalls.json | 25 ++-- .../authorization-RoleAssignmentsCalls.json | 17 +-- .../authorization-UsageMetricsCalls.json | 1 + .../authorization-RoleAssignmentsCalls.json | 14 +- .../authorization-RoleAssignmentsCalls.json | 23 ++- .../authorization-RoleAssignmentsCalls.json | 15 +- .../EligibleChildResources.json | 15 +- .../RoleAssignmentSchedule.json | 30 ++-- .../RoleAssignmentScheduleInstance.json | 30 ++-- .../RoleAssignmentScheduleRequest.json | 37 +++-- .../RoleEligibilitySchedule.json | 30 ++-- .../RoleEligibilityScheduleInstance.json | 30 ++-- .../RoleEligibilityScheduleRequest.json | 37 +++-- .../RoleManagementPolicy.json | 50 ++----- .../RoleManagementPolicyAssignment.json | 56 ++------ .../authorization-RoleAssignmentsCalls.json | 13 +- .../2020-10-01-preview/common-types.json | 37 ++++- ...oleAssignmentScheduleInstancesByScope.json | 1 + ...tRoleAssignmentScheduleRequestByScope.json | 103 +++++++------- .../authorization/resource-manager/readme.md | 131 +++++++++--------- 25 files changed, 358 insertions(+), 418 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json index 86c9336b61fd..34b1df7d4c56 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json @@ -86,6 +86,7 @@ "description": "The role of the administrator." } }, + "type": "object", "description": "Classic Administrator properties." }, "ClassicAdministrator": { @@ -108,6 +109,7 @@ "description": "Properties for the classic administrator." } }, + "type": "object", "description": "Classic Administrators" }, "ClassicAdministratorListResult": { @@ -124,6 +126,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "ClassicAdministrator list result information." } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json index 87e1d9dc2ac0..de0e62d3c454 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json @@ -142,6 +142,7 @@ "description": "The resource type operations." } }, + "type": "object", "description": "Resource Type" }, "ProviderOperation": { @@ -172,6 +173,7 @@ "description": "The dataAction flag to specify the operation type." } }, + "type": "object", "description": "Operation" }, "ProviderOperationsMetadata": { @@ -207,6 +209,7 @@ "description": "The provider operations." } }, + "type": "object", "description": "Provider Operations metadata" }, "ProviderOperationsMetadataListResult": { @@ -223,6 +226,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Provider operations metadata list" } }, @@ -233,6 +237,7 @@ "required": true, "type": "string", "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json index f22cddf3afa5..cec28e312ab5 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json @@ -661,6 +661,7 @@ "required": true, "type": "string", "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json index 03ad5e128747..f6bd539ee8d2 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json @@ -88,7 +88,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceProviderNamespaceParameter" + "$ref": "../2020-10-01-preview/common-types.json#/parameters/ResourceProviderNamespaceParameter" }, { "name": "parentResourcePath", @@ -404,6 +404,7 @@ "description": "Returns role definition with the specific type." } }, + "type": "object", "description": "Role Definitions filter" }, "RoleDefinitionProperties": { @@ -436,6 +437,7 @@ "description": "Role definition assignable scopes." } }, + "type": "object", "description": "Role definition properties." }, "RoleDefinition": { @@ -461,6 +463,7 @@ "description": "Role definition properties." } }, + "type": "object", "description": "Role definition." }, "RoleDefinitionListResult": { @@ -477,6 +480,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role definition list operation result." }, "PermissionGetResult": { @@ -493,6 +497,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Permissions information." }, "Permission": { @@ -526,18 +531,11 @@ "description": "Denied Data actions." } }, + "type": "object", "description": "Role definition permissions." } }, "parameters": { - "ResourceProviderNamespaceParameter": { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider.", - "x-ms-parameter-location": "method" - }, "FilterParameter": { "name": "$filter", "in": "query", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json index 784de048060e..0106f6329933 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json @@ -70,7 +70,7 @@ ], "operationId": "AccessReviewScheduleDefinitions_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewScheduleDefinitions": { "$ref": "./examples/GetAccessReviewScheduleDefinitions.json" } }, @@ -109,7 +109,7 @@ ], "operationId": "AccessReviewScheduleDefinitions_GetById", "x-ms-examples": { - "GetAccessReview": { + "GetAccessReviewScheduleDefinition": { "$ref": "./examples/GetAccessReviewScheduleDefinition.json" } }, @@ -243,7 +243,7 @@ ], "operationId": "AccessReviewScheduleDefinitions_Stop", "x-ms-examples": { - "GetAccessReview": { + "StopAccessReviewScheduleDefinition": { "$ref": "./examples/StopAccessReviewScheduleDefinition.json" } }, @@ -283,7 +283,7 @@ ], "operationId": "AccessReviewInstances_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstances": { "$ref": "./examples/GetAccessReviewInstances.json" } }, @@ -329,7 +329,7 @@ ], "operationId": "AccessReviewInstances_GetById", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstance": { "$ref": "./examples/GetAccessReviewInstance.json" } }, @@ -379,7 +379,7 @@ ], "operationId": "AccessReviewInstance_Stop", "x-ms-examples": { - "GetAccessReview": { + "StopAccessReviewInstance": { "$ref": "./examples/StopAccessReviewInstance.json" } }, @@ -426,7 +426,7 @@ ], "operationId": "AccessReviewInstance_ResetDecisions", "x-ms-examples": { - "GetAccessReview": { + "AccessReviewInstanceResetDecisions": { "$ref": "./examples/AccessReviewInstanceResetDecisions.json" } }, @@ -473,7 +473,7 @@ ], "operationId": "AccessReviewInstance_ApplyDecisions", "x-ms-examples": { - "GetAccessReview": { + "AccessReviewInstanceApplyDecisions": { "$ref": "./examples/AccessReviewInstanceApplyDecisions.json" } }, @@ -520,7 +520,7 @@ ], "operationId": "AccessReviewInstance_SendReminders", "x-ms-examples": { - "GetAccessReview": { + "AccessReviewInstanceSendReminders": { "$ref": "./examples/AccessReviewInstanceSendReminders.json" } }, @@ -567,7 +567,7 @@ ], "operationId": "AccessReviewInstanceDecisions_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstanceDecisions": { "$ref": "./examples/GetAccessReviewInstanceDecisions.json" } }, @@ -654,7 +654,7 @@ ], "operationId": "AccessReviewDefaultSettings_Put", "x-ms-examples": { - "GetAccessReviewDefaultSettings": { + "PutAccessReviewDefaultSettings": { "$ref": "./examples/PutAccessReviewDefaultSettings.json" } }, @@ -699,7 +699,7 @@ ], "operationId": "AccessReviewScheduleDefinitionsAssignedForMyApproval_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewScheduleDefinitionsAssignedForMyApproval": { "$ref": "./examples/GetAccessReviewScheduleDefinitionsAssignedForMyApproval.json" } }, @@ -735,7 +735,7 @@ ], "operationId": "AccessReviewInstancesAssignedForMyApproval_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstancesAssignedForMyApproval": { "$ref": "./examples/GetAccessReviewInstancesAssignedForMyApproval.json" } }, @@ -778,7 +778,7 @@ ], "operationId": "AccessReviewInstancesAssignedForMyApproval_GetById", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstanceAssignedForMyApproval": { "$ref": "./examples/GetAccessReviewInstanceAssignedForMyApproval.json" } }, @@ -825,7 +825,7 @@ ], "operationId": "AccessReviewInstance_AcceptRecommendations", "x-ms-examples": { - "GetAccessReview": { + "AccessReviewInstanceAcceptRecommendations": { "$ref": "./examples/AccessReviewInstanceAcceptRecommendations.json" } }, @@ -869,7 +869,7 @@ ], "operationId": "AccessReviewInstanceMyDecisions_List", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstanceMyDecisions": { "$ref": "./examples/GetAccessReviewInstanceMyDecisions.json" } }, @@ -919,7 +919,7 @@ ], "operationId": "AccessReviewInstanceMyDecisions_GetById", "x-ms-examples": { - "GetAccessReviews": { + "GetAccessReviewInstanceMyDecisionById": { "$ref": "./examples/GetAccessReviewInstanceMyDecisionById.json" } }, @@ -971,7 +971,7 @@ ], "operationId": "AccessReviewInstanceMyDecisions_Patch", "x-ms-examples": { - "GetAccessReviews": { + "PatchAccessReviewInstanceMyDecisionById": { "$ref": "./examples/PatchAccessReviewInstanceMyDecisionById.json" } }, @@ -1053,6 +1053,7 @@ "description": "Access Review properties." } }, + "type": "object", "description": "Access Review Schedule Definition." }, "AccessReviewScheduleDefinitionProperties": { @@ -1137,6 +1138,7 @@ "description": "This is the collection of instances returned when one does an expand on it." } }, + "type": "object", "description": "Access Review." }, "AccessReviewInstance": { @@ -1163,6 +1165,7 @@ "description": "Access Review properties." } }, + "type": "object", "description": "Access Review Instance." }, "AccessReviewInstanceProperties": { @@ -1202,6 +1205,7 @@ "x-nullable": false } }, + "type": "object", "description": "Access Review Instance properties." }, "AccessReviewScheduleSettings": { @@ -1254,6 +1258,7 @@ "description": "Access Review Settings." } }, + "type": "object", "description": "Settings of an Access Review." }, "AccessReviewDefaultSettings": { @@ -1280,6 +1285,7 @@ "description": "Access Review properties." } }, + "type": "object", "description": "Access Review Default Settings." }, "AccessReviewRecurrenceSettings": { @@ -1295,6 +1301,7 @@ "description": "Access Review schedule definition recurrence range." } }, + "type": "object", "description": "Recurrence Settings of an Access Review Schedule Definition." }, "AccessReviewRecurrencePattern": { @@ -1317,6 +1324,7 @@ "description": "The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly." } }, + "type": "object", "description": "Recurrence Pattern of an Access Review Schedule Definition." }, "AccessReviewRecurrenceRange": { @@ -1352,6 +1360,7 @@ "x-nullable": true } }, + "type": "object", "description": "Recurrence Range of an Access Review Schedule Definition." }, "AccessReviewScope": { @@ -1380,6 +1389,7 @@ } } }, + "type": "object", "description": "Descriptor for what needs to be reviewed" }, "AccessReviewReviewer": { @@ -1402,6 +1412,7 @@ } } }, + "type": "object", "description": "Descriptor for what needs to be reviewed" }, "AccessReviewDecision": { @@ -1428,6 +1439,7 @@ "description": "Access Review Decision properties." } }, + "type": "object", "description": "Access Review." }, "AccessReviewDecisionProperties": { @@ -1517,6 +1529,7 @@ "x-nullable": true } }, + "type": "object", "description": "Approval Step." }, "AccessReviewDecisionTarget": { @@ -1538,6 +1551,7 @@ } } }, + "type": "object", "description": "Target of the decision." }, "UserDecisionTarget": { @@ -1568,6 +1582,7 @@ "description": "The user principal name of the user whose access was reviewed." } }, + "type": "object", "description": "User Decision Target" }, "ServicePrincipalDecisionTarget": { @@ -1598,6 +1613,7 @@ "description": "The appId for the service principal entity being reviewed" } }, + "type": "object", "description": "Service Principal Decision Target" }, "AccessReviewActorIdentity": { @@ -1631,6 +1647,7 @@ "description": "The user principal name(if valid)" } }, + "type": "object", "description": "Details of the actor identity" }, "AccessReviewScheduleDefinitionListResult": { @@ -1647,6 +1664,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "List of Access Review Schedule Definitions." }, "AccessReviewInstanceListResult": { @@ -1663,6 +1681,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "List of Access Review Instances." }, "AccessReviewDecisionListResult": { @@ -1679,6 +1698,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "List of access review decisions." }, "ErrorDefinition": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json index dce53341343a..17f38fefb21c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json @@ -349,6 +349,7 @@ "description": "Return all deny assignments where the specified principal is listed either in the principals list or exclude principals list of deny assignments." } }, + "type": "object", "description": "Deny Assignments filter" }, "DenyAssignmentProperties": { @@ -379,14 +380,14 @@ "principals": { "type": "array", "items": { - "$ref": "#/definitions/Principal" + "$ref": "../2020-10-01-preview/common-types.json#/definitions/Principal" }, "description": "Array of principals to which the deny assignment applies." }, "excludePrincipals": { "type": "array", "items": { - "$ref": "#/definitions/Principal" + "$ref": "../2020-10-01-preview/common-types.json#/definitions/Principal" }, "description": "Array of principals to which the deny assignment does not apply." }, @@ -395,6 +396,7 @@ "description": "Specifies whether this deny assignment was created by Azure and cannot be edited or deleted." } }, + "type": "object", "description": "Deny assignment properties." }, "DenyAssignment": { @@ -420,6 +422,7 @@ "description": "Deny assignment properties." } }, + "type": "object", "description": "Deny Assignment" }, "DenyAssignmentListResult": { @@ -436,6 +439,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Deny assignment list operation result." }, "DenyAssignmentPermission": { @@ -469,22 +473,8 @@ "description": "Data actions to exclude from that the deny assignment does not grant access." } }, + "type": "object", "description": "Deny assignment permissions." - }, - "Principal": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Object ID of the Azure AD principal (user, group, or service principal) to which the deny assignment applies. An empty guid '00000000-0000-0000-0000-000000000000' as principal id and principal type as 'Everyone' represents all users, groups and service principals." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Type of object represented by principal id (user, group, or service principal). An empty guid '00000000-0000-0000-0000-000000000000' as principal id and principal type as 'Everyone' represents all users, groups and service principals." - } - }, - "description": "Deny assignment principal." } }, "parameters": { @@ -494,6 +484,7 @@ "required": true, "type": "string", "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" }, "FilterParameter": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json index 0a17861fec16..786241892497 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json @@ -578,13 +578,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "x-ms-enum": { "name": "PrincipalType", @@ -656,13 +650,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "x-ms-enum": { "name": "PrincipalType", @@ -701,6 +689,7 @@ "required": true, "type": "string", "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json index a723ef63e1a8..565592d08b6f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json @@ -98,6 +98,7 @@ "description": "The number of remaining role assignments available." } }, + "type": "object", "description": "Role Assignment Metrics" } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-03-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-03-01-preview/authorization-RoleAssignmentsCalls.json index 420d2b3a84b8..2339089b9514 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-03-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-03-01-preview/authorization-RoleAssignmentsCalls.json @@ -491,6 +491,7 @@ "description": "Description of the error." } }, + "type": "object", "description": "Descriptive error response." }, "RoleAssignmentFilter": { @@ -504,6 +505,7 @@ "description": "The Delegation flag for the role assignment" } }, + "type": "object", "description": "Role Assignments filter" }, "RoleAssignmentListResult": { @@ -521,6 +523,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment list operation result." }, "RoleAssignmentProperties": { @@ -544,13 +547,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "default": "User", "x-ms-enum": { @@ -601,6 +598,7 @@ "roleDefinitionId", "principalId" ], + "type": "object", "description": "Role assignment properties." }, "RoleAssignment": { @@ -627,6 +625,7 @@ "description": "Role assignment properties." } }, + "type": "object", "description": "Role Assignments" }, "RoleAssignmentCreateParameters": { @@ -640,6 +639,7 @@ "required": [ "properties" ], + "type": "object", "description": "Role assignment create parameters." } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json index 3e0e3a787eee..ccd6e28121eb 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json @@ -579,6 +579,7 @@ "description": "The Delegation flag for the role assignment" } }, + "type": "object", "description": "Role Assignments filter" }, "RoleAssignmentPropertiesWithScope": { @@ -602,13 +603,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "x-ms-enum": { "name": "PrincipalType", @@ -654,6 +649,7 @@ "description": "Id of the delegated managed identity resource" } }, + "type": "object", "description": "Role assignment properties with scope." }, "RoleAssignment": { @@ -679,6 +675,7 @@ "description": "Role assignment properties." } }, + "type": "object", "description": "Role Assignments" }, "RoleAssignmentListResult": { @@ -695,6 +692,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment list operation result." }, "RoleAssignmentProperties": { @@ -714,13 +712,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "default": "User", "x-ms-enum": { @@ -753,6 +745,7 @@ "roleDefinitionId", "principalId" ], + "type": "object", "description": "Role assignment properties." }, "RoleAssignmentCreateParameters": { @@ -766,6 +759,7 @@ "required": [ "properties" ], + "type": "object", "description": "Role assignment create parameters." } }, @@ -776,6 +770,7 @@ "required": true, "type": "string", "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" }, "TenantIdQueryParameter": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/authorization-RoleAssignmentsCalls.json index 3dba0536d271..0ac79fb17b4b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/authorization-RoleAssignmentsCalls.json @@ -583,6 +583,7 @@ "definitions": { "ValidationResponseErrorInfo": { "description": "Failed validation result details", + "type": "object", "properties": { "code": { "readOnly": true, @@ -598,6 +599,7 @@ }, "ValidationResponse": { "description": "Validation response", + "type": "object", "properties": { "isValid": { "readOnly": true, @@ -617,6 +619,7 @@ "description": "Returns role assignment of the specific principal." } }, + "type": "object", "description": "Role Assignments filter" }, "RoleAssignmentListResult": { @@ -634,6 +637,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment list operation result." }, "RoleAssignmentProperties": { @@ -658,13 +662,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", - "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone" + "ForeignGroup" ], "default": "User", "x-ms-enum": { @@ -715,6 +713,7 @@ "roleDefinitionId", "principalId" ], + "type": "object", "description": "Role assignment properties." }, "RoleAssignment": { @@ -741,6 +740,7 @@ "description": "Role assignment properties." } }, + "type": "object", "description": "Role Assignments" }, "RoleAssignmentCreateParameters": { @@ -754,6 +754,7 @@ "required": [ "properties" ], + "type": "object", "description": "Role assignment create parameters." } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json index a2d955973b7d..2660c051713c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json @@ -58,7 +58,7 @@ "description": "The filter to apply on the operation. Use $filter=resourceType+eq+'Subscription' to filter on only resource of type = 'Subscription'. Use $filter=resourceType+eq+'subscription'+or+resourceType+eq+'resourcegroup' to filter on resource of type = 'Subscription' or 'ResourceGroup'" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -101,6 +101,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Eligible child resources list operation result." }, "EligibleChildResource": { @@ -121,6 +122,7 @@ "description": "The resource type." } }, + "type": "object", "description": "Eligible child resource" }, "CloudError": { @@ -130,6 +132,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -144,16 +147,8 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json index 7e0a694c29fe..7046e5620434 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json @@ -58,7 +58,7 @@ "description": "The name (guid) of the role assignment schedule to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -106,7 +106,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedules for the current user. Use $filter=asTarget() to return all role assignment schedules created for the current user." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -151,6 +151,7 @@ "description": "Returns role assignment schedule instances of the specific status." } }, + "type": "object", "description": "Role assignment schedule filter" }, "RoleAssignmentScheduleProperties": { @@ -174,17 +175,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -287,6 +282,7 @@ "$ref": "#/definitions/ExpandedProperties" } }, + "type": "object", "description": "Role assignment schedule properties with scope." }, "RoleAssignmentSchedule": { @@ -312,6 +308,7 @@ "description": "Role assignment schedule properties." } }, + "type": "object", "description": "Role Assignment schedule" }, "RoleAssignmentScheduleListResult": { @@ -328,6 +325,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment schedule list operation result." }, "CloudError": { @@ -337,6 +335,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -351,6 +350,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -413,16 +413,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json index d778f0c65e76..510f6fdd58bb 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json @@ -58,7 +58,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedule instances for the user. Use $filter=asTarget() to return all role assignment schedule instances created for the current user." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -110,7 +110,7 @@ "description": "The name (hash of schedule name + time) of the role assignment schedule to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -155,6 +155,7 @@ "description": "Returns role assignment schedule instances belonging to a specific role assignment schedule." } }, + "type": "object", "description": "Role assignment schedule instance filter" }, "RoleAssignmentScheduleInstanceProperties": { @@ -178,17 +179,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -294,6 +289,7 @@ "$ref": "#/definitions/ExpandedProperties" } }, + "type": "object", "description": "Role assignment schedule properties with scope." }, "RoleAssignmentScheduleInstance": { @@ -319,6 +315,7 @@ "description": "Role assignment schedule instance properties." } }, + "type": "object", "description": "Information about current or upcoming role assignment schedule instance" }, "RoleAssignmentScheduleInstanceListResult": { @@ -335,6 +332,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment schedule instance list operation result." }, "CloudError": { @@ -344,6 +342,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -358,6 +357,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -420,16 +420,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json index 0c18a43bcdff..fd87a39ab5ae 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json @@ -67,7 +67,7 @@ "description": "Parameters for the role assignment schedule request." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -113,7 +113,7 @@ "description": "The name (guid) of the role assignment schedule request to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -161,7 +161,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role assignment schedule requests requested by the current user. Use $filter=asTarget() to return all role assignment schedule requests created for the current user. Use $filter=asApprover() to return all role assignment schedule requests where the current user is an approver." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -213,7 +213,7 @@ "description": "The name of the role assignment request to cancel." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -255,6 +255,7 @@ "description": "Returns role assignment requests of specific status." } }, + "type": "object", "description": "Role assignment schedule request filter" }, "RoleAssignmentScheduleRequestProperties": { @@ -280,17 +281,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -391,9 +386,11 @@ "description": "Duration of the role assignment schedule in TimeSpan." } }, + "type": "object", "description": "Expiration of the role assignment schedule" } }, + "type": "object", "description": "Schedule info of the role assignment schedule" }, "linkedRoleEligibilityScheduleId": { @@ -415,6 +412,7 @@ "description": "Ticket system name for the role assignment" } }, + "type": "object", "description": "Ticket Info of the role assignment" }, "condition": { @@ -448,6 +446,7 @@ "principalId", "requestType" ], + "type": "object", "description": "Role assignment schedule request properties with scope." }, "RoleAssignmentScheduleRequest": { @@ -473,6 +472,7 @@ "description": "Role assignment schedule request properties." } }, + "type": "object", "description": "Role Assignment schedule request" }, "RoleAssignmentScheduleRequestListResult": { @@ -489,6 +489,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment schedule request list operation result." }, "CloudError": { @@ -498,6 +499,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -512,6 +514,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -574,16 +577,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json index d3d3bbb7e834..03dbe865e556 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json @@ -58,7 +58,7 @@ "description": "The name (guid) of the role eligibility schedule to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -106,7 +106,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedules at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -151,6 +151,7 @@ "description": "Returns role eligibility schedule of the specific status." } }, + "type": "object", "description": "Role eligibility schedule filter" }, "RoleEligibilityScheduleProperties": { @@ -174,17 +175,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -271,6 +266,7 @@ "$ref": "#/definitions/ExpandedProperties" } }, + "type": "object", "description": "Role eligibility schedule properties with scope." }, "RoleEligibilitySchedule": { @@ -296,6 +292,7 @@ "description": "role eligibility schedule properties." } }, + "type": "object", "description": "Role eligibility schedule" }, "RoleEligibilityScheduleListResult": { @@ -312,6 +309,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "role eligibility schedule list operation result." }, "CloudError": { @@ -321,6 +319,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -335,6 +334,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -397,16 +397,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json index 30504594f0bd..449f8337b337 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json @@ -58,7 +58,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -110,7 +110,7 @@ "description": "The name (hash of schedule name + time) of the role eligibility schedule to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -155,6 +155,7 @@ "description": "Returns role eligibility schedule instances belonging to a specific role eligibility schedule." } }, + "type": "object", "description": "Role eligibility schedule instance filter" }, "RoleEligibilityScheduleInstanceProperties": { @@ -178,17 +179,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -270,6 +265,7 @@ "$ref": "#/definitions/ExpandedProperties" } }, + "type": "object", "description": "Role eligibility schedule properties with scope." }, "RoleEligibilityScheduleInstance": { @@ -295,6 +291,7 @@ "description": "Role eligibility schedule instance properties." } }, + "type": "object", "description": "Information about current or upcoming role eligibility schedule instance" }, "RoleEligibilityScheduleInstanceListResult": { @@ -311,6 +308,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role eligibility schedule instance list operation result." }, "CloudError": { @@ -320,6 +318,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -334,6 +333,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -396,16 +396,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json index 1ed4bb81ed6e..bfd5c9995aaa 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json @@ -67,7 +67,7 @@ "description": "Parameters for the role eligibility schedule request." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -113,7 +113,7 @@ "description": "The name (guid) of the role eligibility schedule request to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -161,7 +161,7 @@ "description": "The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role eligibility schedule requests requested by the current user. Use $filter=asTarget() to return all role eligibility schedule requests created for the current user. Use $filter=asApprover() to return all role eligibility schedule requests where the current user is an approver." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -213,7 +213,7 @@ "description": "The name of the role eligibility request to cancel." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -255,6 +255,7 @@ "description": "Returns role eligibility requests of specific status." } }, + "type": "object", "description": "Role eligibility schedule request filter" }, "RoleEligibilityScheduleRequestProperties": { @@ -280,17 +281,11 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "x-ms-enum": { - "name": "PrincipalType", + "name": "principalType", "modelAsString": true } }, @@ -383,9 +378,11 @@ "description": "Duration of the role eligibility schedule in TimeSpan." } }, + "type": "object", "description": "Expiration of the role eligibility schedule" } }, + "type": "object", "description": "Schedule info of the role eligibility schedule" }, "targetRoleEligibilityScheduleId": { @@ -411,6 +408,7 @@ "description": "Ticket system name for the role eligibility" } }, + "type": "object", "description": "Ticket Info of the role eligibility" }, "condition": { @@ -444,6 +442,7 @@ "principalId", "requestType" ], + "type": "object", "description": "Role eligibility schedule request properties with scope." }, "RoleEligibilityScheduleRequest": { @@ -469,6 +468,7 @@ "description": "Role eligibility schedule request properties." } }, + "type": "object", "description": "Role Eligibility schedule request" }, "RoleEligibilityScheduleRequestListResult": { @@ -485,6 +485,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role eligibility schedule request list operation result." }, "CloudError": { @@ -494,6 +495,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -508,6 +510,7 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." }, "ExpandedProperties": { @@ -570,16 +573,8 @@ } } } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + }, + "type": "object" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json index 32c1be6132fe..22c2c4e2562b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json @@ -58,7 +58,7 @@ "description": "The name (guid) of the role management policy to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -113,7 +113,7 @@ "description": "Parameters for the role management policy." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -162,7 +162,7 @@ "description": "The name (guid) of the role management policy to upsert." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -203,7 +203,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -251,7 +251,7 @@ "description": "The role management policy is default policy." }, "lastModifiedBy": { - "$ref": "#/definitions/Principal" + "$ref": "./common-types.json#/definitions/Principal" }, "lastModifiedDateTime": { "type": "string", @@ -281,6 +281,7 @@ "$ref": "#/definitions/PolicyProperties" } }, + "type": "object", "description": "Role management policy properties with scope." }, "RoleManagementPolicy": { @@ -306,6 +307,7 @@ "description": "Role management policy properties." } }, + "type": "object", "description": "Role management policy" }, "RoleManagementPolicyListResult": { @@ -322,6 +324,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role management policy list operation result." }, "RoleManagementPolicyRule": { @@ -671,30 +674,8 @@ } } } - } - }, - "Principal": { - "readOnly": true, - "type": "object", - "description": "The name of the entity last modified it", - "properties": { - "id": { - "type": "string", - "description": "The id of the principal made changes" - }, - "displayName": { - "type": "string", - "description": "The name of the principal made changes" - }, - "type": { - "type": "string", - "description": "Type of principal such as user , group etc" - }, - "email": { - "type": "string", - "description": "Email of principal" - } - } + }, + "type": "object" }, "CloudError": { "x-ms-external": true, @@ -703,6 +684,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -717,16 +699,8 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json index 857a3432ec3e..89d75009d609 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json @@ -58,7 +58,7 @@ "description": "The name of format {guid_guid} the role management policy assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -113,7 +113,7 @@ "description": "Parameters for the role management policy assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -131,7 +131,7 @@ } }, "x-ms-examples": { - "GetConfigurations": { + "PutRoleManagementPolicyAssignment": { "$ref": "./examples/PutRoleManagementPolicyAssignment.json" } } @@ -159,7 +159,7 @@ "description": "The name of format {guid_guid} the role management policy assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -177,7 +177,7 @@ } }, "x-ms-examples": { - "GetConfigurations": { + "DeleteRoleManagementPolicyAssignment": { "$ref": "./examples/DeleteRoleManagementPolicyAssignment.json" } } @@ -200,7 +200,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -221,7 +221,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "GetConfigurations": { + "GetRoleManagementPolicyAssignmentByScope": { "$ref": "./examples/GetRoleManagementPolicyAssignmentByScope.json" } } @@ -252,6 +252,7 @@ "description": "Role management policy properties." } }, + "type": "object", "description": "Role management policy" }, "RoleManagementPolicyAssignmentProperties": { @@ -275,6 +276,7 @@ "$ref": "#/definitions/PolicyAssignmentProperties" } }, + "type": "object", "description": "Role management policy assignment properties with scope." }, "RoleManagementPolicyAssignmentListResult": { @@ -291,6 +293,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role management policy assignment list operation result." }, "PolicyAssignmentProperties": { @@ -340,7 +343,7 @@ "description": "Id of the policy" }, "lastModifiedBy": { - "$ref": "#/definitions/Principal" + "$ref": "./common-types.json#/definitions/Principal" }, "lastModifiedDateTime": { "type": "string", @@ -349,30 +352,8 @@ } } } - } - }, - "Principal": { - "readOnly": true, - "type": "object", - "description": "The name of the entity last modified it", - "properties": { - "id": { - "type": "string", - "description": "The id of the principal made changes" - }, - "displayName": { - "type": "string", - "description": "The name of the principal made changes" - }, - "type": { - "type": "string", - "description": "Type of principal such as user , group etc" - }, - "email": { - "type": "string", - "description": "Email of principal" - } - } + }, + "type": "object" }, "CloudError": { "x-ms-external": true, @@ -381,6 +362,7 @@ "$ref": "#/definitions/CloudErrorBody" } }, + "type": "object", "description": "An error response from the service." }, "CloudErrorBody": { @@ -395,16 +377,8 @@ "description": "A message describing the error, intended to be suitable for display in a user interface." } }, + "type": "object", "description": "An error response from the service." } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json index 04835777fcf4..90ec9e95082c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json @@ -582,6 +582,7 @@ }, "definitions": { "ValidationResponseErrorInfo": { + "type": "object", "description": "Failed validation result details", "properties": { "code": { @@ -597,6 +598,7 @@ } }, "ValidationResponse": { + "type": "object", "description": "Validation response", "properties": { "isValid": { @@ -617,6 +619,7 @@ "description": "Returns role assignment of the specific principal." } }, + "type": "object", "description": "Role Assignments filter" }, "RoleAssignmentListResult": { @@ -634,6 +637,7 @@ "description": "The URL to use for getting the next set of results." } }, + "type": "object", "description": "Role assignment list operation result." }, "RoleAssignmentProperties": { @@ -658,13 +662,7 @@ "User", "Group", "ServicePrincipal", - "Unknown", - "DirectoryRoleTemplate", "ForeignGroup", - "Application", - "MSI", - "DirectoryObjectOrGroup", - "Everyone", "Device" ], "default": "User", @@ -716,6 +714,7 @@ "roleDefinitionId", "principalId" ], + "type": "object", "description": "Role assignment properties." }, "RoleAssignment": { @@ -742,6 +741,7 @@ "description": "Role assignment properties." } }, + "type": "object", "description": "Role Assignments" }, "RoleAssignmentCreateParameters": { @@ -755,6 +755,7 @@ "required": [ "properties" ], + "type": "object", "description": "Role assignment create parameters." } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/common-types.json index 0b2370e84ffd..3c0fb90b0621 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/common-types.json @@ -2,7 +2,18 @@ "swagger": "2.0", "info": { "version": "2020-10-01-preview", - "title": "Common types" + "title": "AuthorizationManagementClient" + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } }, "paths": {}, "definitions": { @@ -37,7 +48,31 @@ "description": "Denied Data actions." } }, + "type": "object", "description": "Role definition permissions." + }, + "Principal": { + "readOnly": true, + "type": "object", + "description": "The name of the entity last modified it", + "properties": { + "id": { + "type": "string", + "description": "The id of the principal made changes" + }, + "displayName": { + "type": "string", + "description": "The name of the principal made changes" + }, + "type": { + "type": "string", + "description": "Type of principal such as user , group etc" + }, + "email": { + "type": "string", + "description": "Email of principal" + } + } } }, "parameters": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json index c43b3cc2d43e..2d577b7822da 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json @@ -7,6 +7,7 @@ "responses": { "200": { "body": { + "nextLink": "https://getMoreData.net/foo", "value": [ { "properties": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json index 648555c7b6db..e4db090f9e86 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json @@ -6,59 +6,62 @@ }, "responses": { "200": { - "body": [ - { - "properties": { - "targetRoleAssignmentScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413", - "targetRoleAssignmentScheduleInstanceId": null, - "scope": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f", - "roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608", - "principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", - "principalType": "User", - "requestType": "SelfActivate", - "status": "Provisioned", - "approvalId": null, - "scheduleInfo": { - "startDateTime": "2020-09-09T21:35:27.91Z", - "expiration": { - "type": "AfterDuration", - "endDateTime": null, - "duration": "PT8H" - } - }, - "ticketInfo": { - "ticketNumber": null, - "ticketSystem": null - }, - "justification": null, - "requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", - "createdOn": "2020-09-09T21:35:27.91Z", - "condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'", - "conditionVersion": "1.0", - "expandedProperties": { - "scope": { - "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f", - "displayName": "Pay-As-You-Go", - "type": "subscription" + "body": { + "value": [ + { + "properties": { + "targetRoleAssignmentScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413", + "targetRoleAssignmentScheduleInstanceId": null, + "scope": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f", + "roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608", + "principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", + "principalType": "User", + "requestType": "SelfActivate", + "status": "Provisioned", + "approvalId": null, + "scheduleInfo": { + "startDateTime": "2020-09-09T21:35:27.91Z", + "expiration": { + "type": "AfterDuration", + "endDateTime": null, + "duration": "PT8H" + } }, - "roleDefinition": { - "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608", - "displayName": "Contributor", - "type": "BuiltInRole" + "ticketInfo": { + "ticketNumber": null, + "ticketSystem": null }, - "principal": { - "id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", - "displayName": "User Account", - "email": "user@my-tenant.com", - "type": "User" + "justification": null, + "requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", + "createdOn": "2020-09-09T21:35:27.91Z", + "condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'", + "conditionVersion": "1.0", + "expandedProperties": { + "scope": { + "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f", + "displayName": "Pay-As-You-Go", + "type": "subscription" + }, + "roleDefinition": { + "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608", + "displayName": "Contributor", + "type": "BuiltInRole" + }, + "principal": { + "id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea", + "displayName": "User Account", + "email": "user@my-tenant.com", + "type": "User" + } } - } - }, - "name": "fea7a502-9a96-4806-a26f-eee560e52045", - "id": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045", - "type": "Microsoft.Authorization/RoleAssignmentScheduleRequests" - } - ] + }, + "name": "fea7a502-9a96-4806-a26f-eee560e52045", + "id": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045", + "type": "Microsoft.Authorization/RoleAssignmentScheduleRequests" + } + ], + "nextLink": "https://getMoreData.net/foo" + } } } } diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 4b666ad7f74f..3de1d14c3be8 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Authorization API. ``` yaml openapi-type: arm -tag: package-2020-04-01-preview-only +tag: package-2020-10-01-preview ``` ### Suppression @@ -46,33 +46,7 @@ directive: from: authorization-ProviderOperationsCalls.json reason: the full operationId value is "ProviderOperationsMetadata_List" the linter does not seem to be picking what's after the '_' - suppress: EnumInsteadOfBoolean - where: $.definitions.RoleAssignmentFilter.properties.canDelegate - from: authorization-RoleAssignmentsCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.RoleAssignmentPropertiesWithScope.properties.canDelegate - from: authorization-RoleAssignmentsCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.RoleAssignmentProperties.properties.canDelegate - from: authorization-RoleAssignmentsCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.ProviderOperation.properties.isDataAction - from: authorization-ProviderOperationsCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.DenyAssignmentProperties.properties.doNotApplyToChildScopes - from: authorization-DenyAssignmentGetCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.DenyAssignmentProperties.properties.isSystemProtected - from: authorization-DenyAssignmentGetCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways - - suppress: EnumInsteadOfBoolean - where: $.definitions.ValidationResponse.properties.isValid - from: authorization-RoleAssignmentsCalls.json - reason: for this case the result of the proposed change would resemble a boolean anyways + reason: booleans are only used when the values reduce to true or false - suppress: R4024 reason: Preview versions still in use - suppress: RequiredSystemDataInNewApiVersions @@ -88,6 +62,24 @@ directive: - suppress: AddingOptionalProperty from: authorization-AccessReviewCalls.json reason: API documentation is not exposed yet. We're making some small changes before publishing documentation. + - suppress: R1003 + from: EligibleChildResources.json + reason: Fixing warning would create a breaking change + - suppress: R1006 + from: authorization-AccessReviewCalls.json + reason: Fixing warning would create a breaking change + - suppress: R1007 + from: authorization-AccessReviewCalls.json + reason: Fixing warning would create a breaking change + - suppress: R2017 + from: authorization-AccessReviewCalls.json + reason: Request body is a subset of response body. Additional properties in the response are not settable by the user + - suppress: R2063 + from: authorization-AccessReviewCalls.json + reason: Disambiguation resolution is acceptable and desired. When generating the models the _Suffix doesn't get included + - suppress: R2015 + from: common-types.json + reason: common-types doesn't need to reference api version. ``` ### Tag: package-2021-07-01-preview-only @@ -108,12 +100,29 @@ input-file: - Microsoft.Authorization/preview/2021-03-01-preview/authorization-AccessReviewCalls.json ``` +### Tag: package-2021-01-01-preview-only + +These settings apply only when `--tag=package-2021-01-01-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2021-01-01-preview-only' +input-file: +- Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json +``` + ### Tag: package-2020-10-01-preview These settings apply only when `--tag=package-2020-10-01-preview` is specified on the command line. ``` yaml $(tag) == 'package-2020-10-01-preview' input-file: +- Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json +- Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json +- Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json +- Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json +- Microsoft.Authorization/preview/2020-10-01-preview/common-types.json +- Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json - Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json - Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json - Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json @@ -122,8 +131,19 @@ input-file: - Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json - Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json - Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json -- Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json -- Microsoft.Authorization/preview/2020-10-01-preview/authorization-RoleAssignmentsCalls.json +``` + +### Tag: profile-hybrid-2020-09-01 + +These settings apply only when `--tag=profile-hybrid-2020-09-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2020-09-01' +input-file: +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json ``` ### Tag: package-2020-08-01-preview @@ -180,6 +200,19 @@ input-file: - Microsoft.Authorization/preview/2019-08-01-preview/authorization-UsageMetricsCalls.json ``` +### Tag: profile-hybrid-2019-03-01 + +These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2019-03-01' +input-file: +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json +``` + ### Tag: package-2018-09-01-preview These settings apply only when `--tag=package-2018-09-01-preview` is specified on the command line. @@ -303,41 +336,6 @@ input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json ``` -### Tag: profile-hybrid-2020-09-01 - -These settings apply only when `--tag=profile-hybrid-2020-09-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. - -``` yaml $(tag) == 'profile-hybrid-2020-09-01' -input-file: -- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json -``` - -### Tag: profile-hybrid-2019-03-01 - -These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. - -``` yaml $(tag) == 'profile-hybrid-2019-03-01' -input-file: -- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json -- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json -``` - -### Tag: package-2021-01-01-preview-only - -These settings apply only when `--tag=package-2021-01-01-preview-only` is specified on the command line. - -``` yaml $(tag) == 'package-2021-01-01-preview-only' -input-file: -- Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json -``` - --- # Code Generation @@ -372,6 +370,3 @@ See configuration in [readme.java.md](./readme.java.md) ## Python See configuration in [readme.python.md](./readme.python.md) - - - From 0c37361b8dea86d66c4cd9c14c11bf37e3a446ea Mon Sep 17 00:00:00 2001 From: Daniel Orozco Date: Mon, 30 Aug 2021 12:34:45 -0700 Subject: [PATCH 2/2] fix example --- .../examples/GetRoleAssignmentScheduleInstancesByScope.json | 1 - .../examples/GetRoleAssignmentScheduleRequestByScope.json | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json index 2d577b7822da..c43b3cc2d43e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleInstancesByScope.json @@ -7,7 +7,6 @@ "responses": { "200": { "body": { - "nextLink": "https://getMoreData.net/foo", "value": [ { "properties": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json index e4db090f9e86..b15b3cc2edec 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/examples/GetRoleAssignmentScheduleRequestByScope.json @@ -59,8 +59,7 @@ "id": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045", "type": "Microsoft.Authorization/RoleAssignmentScheduleRequests" } - ], - "nextLink": "https://getMoreData.net/foo" + ] } } }