Skip to content

Commit 47f35bf

Browse files
authored
fix gitAccess (#13412)
1 parent fba158f commit 47f35bf

File tree

7 files changed

+52
-6
lines changed

7 files changed

+52
-6
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@
7575
},
7676
"AccessInformationContractProperties": {
7777
"properties": {
78-
"id": {
79-
"type": "string",
80-
"description": "Access Information type ('access' or 'gitAccess')"
81-
},
8278
"principalId": {
8379
"type": "string",
8480
"description": "Principal (User) Identifier."

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-01-01-preview/apimanagement.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"type": "string",
152152
"enum": [
153153
"access",
154-
"getAccess"
154+
"gitAccess"
155155
],
156156
"x-ms-enum": {
157157
"modelAsString": true,

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-01-01-preview/apimtenant.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@
143143
"x-ms-examples": {
144144
"ApiManagementGetTenantAccess": {
145145
"$ref": "./examples/ApiManagementGetTenantAccess.json"
146+
},
147+
"ApiManagementGetTenantGitAccess": {
148+
"$ref": "./examples/ApiManagementGetTenantGitAccess.json"
146149
}
147150
},
148151
"parameters": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-01-01-preview",
6+
"subscriptionId": "subid",
7+
"accessName": "gitAccess"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/gitAccess",
13+
"type": "Microsoft.ApiManagement/service/tenant",
14+
"name": "gitAccess",
15+
"properties": {
16+
"principalId": "git",
17+
"enabled": true
18+
}
19+
}
20+
}
21+
}
22+
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/apimanagement.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"type": "string",
152152
"enum": [
153153
"access",
154-
"getAccess"
154+
"gitAccess"
155155
],
156156
"x-ms-enum": {
157157
"modelAsString": true,

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/apimtenant.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@
143143
"x-ms-examples": {
144144
"ApiManagementGetTenantAccess": {
145145
"$ref": "./examples/ApiManagementGetTenantAccess.json"
146+
},
147+
"ApiManagementGetTenantGitAccess": {
148+
"$ref": "./examples/ApiManagementGetTenantGitAccess.json"
146149
}
147150
},
148151
"parameters": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2020-12-01",
6+
"subscriptionId": "subid",
7+
"accessName": "gitAccess"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/gitAccess",
13+
"type": "Microsoft.ApiManagement/service/tenant",
14+
"name": "gitAccess",
15+
"properties": {
16+
"principalId": "git",
17+
"enabled": true
18+
}
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)