Skip to content

Commit

Permalink
New operations for adhealth (#5431)
Browse files Browse the repository at this point in the history
* Fixes for:

Issue #1 : #4576 (comment)

Typo in the DeltaOperationType Enum.

Issue #2 : #4844 (comment)

GlobalAdmins list is marked as an object, while it's an array.

* Updated the Specification as example for Risky IP Download report.

* Added the Result details

* Fixed review comments, changed the URI scheme as well as changed get/post methods

* Addressing Review Feedback, changing POST call of blobUri -> generateBlobUri

* Added new operation to get connector metadata.

* Addressing PR Comments

* Fixing typo

* Updated examples with real values
  • Loading branch information
binilkk authored and praries880 committed Mar 22, 2019
1 parent beed341 commit e5a6df2
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3276,7 +3276,7 @@
"description": "The name of the service.",
"required": true,
"type": "string"
},
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand Down Expand Up @@ -3311,7 +3311,7 @@
"description": "The name of the service.",
"required": true,
"type": "string"
},
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand All @@ -3328,6 +3328,55 @@
"nextLinkName": null
}
}
},
"/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}":
{
"get": {
"tags": ["Metrics"],
"description": "Gets the list of connectors and run profile names.",
"x-ms-examples": {
"serviceMembers_getConnectorMetadata": {
"$ref": "./examples/ConnectorMetadata.json"
}
},
"operationId": "serviceMembers_getConnectorMetadata",
"parameters": [
{
"name": "serviceName",
"in": "path",
"description": "The name of the service.",
"required": true,
"type": "string"
},
{
"name": "serviceMemberId",
"in": "path",
"description": "The service member id.",
"required": true,
"type": "string",
"format": "uuid"
},
{
"name": "metricName",
"in": "path",
"description": "The name of the metric.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description":
"Gets the list of connectors and run profile names for the given service and service member.",
"schema": {
"$ref": "#/definitions/ConnectorMetadata"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4237,6 +4286,40 @@
}
}
},
"ConnectorMetadata": {
"description": "Gets the list of connectors and run profile names.",
"type": "object",
"properties": {
"connectors": {
"description": "The list of connectors.",
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorMetadataDetails"
}
},
"runProfileNames": {
"description": "The list of run profile names.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"ConnectorMetadataDetails": {
"description": "Details of the connector.",
"type": "object",
"properties": {
"connectorId": {
"description": "The Connector Id.",
"type": "string"
},
"connectorDisplayName": {
"description": "The Connector Display Name",
"type": "string"
}
}
},
"ConnectorObjectError": {
"description": "The connector object error.",
"type": "object",
Expand Down Expand Up @@ -6458,29 +6541,29 @@
}
}
},
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "The version of the API to be used with the client request.",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow.",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "The version of the API to be used with the client request.",
"required": true,
"type": "string"
}
}
},
"security": [
{
"azure_auth": [ "user_impersonation" ]
}
]
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow.",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [ "user_impersonation" ]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"serviceName": "sampleServiceName",
"serviceMemberId": "SampleServiceMemberId",
"api-version": "2014-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"connectors": [
{
"connectorId": "3efbb72d-5047-4816-a7dd-73fefe16a2f3",
"connectorDisplayName": "adhsdfus1runner.adhs.com"
},
{
"connectorId": "b891884f-051e-4a83-95af-2544101c9083",
"connectorDisplayName": "dfadhybridhealth.dfdomain.net - AAD"
}
],
"runProfileNames": [
"Export",
"ApplyRules",
"DeltaImport"
]
}
]
}
}
}
}

0 comments on commit e5a6df2

Please sign in to comment.