Skip to content

Commit

Permalink
add PR #13022
Browse files Browse the repository at this point in the history
  • Loading branch information
xfz11 committed Sep 4, 2023
1 parent 4c7c49d commit de33b35
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2023-04-01-preview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"targetType": "MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES",
"authType": "secret",
"daprProperties": {
"version": "v1",
"componentType": "bindings",
"runtimeVersion": "1.10",
"bindingComponentDirection": "input",
"metadata": [
{
"name": "containerName",
"description": "The name of the container to be used for Dapr state.",
"required": "true"
}
]
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,45 @@
"nextLinkName": "nextLink"
}
}
},
"/{resourceUri}/providers/Microsoft.ServiceLinker/daprConfigurations": {
"get": {
"tags": [
"Linkers"
],
"operationId": "Linkers_ListDaprConfigurations",
"description": "List the dapr configuration supported by Service Connector.",
"x-ms-examples": {
"GetDaprConfigurations": {
"$ref": "./examples/GetDaprConfigurations.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ResourceUriParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/DaprConfigurationList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -2049,7 +2088,7 @@
"description": "Indicates where the secrets in configuration from. Used when secrets are from Keyvault."
},
"daprProperties": {
"description": "Indicates some additional properties for dapr client type",
"description": "Deprecated, please use #/definitions/DaprConfigurationList instead",
"$ref": "#/definitions/DaprProperties"
},
"names": {
Expand Down Expand Up @@ -2363,6 +2402,26 @@
"items": {
"type": "string"
}
},
"runtimeVersion": {
"x-nullable": true,
"type": "string",
"readOnly": true,
"description": "The runtime version supported by the properties"
},
"bindingComponentDirection": {
"x-nullable": true,
"type": "string",
"enum": [
"input",
"output"
],
"x-ms-enum": {
"name": "DaprBindingComponentDirection",
"modelAsString": true
},
"readOnly": true,
"description": "The direction supported by the dapr binding component"
}
}
},
Expand All @@ -2381,6 +2440,22 @@
"secretRef": {
"description": "The secret name where dapr could get value",
"type": "string"
},
"description": {
"description": "The description of the metadata, returned from configuration api",
"type": "string"
},
"required": {
"description": "The value indicating whether the metadata is required or not",
"type": "string",
"enum": [
"true",
"false"
],
"x-ms-enum": {
"name": "DaprMetadataRequired",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -2646,6 +2721,50 @@
"name": "allowType",
"modelAsString": true
}
},
"DaprConfigurationList": {
"description": "Dapr configuration list supported by Service Connector",
"type": "object",
"properties": {
"value": {
"description": "The list of dapr configurations",
"type": "array",
"items": {
"$ref": "#/definitions/DaprConfigurationResource"
},
"x-ms-identifiers": []
},
"nextLink": {
"description": "Link to next page of resources.",
"type": "string",
"readOnly": true
}
}
},
"DaprConfigurationResource": {
"description": "Represent one resource of the dapr configuration list",
"type": "object",
"properties": {
"properties": {
"description": "The properties of the dapr configuration.",
"$ref": "#/definitions/DaprConfigurationProperties",
"x-ms-client-flatten": true
}
}
},
"DaprConfigurationProperties": {
"properties": {
"targetType": {
"type": "string",
"description": "Supported target resource type, extract from resource id, uppercase"
},
"authType": {
"$ref": "#/definitions/AuthType"
},
"daprProperties": {
"$ref": "#/definitions/DaprProperties"
}
}
}
},
"parameters": {
Expand Down

0 comments on commit de33b35

Please sign in to comment.