-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2866 from magodo/importer_custom_field_uai_map_to…
…lerate_exposed_principal_id Importer: Custom filed user assigned identity (map) tolerate exposed principal id at top level
- Loading branch information
Showing
3 changed files
with
188 additions
and
3 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
91 changes: 91 additions & 0 deletions
91
...-rest-api-specs/components/parser/testdata/model_user_assigned_map_with_principal_id.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Example", | ||
"description": "Example", | ||
"version": "2020-01-01" | ||
}, | ||
"host": "management.mysite.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [], | ||
"securityDefinitions": {}, | ||
"paths": { | ||
"/things": { | ||
"get": { | ||
"tags": [ | ||
"Hello" | ||
], | ||
"operationId": "Hello_GetWorld", | ||
"description": "A GET request with a body returned.", | ||
"parameters": [], | ||
"responses": { | ||
"200": { | ||
"description": "Success.", | ||
"schema": { | ||
"$ref": "#/definitions/Example" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Example": { | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"identity": { | ||
"$ref": "#/definitions/UserAssignedIdentityMap" | ||
} | ||
}, | ||
"type": "object", | ||
"title": "Example" | ||
}, | ||
"UserAssignedIdentityMap": { | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"None", | ||
"UserAssigned" | ||
], | ||
"x-ms-enum": { | ||
"name": "IdentityType2", | ||
"modelAsString": true | ||
} | ||
}, | ||
"userAssignedIdentities": { | ||
"$ref": "#/definitions/UserAssignedIdentityMapReal" | ||
}, | ||
"principalId" : { | ||
"type": "string", | ||
"description": "The principal ID for the user-assigned identity of the resource.", | ||
"readOnly": true | ||
} | ||
} | ||
}, | ||
"UserAssignedIdentityMapReal": { | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": { | ||
"clientId": { | ||
"type": "string" | ||
}, | ||
"principalId": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": {} | ||
} |