Skip to content

Commit 818e6e9

Browse files
author
Milan Zolota
committed
returning entire fragments again
1 parent 7346c4d commit 818e6e9

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-04-01-preview/apimpolicyfragments.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"200": {
6565
"description": "Returns an array of references to policy Fragments.",
6666
"schema": {
67-
"$ref": "./definitions.json#/definitions/PolicyFragmentReferenceCollection"
67+
"$ref": "./definitions.json#/definitions/PolicyFragmentCollection"
6868
}
6969
},
7070
"default": {
@@ -298,7 +298,7 @@
298298
"PolicyFragment"
299299
],
300300
"operationId": "PolicyFragment_GetReferences",
301-
"description": "Listsresources that reference the policy fragment of the Api Management service.",
301+
"description": "Lists resources that reference the policy fragment of the Api Management service.",
302302
"x-ms-examples": {
303303
"ApiManagementListPolicyFragmentReferences": {
304304
"$ref": "./examples/ApiManagementListPolicyFragmentReferences.json"

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-04-01-preview/definitions.json

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,18 +3908,14 @@
39083908
},
39093909
"description": "Descriptions of APIM policies."
39103910
},
3911-
"PolicyFragmentReferenceCollection": {
3911+
"PolicyFragmentCollection": {
39123912
"properties": {
39133913
"value": {
39143914
"type": "array",
39153915
"items": {
3916-
"allOf": [
3917-
{
3918-
"$ref": "./apimanagement.json#/definitions/Resource"
3919-
}
3920-
]
3916+
"$ref": "#/definitions/PolicyFragmentContract"
39213917
},
3922-
"description": "Resource references."
3918+
"description": "Policy fragment contract value."
39233919
},
39243920
"count": {
39253921
"type": "integer",
@@ -3931,7 +3927,7 @@
39313927
"description": "Next page link if any."
39323928
}
39333929
},
3934-
"description": "The response of the get policy fragments and get policy fragment references operations."
3930+
"description": "The response of the get policy fragments operation."
39353931
},
39363932
"PolicyFragmentContract": {
39373933
"properties": {
@@ -3952,14 +3948,39 @@
39523948
"properties": {
39533949
"value": {
39543950
"type": "string",
3955-
"description": "Contents of the Policy Fragment as defined by the format."
3951+
"description": "Contents of the policy fragment."
39563952
}
39573953
},
39583954
"required": [
39593955
"value"
39603956
],
39613957
"description": "Policy fragment contract Properties."
39623958
},
3959+
"PolicyFragmentReferenceCollection": {
3960+
"properties": {
3961+
"value": {
3962+
"type": "array",
3963+
"items": {
3964+
"allOf": [
3965+
{
3966+
"$ref": "./apimanagement.json#/definitions/Resource"
3967+
}
3968+
]
3969+
},
3970+
"description": "Resource references."
3971+
},
3972+
"count": {
3973+
"type": "integer",
3974+
"format": "int64",
3975+
"description": "Total record count number."
3976+
},
3977+
"nextLink": {
3978+
"type": "string",
3979+
"description": "Next page link if any."
3980+
}
3981+
},
3982+
"description": "The response of the get policy fragment references operation."
3983+
},
39633984
"PortalDelegationSettings": {
39643985
"properties": {
39653986
"properties": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-04-01-preview/examples/ApiManagementListPolicyFragments.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
{
1313
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policyFragments/policyFragment1",
1414
"type": "Microsoft.ApiManagement/service/policyFragments",
15-
"name": "policyFragment1"
15+
"name": "policyFragment1",
16+
"properties": {
17+
"value": "<json-to-xml apply=\"always\" consider-accept-header=\"false\" />\r\n<rewrite-uri template=\"/resource\" />"
18+
}
1619
}
1720
],
1821
"count": 1,

0 commit comments

Comments
 (0)