-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
readme.go.md
136 lines (107 loc) · 5.06 KB
/
readme.go.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
## Go
These settings apply only when `--go` is specified on the command line.
``` yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: authorization
clear-output-folder: true
```
``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/authorization/armauthorization
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
directive:
- from: authorization-RoleAssignmentsCalls.json
where: $.definitions
transform: |
$["RoleAssignmentPropertiesWithScope"] = {
"allOf": [
{
"$ref": "#/definitions/RoleAssignmentProperties"
}
]
}
- from: authorization-RoleAssignmentsCalls.json
where: $.definitions.RoleAssignment.properties
transform: |
$["properties"] = {
"$ref": "#/definitions/RoleAssignmentPropertiesWithScope",
"description": "Role assignment properties."
}
- rename-operation:
from: RoleAssignments_ListForSubscription
to: RoleAssignments_List
- from: authorization-RoleAssignmentsCalls.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments"].get.parameters
transform: >-
$.splice(3,0,{
"name": "parentResourcePath",
"in": "path",
"required": true,
"type": "string",
"description": "The parent resource identity.",
"x-ms-skip-url-encoding": true
});
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2015-07-01
- tag: package-2017-10-01-preview
- tag: package-2018-01-01-preview
- tag: package-2018-07-01-preview
- tag: package-2018-09-01-preview
- tag: package-2020-04-01-preview
- tag: package-2020-10-01-preview
- tag: package-2020-10-01
```
### Tag: package-2015-07-01 and go
These settings apply only when `--tag=package-2015-07-01 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2015-07-01' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2015-07-01/$(namespace)
```
### Tag: package-2017-10-01-preview and go
These settings apply only when `--tag=package-2017-10-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2017-10-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-10-01-preview/$(namespace)
```
### Tag: package-2018-01-01-preview and go
These settings apply only when `--tag=package-2018-01-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2018-01-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-01-01-preview/$(namespace)
```
### Tag: package-2018-07-01-preview and go
These settings apply only when `--tag=package-2018-07-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2018-07-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-07-01-preview/$(namespace)
```
### Tag: package-2018-09-01-preview and go
These settings apply only when `--tag=package-2018-09-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2018-09-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-09-01-preview/$(namespace)
```
### Tag: package-2020-04-01-preview and go
These settings apply only when `--tag=package-2020-04-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2020-04-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-04-01-preview/$(namespace)
```
### Tag: package-2020-10-01-preview and go
These settings apply only when `--tag=package-2020-10-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2020-10-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-01-preview/$(namespace)
```
### Tag: package-2020-10-01 and go
These settings apply only when `--tag=package-2020-10-01 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2020-10-01' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-10-01/$(namespace)
```