Skip to content

Commit 8c14daf

Browse files
authored
Add relationship types to Graph Bicep (#217)
* Add relationship type and extension config * Update relationship name and description * Fix tests and more updates
1 parent 5f886e6 commit 8c14daf

34 files changed

+16404
-2376
lines changed

docs/DEVELOPMENT.md

+1-31
Original file line numberDiff line numberDiff line change
@@ -40,40 +40,10 @@ cd ../swagger-generation/configs
4040
Create new yml files (following the existing naming convention and a new semantic version) under the `beta` and `v1.0` folders.
4141
Edit the new yml files, with new types, properties and/or property annotation changes.
4242
43-
#### Configure which versions need generation
44-
45-
1. Update extensionConfig
46-
47-
From the root folder `/msgraph-bicep-types`:
48-
49-
```sh
50-
notepad src/extensionConfigs/extensionConfig.json
51-
```
52-
53-
Update the version numbers and save the file.
54-
55-
1. Add the new swagger version file names (to be generated in the next step).
56-
From the root folder `/msgraph-bicep-types`:
57-
58-
```sh
59-
notepad swagger/specification/microsoftgraph/preview/readme.md
60-
```
61-
62-
Edit the YML `input-file` sections to append the latest versions for beta and v1.0. Something like:
63-
64-
```yml
65-
input-file:
66-
- microsoftgraph/preview/beta/0.1.8-preview.json
67-
- microsoftgraph/preview/beta/0.1.9-preview.json <-- appending new version
68-
69-
input-file:
70-
- microsoftgraph/preview/v1.0/0.1.8-preview.json
71-
- microsoftgraph/preview/v1.0/0.1.9-preview.json <-- appending new version
72-
```
7343
7444
### Generate the new types
7545
76-
From the root folder `/msgraph-bicep-types` run the following PowerShell script
46+
From the root folder `/msgraph-bicep-types` run the following PowerShell script to generate types for the latest version
7747
7848
```sh
7949
.\scripts\UpdateGeneratedTypes.ps1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"resources": {
3+
"Microsoft.Graph/groups@beta": {
4+
"$ref": "types.json#/21"
5+
},
6+
"Microsoft.Graph/applications@beta": {
7+
"$ref": "types.json#/77"
8+
},
9+
"Microsoft.Graph/servicePrincipals@beta": {
10+
"$ref": "types.json#/95"
11+
},
12+
"Microsoft.Graph/applications/federatedIdentityCredentials@beta": {
13+
"$ref": "types.json#/100"
14+
},
15+
"Microsoft.Graph/oauth2PermissionGrants@beta": {
16+
"$ref": "types.json#/104"
17+
},
18+
"Microsoft.Graph/appRoleAssignedTo@beta": {
19+
"$ref": "types.json#/108"
20+
},
21+
"Microsoft.Graph/users@beta": {
22+
"$ref": "types.json#/113"
23+
}
24+
},
25+
"resourceFunctions": {},
26+
"settings": {
27+
"name": "MicrosoftGraphBeta",
28+
"version": "0.1.10-preview",
29+
"isSingleton": false,
30+
"configurationType": {
31+
"$ref": "types.json#/114"
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Bicep Types
2+
## microsoft.graph
3+
### microsoft.graph/applications
4+
* **Link**: [beta](types.md#resource-microsoftgraphapplicationsbeta)
5+
6+
### microsoft.graph/applications/federatedidentitycredentials
7+
* **Link**: [beta](types.md#resource-microsoftgraphapplicationsfederatedidentitycredentialsbeta)
8+
9+
### microsoft.graph/approleassignedto
10+
* **Link**: [beta](types.md#resource-microsoftgraphapproleassignedtobeta)
11+
12+
### microsoft.graph/groups
13+
* **Link**: [beta](types.md#resource-microsoftgraphgroupsbeta)
14+
15+
### microsoft.graph/oauth2permissiongrants
16+
* **Link**: [beta](types.md#resource-microsoftgraphoauth2permissiongrantsbeta)
17+
18+
### microsoft.graph/serviceprincipals
19+
* **Link**: [beta](types.md#resource-microsoftgraphserviceprincipalsbeta)
20+
21+
### microsoft.graph/users
22+
* **Link**: [beta](types.md#resource-microsoftgraphusersbeta)
23+

0 commit comments

Comments
 (0)