Skip to content
Prev Previous commit
Next Next commit
changes in DiscoverTenants contracts
changes in DiscoverTenants contracts
  • Loading branch information
Santosh Sinha committed Jan 15, 2019
commit 33d848a6a3264cac98a5928547541bda1dd69189
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@
],
"x-ms-examples": {
"TenantPropertiesGet": {
"$ref": "./examples/TenantPropertiesGet.json"
"$ref": "./examples/DiscoverTenantsGet.json"
}
},
"operationId": "TenantProperties_Get",
"operationId": "DiscoverTenants_Get",
"description": "Gets a Tenant Properties.",
"parameters": [
{
Expand All @@ -228,7 +228,7 @@
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/TenantProperties"
"$ref": "#/definitions/DiscoverTenants"
}
},
"default": {
Expand Down Expand Up @@ -472,7 +472,7 @@
}
}
},
"TenantProperties": {
"DiscoverTenants": {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build issue in Java is because this name is a plural.

Also, why if the field names DiscoverTenants? Should it be Tenant or TenantInfo as it is describing a Tenant?

I will leave that call to the ARM team...

In the meanwhile, to fix the build break, can you remove the plural from the name... and just change it to the following :

Suggested change
"DiscoverTenants": {
"DiscoverTenant": {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build issue is fixed now. Waiting for approval.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding Name "DiscoverTenants" its actually doing a tenant discovery in Power BI custom connector and this API is designed only for that purpose. I hope this justifies your query.

"description": "A Tenant properties Resource",
"properties": {
"billingProfileName": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"responses": {
"200": {
"body": {
"BillingProfileName": "PayByCheck01",
"BillingAccountId": "9984934b-0494-53de-0fcd-83828e47dbc6",
"TenantId": "251d3d06-c6e0-487b-bd5e-5c2e4c23d51a"
"billingProfileName": "PayByCheck01",
"billingAccountId": "9984934b-0494-53de-0fcd-83828e47dbc6",
"tenantId": "251d3d06-c6e0-487b-bd5e-5c2e4c23d51a"
}
}
}
Expand Down