Skip to content

Commit

Permalink
fix gitAccess (Azure#13412)
Browse files Browse the repository at this point in the history
  • Loading branch information
solankisamir committed Mar 15, 2021
1 parent fba158f commit 47f35bf
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@
},
"AccessInformationContractProperties": {
"properties": {
"id": {
"type": "string",
"description": "Access Information type ('access' or 'gitAccess')"
},
"principalId": {
"type": "string",
"description": "Principal (User) Identifier."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"type": "string",
"enum": [
"access",
"getAccess"
"gitAccess"
],
"x-ms-enum": {
"modelAsString": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
"x-ms-examples": {
"ApiManagementGetTenantAccess": {
"$ref": "./examples/ApiManagementGetTenantAccess.json"
},
"ApiManagementGetTenantGitAccess": {
"$ref": "./examples/ApiManagementGetTenantGitAccess.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2021-01-01-preview",
"subscriptionId": "subid",
"accessName": "gitAccess"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/gitAccess",
"type": "Microsoft.ApiManagement/service/tenant",
"name": "gitAccess",
"properties": {
"principalId": "git",
"enabled": true
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"type": "string",
"enum": [
"access",
"getAccess"
"gitAccess"
],
"x-ms-enum": {
"modelAsString": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
"x-ms-examples": {
"ApiManagementGetTenantAccess": {
"$ref": "./examples/ApiManagementGetTenantAccess.json"
},
"ApiManagementGetTenantGitAccess": {
"$ref": "./examples/ApiManagementGetTenantGitAccess.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2020-12-01",
"subscriptionId": "subid",
"accessName": "gitAccess"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/gitAccess",
"type": "Microsoft.ApiManagement/service/tenant",
"name": "gitAccess",
"properties": {
"principalId": "git",
"enabled": true
}
}
}
}
}

0 comments on commit 47f35bf

Please sign in to comment.