Skip to content

Commit 7346c4d

Browse files
author
Milan Zolota
committed
PolicyFragmentContract & fixes
1 parent 2b4433c commit 7346c4d

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
],
6363
"responses": {
6464
"200": {
65-
"description": "Returns an array of Policy Fragments.",
65+
"description": "Returns an array of references to policy Fragments.",
6666
"schema": {
67-
"$ref": "./definitions.json#/definitions/PolicyFragmentCollection"
67+
"$ref": "./definitions.json#/definitions/PolicyFragmentReferenceCollection"
6868
}
6969
},
7070
"default": {
@@ -153,7 +153,7 @@
153153
],
154154
"responses": {
155155
"200": {
156-
"description": "Get the Global policy definition of the Api Management service.",
156+
"description": "Get the policy fragment definition of the Api Management service.",
157157
"schema": {
158158
"$ref": "./definitions.json#/definitions/PolicyFragmentContract"
159159
},
@@ -325,7 +325,7 @@
325325
"200": {
326326
"description": "Returns an array of references to resources that include the policy fragment in their definitions.",
327327
"schema": {
328-
"$ref": "./definitions.json#/definitions/PolicyFragmentReferencesCollection"
328+
"$ref": "./definitions.json#/definitions/PolicyFragmentReferenceCollection"
329329
}
330330
},
331331
"default": {

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

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,7 +3908,7 @@
39083908
},
39093909
"description": "Descriptions of APIM policies."
39103910
},
3911-
"PolicyFragmentCollection": {
3911+
"PolicyFragmentReferenceCollection": {
39123912
"properties": {
39133913
"value": {
39143914
"type": "array",
@@ -3919,7 +3919,7 @@
39193919
}
39203920
]
39213921
},
3922-
"description": "Policy Fragment Contract value."
3922+
"description": "Resource references."
39233923
},
39243924
"count": {
39253925
"type": "integer",
@@ -3931,32 +3931,34 @@
39313931
"description": "Next page link if any."
39323932
}
39333933
},
3934-
"description": "The response of the get policy fragments operation."
3934+
"description": "The response of the get policy fragments and get policy fragment references operations."
39353935
},
3936-
"PolicyFragmentReferencesCollection": {
3936+
"PolicyFragmentContract": {
3937+
"properties": {
3938+
"properties": {
3939+
"x-ms-client-flatten": true,
3940+
"$ref": "#/definitions/PolicyFragmentContractProperties",
3941+
"description": "Properties of the Policy Fragment."
3942+
}
3943+
},
3944+
"allOf": [
3945+
{
3946+
"$ref": "./apimanagement.json#/definitions/Resource"
3947+
}
3948+
],
3949+
"description": "Policy Fragment Contract details."
3950+
},
3951+
"PolicyFragmentContractProperties": {
39373952
"properties": {
39383953
"value": {
3939-
"type": "array",
3940-
"items": {
3941-
"allOf": [
3942-
{
3943-
"$ref": "./apimanagement.json#/definitions/Resource"
3944-
}
3945-
]
3946-
},
3947-
"description": "Policy Fragment References Contract value."
3948-
},
3949-
"count": {
3950-
"type": "integer",
3951-
"format": "int64",
3952-
"description": "Total record count number."
3953-
},
3954-
"nextLink": {
39553954
"type": "string",
3956-
"description": "Next page link if any."
3955+
"description": "Contents of the Policy Fragment as defined by the format."
39573956
}
39583957
},
3959-
"description": "The response of the get policy fragment references operation."
3958+
"required": [
3959+
"value"
3960+
],
3961+
"description": "Policy fragment contract Properties."
39603962
},
39613963
"PortalDelegationSettings": {
39623964
"properties": {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"policyFragmentId": "policyFragment1",
88
"parameters": {
99
"properties": {
10-
"format": "xml",
1110
"value": "<json-to-xml apply=\"always\" consider-accept-header=\"false\" />\r\n<rewrite-uri template=\"/resource\" />"
1211
}
1312
}

0 commit comments

Comments
 (0)