Skip to content

Commit

Permalink
Changing service configuration type
Browse files Browse the repository at this point in the history
  • Loading branch information
apmehrotra committed Dec 13, 2022
1 parent 1e2703b commit 8063592
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"EndpointResource": {
"properties": {
"type": "default",
"serviceConfigurations": {
"ssh": {
"serviceConfigurations": [
{
"serviceName": "SSH",
"port": "22"
},
"wac": {
{
"serviceName": "WAC",
"port": "80"
}
}
]
}
}
},
Expand All @@ -25,14 +27,16 @@
"type": "Microsoft.HybridConnectivity/endpoints",
"properties": {
"type": "default",
"serviceConfigurations": {
"ssh": {
"serviceConfigurations": [
{
"serviceName": "SSH",
"port": "22"
},
"wac": {
{
"serviceName": "WAC",
"port": "80"
}
},
],
"provisioningState": "Succeeded"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@
{
"name": "ListCredentialsRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ListCredentialsRequest"
},
Expand Down Expand Up @@ -496,7 +495,8 @@
},
"serviceConfigurationToken": {
"type": "string",
"description": "The token to access the enabled service."
"description": "The token to access the enabled service.",
"x-ms-secret": true
}
}
},
Expand Down Expand Up @@ -589,33 +589,38 @@
"description": "The resource provisioning state."
},
"serviceConfigurations": {
"type": "object",
"type": "array",
"description": "The enabled service configurations.",
"items": {
"$ref": "#/definitions/ServiceConfigurations"
}
"$ref": "#/definitions/ServiceConfiguration"
},
"x-ms-identifiers": [
"serviceName"
]
}
}
},
"ServiceConfigurations": {
"type": "object",
"description": "The service configuration object definition where each key's value is additional property dictionary.",
"ServiceConfiguration": {
"description": "The service configuration object definition",
"properties": {
"ssh": {
"type": "object",
"description": "Details for SSH service configuration.",
"additionalProperties": {
"type": "string"
"serviceName": {
"type": "string",
"description": "The type of service enabled.",
"enum": [
"SSH",
"WAC"
],
"x-ms-enum": {
"name": "serviceName",
"modelAsString": true
}
},
"wac": {
"type": "object",
"description": "Details for WAC service configuration.",
"additionalProperties": {
"type": "string"
}
"port": {
"type": "string",
"description": "The port on which service is enabled."
}
}
},
"type": "object"
},
"EndpointResource": {
"description": "The endpoint for the target resource.",
Expand Down Expand Up @@ -697,17 +702,15 @@
"WAC"
],
"x-ms-enum": {
"name": "ServiceName"
"name": "serviceName",
"modelAsString": true
}
}
}
},
"ListCredentialsRequest": {
"type": "object",
"description": "Represent ListCredentials Request object.",
"required": [
"serviceName"
],
"properties": {
"serviceName": {
"type": "string",
Expand All @@ -717,7 +720,8 @@
"WAC"
],
"x-ms-enum": {
"name": "ServiceName"
"name": "serviceName",
"modelAsString": true
}
}
}
Expand Down

0 comments on commit 8063592

Please sign in to comment.