diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json index a3a79ea8a71f..80344f3ac144 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json @@ -94,7 +94,7 @@ "200": { "description": "Paged Result response of Apis.", "schema": { - "$ref": "#/definitions/ApiCollection" + "$ref": "./definitions.json#/definitions/ApiCollection" } }, "default": { @@ -107,7 +107,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ApiContract" + "x-ms-odata": "./definitions.json#/definitions/ApiContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}": { @@ -200,7 +200,7 @@ "200": { "description": "The response body contains the specified API entity.", "schema": { - "$ref": "#/definitions/ApiContract" + "$ref": "./definitions.json#/definitions/ApiContract" }, "headers": { "ETag": { @@ -272,7 +272,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiCreateOrUpdateParameter" + "$ref": "./definitions.json#/definitions/ApiCreateOrUpdateParameter" }, "description": "Create or update parameters." }, @@ -290,7 +290,7 @@ "201": { "description": "API was successfully created.", "schema": { - "$ref": "#/definitions/ApiContract" + "$ref": "./definitions.json#/definitions/ApiContract" }, "headers": { "ETag": { @@ -305,7 +305,7 @@ "200": { "description": "API was successfully updated.", "schema": { - "$ref": "#/definitions/ApiContract" + "$ref": "./definitions.json#/definitions/ApiContract" }, "headers": { "ETag": { @@ -349,7 +349,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiUpdateContract" + "$ref": "./definitions.json#/definitions/ApiUpdateContract" }, "description": "API Update Contract parameters." }, @@ -475,7 +475,7 @@ "200": { "description": "The operation returns a list of revision details.", "schema": { - "$ref": "#/definitions/ApiRevisionCollection" + "$ref": "./definitions.json#/definitions/ApiRevisionCollection" } }, "default": { @@ -488,7 +488,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ApiRevisionContract" + "x-ms-odata": "./definitions.json#/definitions/ApiRevisionContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases": { @@ -537,7 +537,7 @@ "200": { "description": "The operation returns a list of API Releases.", "schema": { - "$ref": "#/definitions/ApiReleaseCollection" + "$ref": "./definitions.json#/definitions/ApiReleaseCollection" } }, "default": { @@ -550,7 +550,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ApiReleaseContract" + "x-ms-odata": "./definitions.json#/definitions/ApiReleaseContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}": { @@ -638,7 +638,7 @@ "200": { "description": "The operation returns the details of an API Release.", "schema": { - "$ref": "#/definitions/ApiReleaseContract" + "$ref": "./definitions.json#/definitions/ApiReleaseContract" }, "headers": { "ETag": { @@ -684,7 +684,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiReleaseContract" + "$ref": "./definitions.json#/definitions/ApiReleaseContract" }, "description": "Create parameters." }, @@ -702,7 +702,7 @@ "201": { "description": "Release was successfully created.", "schema": { - "$ref": "#/definitions/ApiReleaseContract" + "$ref": "./definitions.json#/definitions/ApiReleaseContract" }, "headers": { "ETag": { @@ -714,7 +714,7 @@ "200": { "description": "Release was successfully updated.", "schema": { - "$ref": "#/definitions/ApiReleaseContract" + "$ref": "./definitions.json#/definitions/ApiReleaseContract" }, "headers": { "ETag": { @@ -760,7 +760,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiReleaseContract" + "$ref": "./definitions.json#/definitions/ApiReleaseContract" }, "description": "API Release Update parameters." }, @@ -888,7 +888,7 @@ "200": { "description": "A collection of operation summary entities at the API level.", "schema": { - "$ref": "#/definitions/OperationCollection" + "$ref": "./definitions.json#/definitions/OperationCollection" } }, "default": { @@ -901,7 +901,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/OperationContract" + "x-ms-odata": "./definitions.json#/definitions/OperationContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}": { @@ -992,7 +992,7 @@ "200": { "description": "The response body contains the specified Operation entity.", "schema": { - "$ref": "#/definitions/OperationContract" + "$ref": "./definitions.json#/definitions/OperationContract" }, "headers": { "ETag": { @@ -1038,7 +1038,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/OperationContract" + "$ref": "./definitions.json#/definitions/OperationContract" }, "description": "Create parameters." }, @@ -1056,7 +1056,7 @@ "201": { "description": "Operation was successfully created.", "schema": { - "$ref": "#/definitions/OperationContract" + "$ref": "./definitions.json#/definitions/OperationContract" }, "headers": { "ETag": { @@ -1068,7 +1068,7 @@ "200": { "description": "Operation was successfully updated.", "schema": { - "$ref": "#/definitions/OperationContract" + "$ref": "./definitions.json#/definitions/OperationContract" }, "headers": { "ETag": { @@ -1114,7 +1114,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/OperationUpdateContract" + "$ref": "./definitions.json#/definitions/OperationUpdateContract" }, "description": "API Operation Update parameters." }, @@ -1226,7 +1226,7 @@ "200": { "description": "Api Operations Policy Collection.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyCollection" + "$ref": "./definitions.json#/definitions/PolicyCollection" } }, "default": { @@ -1329,7 +1329,7 @@ "200": { "description": "Api Operation Policy information.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1378,7 +1378,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "description": "The policy contents to apply." }, @@ -1396,7 +1396,7 @@ "201": { "description": "Api Operation policy configuration was successfully created.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1408,7 +1408,7 @@ "200": { "description": "Api Operation policy configuration of the tenant was successfully updated.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1527,7 +1527,7 @@ "200": { "description": "The operation returns a collection of tags associated with the Operation entity.", "schema": { - "$ref": "./apimtags.json#/definitions/TagCollection" + "$ref": "./definitions.json#/definitions/TagCollection" } }, "default": { @@ -1540,7 +1540,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtags.json#/definitions/TagContract" + "x-ms-odata": "./definitions.json#/definitions/TagContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}": { @@ -1634,7 +1634,7 @@ "200": { "description": "Gets the details of the tag specified by its identifier.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -1689,13 +1689,13 @@ "201": { "description": "Tag was assigned to the Operation.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "200": { "description": "Tag is already assigned to the Operation.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "default": { @@ -1802,7 +1802,7 @@ "200": { "description": "The operation returns a collection of products which have the Api entity.", "schema": { - "$ref": "./apimproducts.json#/definitions/ProductCollection" + "$ref": "./definitions.json#/definitions/ProductCollection" } }, "default": { @@ -1815,7 +1815,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimproducts.json#/definitions/ProductContract" + "x-ms-odata": "./definitions.json#/definitions/ProductContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies": { @@ -1851,7 +1851,7 @@ "200": { "description": "Apis Policy Collection.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyCollection" + "$ref": "./definitions.json#/definitions/PolicyCollection" } }, "default": { @@ -1953,7 +1953,7 @@ "200": { "description": "Api Policy information.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -2007,7 +2007,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "description": "The policy contents to apply." }, @@ -2025,7 +2025,7 @@ "201": { "description": "Api policy configuration was successfully created.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -2037,7 +2037,7 @@ "200": { "description": "Api policy configuration of the tenant was successfully updated.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -2150,7 +2150,7 @@ "200": { "description": "Apis Schema Collection.", "schema": { - "$ref": "#/definitions/SchemaCollection" + "$ref": "./definitions.json#/definitions/SchemaCollection" } }, "default": { @@ -2250,7 +2250,7 @@ "200": { "description": "Api Schema information.", "schema": { - "$ref": "#/definitions/SchemaContract" + "$ref": "./definitions.json#/definitions/SchemaContract" }, "headers": { "ETag": { @@ -2296,7 +2296,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SchemaContract" + "$ref": "./definitions.json#/definitions/SchemaContract" }, "description": "The schema contents to apply." }, @@ -2314,7 +2314,7 @@ "201": { "description": "Api schema configuration was successfully created.", "schema": { - "$ref": "#/definitions/SchemaContract" + "$ref": "./definitions.json#/definitions/SchemaContract" }, "headers": { "ETag": { @@ -2326,7 +2326,7 @@ "200": { "description": "Api schema configuration of the tenant was successfully updated.", "schema": { - "$ref": "#/definitions/SchemaContract" + "$ref": "./definitions.json#/definitions/SchemaContract" }, "headers": { "ETag": { @@ -2446,7 +2446,7 @@ "200": { "description": "Paged Result response of diagnostics for an API.", "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticCollection" + "$ref": "./definitions.json#/definitions/DiagnosticCollection" } }, "default": { @@ -2459,7 +2459,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "x-ms-odata": "./definitions.json#/definitions/DiagnosticContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}": { @@ -2547,7 +2547,7 @@ "200": { "description": "The response body contains the specified Diagnostic entity.", "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "headers": { "ETag": { @@ -2593,7 +2593,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "description": "Create parameters." }, @@ -2611,7 +2611,7 @@ "201": { "description": "Diagnostic was successfully created.", "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "headers": { "ETag": { @@ -2623,7 +2623,7 @@ "200": { "description": "Diagnostic was successfully updated.", "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "headers": { "ETag": { @@ -2669,7 +2669,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimdiagnostics.json#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "description": "Diagnostic Update parameters." }, @@ -2798,7 +2798,7 @@ "200": { "description": "Paged Result response of issues for the API.", "schema": { - "$ref": "#/definitions/IssueCollection" + "$ref": "./definitions.json#/definitions/IssueCollection" } }, "default": { @@ -2811,7 +2811,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/IssueContract" + "x-ms-odata": "./definitions.json#/definitions/IssueContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}": { @@ -2906,7 +2906,7 @@ "200": { "description": "The response body contains the specified Issue entity.", "schema": { - "$ref": "#/definitions/IssueContract" + "$ref": "./definitions.json#/definitions/IssueContract" }, "headers": { "ETag": { @@ -2952,7 +2952,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IssueContract" + "$ref": "./definitions.json#/definitions/IssueContract" }, "description": "Create parameters." }, @@ -2970,7 +2970,7 @@ "201": { "description": "New api issue successfully added", "schema": { - "$ref": "#/definitions/IssueContract" + "$ref": "./definitions.json#/definitions/IssueContract" }, "headers": { "ETag": { @@ -2982,7 +2982,7 @@ "200": { "description": "Api issue successfully updated", "schema": { - "$ref": "#/definitions/IssueContract" + "$ref": "./definitions.json#/definitions/IssueContract" }, "headers": { "ETag": { @@ -3028,7 +3028,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IssueUpdateContract" + "$ref": "./definitions.json#/definitions/IssueUpdateContract" }, "description": "Update parameters." }, @@ -3153,7 +3153,7 @@ "200": { "description": "Paged Result response of issue comments for the API.", "schema": { - "$ref": "#/definitions/IssueCommentCollection" + "$ref": "./definitions.json#/definitions/IssueCommentCollection" } }, "default": { @@ -3166,7 +3166,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/IssueCommentContract" + "x-ms-odata": "./definitions.json#/definitions/IssueCommentContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}": { @@ -3260,7 +3260,7 @@ "200": { "description": "The response body contains the specified issue Comment entity.", "schema": { - "$ref": "#/definitions/IssueCommentContract" + "$ref": "./definitions.json#/definitions/IssueCommentContract" }, "headers": { "ETag": { @@ -3309,7 +3309,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IssueCommentContract" + "$ref": "./definitions.json#/definitions/IssueCommentContract" }, "description": "Create parameters." }, @@ -3327,7 +3327,7 @@ "201": { "description": "New api issue comment successfully added", "schema": { - "$ref": "#/definitions/IssueCommentContract" + "$ref": "./definitions.json#/definitions/IssueCommentContract" }, "headers": { "ETag": { @@ -3339,7 +3339,7 @@ "200": { "description": "Api issue comment successfully updated", "schema": { - "$ref": "#/definitions/IssueCommentContract" + "$ref": "./definitions.json#/definitions/IssueCommentContract" }, "headers": { "ETag": { @@ -3458,7 +3458,7 @@ "200": { "description": "Paged Result response of issue attachments for the API.", "schema": { - "$ref": "#/definitions/IssueAttachmentCollection" + "$ref": "./definitions.json#/definitions/IssueAttachmentCollection" } }, "default": { @@ -3471,7 +3471,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/IssueAttachmentContract" + "x-ms-odata": "./definitions.json#/definitions/IssueAttachmentContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}": { @@ -3565,7 +3565,7 @@ "200": { "description": "The response body contains the specified issue Attachment entity.", "schema": { - "$ref": "#/definitions/IssueAttachmentContract" + "$ref": "./definitions.json#/definitions/IssueAttachmentContract" }, "headers": { "ETag": { @@ -3614,7 +3614,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IssueAttachmentContract" + "$ref": "./definitions.json#/definitions/IssueAttachmentContract" }, "description": "Create parameters." }, @@ -3632,7 +3632,7 @@ "201": { "description": "New api issue attachment successfully added", "schema": { - "$ref": "#/definitions/IssueAttachmentContract" + "$ref": "./definitions.json#/definitions/IssueAttachmentContract" }, "headers": { "ETag": { @@ -3644,7 +3644,7 @@ "200": { "description": "Api issue attachment successfully updated", "schema": { - "$ref": "#/definitions/IssueAttachmentContract" + "$ref": "./definitions.json#/definitions/IssueAttachmentContract" }, "headers": { "ETag": { @@ -3760,7 +3760,7 @@ "200": { "description": "The operation returns a collection of tagDescriptions associated with the Api entity.", "schema": { - "$ref": "./apimtags.json#/definitions/TagDescriptionCollection" + "$ref": "./definitions.json#/definitions/TagDescriptionCollection" } }, "default": { @@ -3773,7 +3773,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtags.json#/definitions/TagDescriptionContract" + "x-ms-odata": "./definitions.json#/definitions/TagDescriptionContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}": { @@ -3861,7 +3861,7 @@ "200": { "description": "Gets the description of the tag specified by its identifier in scope if the Api.", "schema": { - "$ref": "./apimtags.json#/definitions/TagDescriptionContract" + "$ref": "./definitions.json#/definitions/TagDescriptionContract" }, "headers": { "ETag": { @@ -3907,7 +3907,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimtags.json#/definitions/TagDescriptionCreateParameters" + "$ref": "./definitions.json#/definitions/TagDescriptionCreateParameters" }, "description": "Create parameters." }, @@ -3925,7 +3925,7 @@ "201": { "description": "Tag Description was created for the Api.", "schema": { - "$ref": "./apimtags.json#/definitions/TagDescriptionContract" + "$ref": "./definitions.json#/definitions/TagDescriptionContract" }, "headers": { "ETag": { @@ -3937,7 +3937,7 @@ "200": { "description": "Tag Description was updated for the Api.", "schema": { - "$ref": "./apimtags.json#/definitions/TagDescriptionContract" + "$ref": "./definitions.json#/definitions/TagDescriptionContract" }, "headers": { "ETag": { @@ -4050,7 +4050,7 @@ "200": { "description": "The operation returns a collection of tags associated with the Api entity.", "schema": { - "$ref": "./apimtags.json#/definitions/TagCollection" + "$ref": "./definitions.json#/definitions/TagCollection" } }, "default": { @@ -4063,7 +4063,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtags.json#/definitions/TagContract" + "x-ms-odata": "./definitions.json#/definitions/TagContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}": { @@ -4151,7 +4151,7 @@ "200": { "description": "Gets the details of the tag specified by its identifier.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -4203,7 +4203,7 @@ "201": { "description": "Tag was assigned to the Api.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -4215,7 +4215,7 @@ "200": { "description": "Tag is already assigned to the Api.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -4332,14 +4332,14 @@ "200": { "description": "Lists a collection of TagResource entities.", "schema": { - "$ref": "./apimtagresources.json#/definitions/TagResourceCollection" + "$ref": "./definitions.json#/definitions/TagResourceCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtagresources.json#/definitions/TagResourceContract" + "x-ms-odata": "./definitions.json#/definitions/TagResourceContract" } } }, @@ -4430,7 +4430,7 @@ "200": { "description": "The response contains a stream with a full set of API metadata and includes API entity with an embedded array of operation entities.", "schema": { - "$ref": "#/definitions/ApiExportResult" + "$ref": "./definitions.json#/definitions/ApiExportResult" } }, "default": { @@ -4443,1186 +4443,6 @@ } } }, - "definitions": { - "ApiExportResult": { - "properties": { - "link": { - "type": "string", - "description": "Link to the Storage Blob containing the result of the export operation. The Blob Uri is only valid for 5 minutes." - } - }, - "description": "API Export result Blob Uri." - }, - "ApiCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ApiContract" - }, - "description": "Page values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Api list representation." - }, - "ApiContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiContractProperties", - "description": "Api entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "API details." - }, - "ApiCreateOrUpdateParameter": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiCreateOrUpdateProperties", - "description": "Api entity create of update properties." - } - }, - "description": "API Create or Update Parameters." - }, - "ApiCreateOrUpdateProperties": { - "properties": { - "contentValue": { - "type": "string", - "description": "Content value when Importing an API." - }, - "contentFormat": { - "type": "string", - "description": "Format of the Content in which the API is getting imported.", - "enum": [ - "wadl-xml", - "wadl-link-json", - "swagger-json", - "swagger-link-json", - "wsdl", - "wsdl-link", - "openapi", - "openapi+json", - "openapi-link" - ], - "x-ms-enum": { - "name": "ContentFormat", - "modelAsString": true, - "values": [ - { - "value": "wadl-xml", - "description": "The contents are inline and Content type is a WADL document." - }, - { - "value": "wadl-link-json", - "description": "The WADL document is hosted on a publicly accessible internet address." - }, - { - "value": "swagger-json", - "description": "The contents are inline and Content Type is a OpenApi 2.0 Document." - }, - { - "value": "swagger-link-json", - "description": "The Open Api 2.0 document is hosted on a publicly accessible internet address." - }, - { - "value": "wsdl", - "description": "The contents are inline and the document is a WSDL/Soap document." - }, - { - "value": "wsdl-link", - "description": "The WSDL document is hosted on a publicly accessible internet address." - }, - { - "value": "openapi", - "description": "The contents are inline and Content Type is a OpenApi 3.0 Document in YAML format." - }, - { - "value": "openapi+json", - "description": "The contents are inline and Content Type is a OpenApi 3.0 Document in JSON format." - }, - { - "value": "openapi-link", - "description": "The Open Api 3.0 document is hosted on a publicly accessible internet address." - } - ] - } - }, - "wsdlSelector": { - "type": "object", - "description": "Criteria to limit import of WSDL to a subset of the document.", - "properties": { - "wsdlServiceName": { - "type": "string", - "description": "Name of service to import from WSDL" - }, - "wsdlEndpointName": { - "type": "string", - "description": "Name of endpoint(port) to import from WSDL" - } - } - }, - "apiType": { - "type": "string", - "description": "Type of Api to create. \n * `http` creates a SOAP to REST API \n * `soap` creates a SOAP pass-through API .", - "enum": [ - "http", - "soap" - ], - "x-ms-client-name": "SoapApiType", - "x-ms-enum": { - "name": "SoapApiType", - "modelAsString": true, - "values": [ - { - "value": "http", - "description": "Imports a SOAP API having a RESTful front end.", - "name": "SoapToRest" - }, - { - "value": "soap", - "description": "Imports the Soap API having a SOAP front end.", - "name": "SoapPassThrough" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/ApiContractProperties" - } - ], - "description": "Api Create or Update Properties." - }, - "ApiContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "API name.", - "minLength": 1, - "maxLength": 300 - }, - "serviceUrl": { - "type": "string", - "description": "Absolute URL of the backend service implementing this API.", - "minLength": 0, - "maxLength": 2000 - }, - "path": { - "type": "string", - "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", - "minLength": 0, - "maxLength": 400 - }, - "protocols": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "http", - "https" - ], - "x-ms-enum": { - "name": "Protocol", - "modelAsString": false - } - }, - "description": "Describes on which protocols the operations in this API can be invoked." - }, - "apiVersionSet": { - "$ref": "#/definitions/ApiVersionSetContractDetails" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ApiEntityBaseContract" - } - ], - "required": [ - "path" - ], - "description": "Api Entity Properties" - }, - "ApiUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiContractUpdateProperties", - "description": "Properties of the API entity that can be updated." - } - }, - "description": "API update contract details." - }, - "ApiContractUpdateProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "API name.", - "minLength": 1, - "maxLength": 300 - }, - "serviceUrl": { - "type": "string", - "description": "Absolute URL of the backend service implementing this API.", - "minLength": 1, - "maxLength": 2000 - }, - "path": { - "type": "string", - "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", - "minLength": 0, - "maxLength": 400 - }, - "protocols": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "http", - "https" - ], - "x-ms-enum": { - "name": "Protocol", - "modelAsString": false - } - }, - "description": "Describes on which protocols the operations in this API can be invoked." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ApiEntityBaseContract" - } - ], - "description": "API update contract properties." - }, - "ApiEntityBaseContract": { - "properties": { - "description": { - "type": "string", - "description": "Description of the API. May include HTML formatting tags." - }, - "authenticationSettings": { - "$ref": "#/definitions/AuthenticationSettingsContract", - "description": "Collection of authentication settings included into this API." - }, - "subscriptionKeyParameterNames": { - "$ref": "#/definitions/SubscriptionKeyParameterNamesContract", - "description": "Protocols over which API is made available." - }, - "type": { - "type": "string", - "description": "Type of API.", - "enum": [ - "http", - "soap" - ], - "x-ms-client-name": "ApiType", - "x-ms-enum": { - "name": "ApiType", - "modelAsString": true - } - }, - "apiRevision": { - "type": "string", - "description": "Describes the Revision of the Api. If no value is provided, default revision 1 is created", - "minLength": 1, - "maxLength": 100 - }, - "apiVersion": { - "type": "string", - "description": "Indicates the Version identifier of the API if the API is versioned", - "maxLength": 100 - }, - "isCurrent": { - "type": "boolean", - "description": "Indicates if API revision is current api revision.", - "readOnly": true - }, - "isOnline": { - "type": "boolean", - "description": "Indicates if API revision is accessible via the gateway.", - "readOnly": true - }, - "apiRevisionDescription": { - "type": "string", - "description": "Description of the Api Revision.", - "maxLength": 256 - }, - "apiVersionDescription": { - "type": "string", - "description": "Description of the Api Version.", - "maxLength": 256 - }, - "apiVersionSetId": { - "type": "string", - "description": "A resource identifier for the related ApiVersionSet." - }, - "subscriptionRequired": { - "type": "boolean", - "description": "Specifies whether an API or Product subscription is required for accessing the API." - } - }, - "description": "API base contract details." - }, - "ApiRevisionCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ApiRevisionContract" - }, - "description": "Page values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Api Revision list representation." - }, - "ApiRevisionContract": { - "properties": { - "apiId": { - "type": "string", - "readOnly": true, - "description": "Identifier of the API Revision." - }, - "apiRevision": { - "type": "string", - "minLength": 1, - "maxLength": 100, - "readOnly": true, - "description": "Revision number of API." - }, - "createdDateTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." - }, - "updatedDateTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." - }, - "description": { - "type": "string", - "readOnly": true, - "maxLength": 256, - "description": "Description of the API Revision." - }, - "privateUrl": { - "type": "string", - "readOnly": true, - "description": "Gateway URL for accessing the non-current API Revision." - }, - "isOnline": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if API revision is the current api revision." - }, - "isCurrent": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if API revision is accessible via the gateway." - } - }, - "description": "Summary of revision metadata." - }, - "ApiRevisionInfoContract": { - "description": "Object used to create an API Revision or Version based on an existing API Revision", - "properties": { - "sourceApiId": { - "type": "string", - "description": "Resource identifier of API to be used to create the revision from." - }, - "apiVersionName": { - "type": "string", - "maxLength": 100, - "description": "Version identifier for the new API Version." - }, - "apiRevisionDescription": { - "type": "string", - "maxLength": 256, - "description": "Description of new API Revision." - }, - "apiVersionSet": { - "description": "Version set details", - "$ref": "#/definitions/ApiVersionSetContractDetails" - } - } - }, - "ApiVersionSetContractDetails": { - "description": "An API Version Set contains the common configuration for a set of API Versions relating ", - "properties": { - "id": { - "type": "string", - "description": "Identifier for existing API Version Set. Omit this value to create a new Version Set." - }, - "description": { - "type": "string", - "description": "Description of API Version Set." - }, - "versioningScheme": { - "type": "string", - "description": "An value that determines where the API Version identifer will be located in a HTTP request.", - "enum": [ - "Segment", - "Query", - "Header" - ] - }, - "versionQueryName": { - "type": "string", - "description": "Name of query parameter that indicates the API Version if versioningScheme is set to `query`." - }, - "versionHeaderName": { - "type": "string", - "description": "Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`." - } - } - }, - "ApiReleaseCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ApiReleaseContract" - }, - "description": "Page values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Api Revision list representation." - }, - "ApiReleaseContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiReleaseContractProperties", - "description": "Properties of the Api Release Contract." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Api Release details." - }, - "ApiReleaseContractProperties": { - "description": "API Release details", - "properties": { - "apiId": { - "type": "string", - "description": "Identifier of the API the release belongs to." - }, - "createdDateTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." - }, - "updatedDateTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The time the API release was updated." - }, - "notes": { - "type": "string", - "description": "Release Notes" - } - } - }, - "AuthenticationSettingsContract": { - "properties": { - "oAuth2": { - "$ref": "#/definitions/OAuth2AuthenticationSettingsContract", - "description": "OAuth2 Authentication settings" - }, - "openid": { - "$ref": "#/definitions/OpenIdAuthenticationSettingsContract", - "description": "OpenID Connect Authentication Settings" - }, - "subscriptionKeyRequired": { - "type": "boolean", - "description": "Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products." - } - }, - "description": "API Authentication Settings." - }, - "OAuth2AuthenticationSettingsContract": { - "properties": { - "authorizationServerId": { - "type": "string", - "description": "OAuth authorization server identifier." - }, - "scope": { - "type": "string", - "description": "operations scope." - } - }, - "description": "API OAuth2 Authentication settings details." - }, - "OpenIdAuthenticationSettingsContract": { - "properties": { - "openidProviderId": { - "type": "string", - "description": "OAuth authorization server identifier." - }, - "bearerTokenSendingMethods": { - "description": "How to send token to the server.", - "type": "array", - "items": { - "$ref": "#/definitions/BearerTokenSendingMethodsContract" - } - } - }, - "description": "API OAuth2 Authentication settings details." - }, - "BearerTokenSendingMethodsContract": { - "type": "string", - "description": "Form of an authorization grant, which the client uses to request the access token.", - "enum": [ - "authorizationHeader", - "query" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "bearerTokenSendingMethods", - "values": [ - { - "value": "authorizationHeader", - "description": "Access token will be transmitted in the Authorization header using Bearer schema" - }, - { - "value": "query", - "description": "Access token will be transmitted as query parameters." - } - ] - } - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/OperationContract" - }, - "description": "Page values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Operation list representation." - }, - "OperationContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/OperationContractProperties", - "description": "Properties of the Operation Contract." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Api Operation details." - }, - "OperationContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Operation Name.", - "minLength": 1, - "maxLength": 300 - }, - "method": { - "type": "string", - "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", - "externalDocs": { - "description": "As defined by RFC.", - "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" - } - }, - "urlTemplate": { - "type": "string", - "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", - "minLength": 1, - "maxLength": 1000 - } - }, - "allOf": [ - { - "$ref": "#/definitions/OperationEntityBaseContract" - } - ], - "required": [ - "displayName", - "method", - "urlTemplate" - ], - "description": "Operation Contract Properties" - }, - "OperationUpdateContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Operation Name.", - "minLength": 1, - "maxLength": 300 - }, - "method": { - "type": "string", - "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", - "externalDocs": { - "description": "As defined by RFC.", - "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" - } - }, - "urlTemplate": { - "type": "string", - "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", - "minLength": 1, - "maxLength": 1000 - } - }, - "allOf": [ - { - "$ref": "#/definitions/OperationEntityBaseContract" - } - ], - "description": "Operation Update Contract Properties." - }, - "OperationEntityBaseContract": { - "properties": { - "templateParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/ParameterContract" - }, - "description": "Collection of URL template parameters." - }, - "description": { - "type": "string", - "description": "Description of the operation. May include HTML formatting tags.", - "maxLength": 1000 - }, - "request": { - "$ref": "#/definitions/RequestContract", - "description": "An entity containing request details." - }, - "responses": { - "type": "array", - "items": { - "$ref": "#/definitions/ResponseContract" - }, - "description": "Array of Operation responses." - }, - "policies": { - "type": "string", - "description": "Operation Policies" - } - }, - "description": "Api Operation Entity Base Contract details." - }, - "OperationUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/OperationUpdateContractProperties", - "description": "Properties of the API Operation entity that can be updated." - } - }, - "description": "Api Operation Update Contract details." - }, - "ParameterContract": { - "properties": { - "name": { - "type": "string", - "description": "Parameter name." - }, - "description": { - "type": "string", - "description": "Parameter description." - }, - "type": { - "type": "string", - "description": "Parameter type." - }, - "defaultValue": { - "type": "string", - "description": "Default parameter value." - }, - "required": { - "type": "boolean", - "description": "whether parameter is required or not." - }, - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Parameter values." - } - }, - "required": [ - "name", - "type" - ], - "description": "Operation parameters details." - }, - "RepresentationContract": { - "properties": { - "contentType": { - "type": "string", - "description": "Specifies a registered or custom content type for this representation, e.g. application/xml." - }, - "sample": { - "type": "string", - "description": "An example of the representation." - }, - "schemaId": { - "type": "string", - "description": "Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'." - }, - "typeName": { - "type": "string", - "description": "Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'." - }, - "formParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/ParameterContract" - }, - "description": "Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.." - } - }, - "required": [ - "contentType" - ], - "description": "Operation request/response representation details." - }, - "RequestContract": { - "properties": { - "description": { - "type": "string", - "description": "Operation request description." - }, - "queryParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/ParameterContract" - }, - "description": "Collection of operation request query parameters." - }, - "headers": { - "type": "array", - "items": { - "$ref": "#/definitions/ParameterContract" - }, - "description": "Collection of operation request headers." - }, - "representations": { - "type": "array", - "items": { - "$ref": "#/definitions/RepresentationContract" - }, - "description": "Collection of operation request representations." - } - }, - "description": "Operation request details." - }, - "ResponseContract": { - "properties": { - "statusCode": { - "type": "integer", - "format": "int32", - "description": "Operation response HTTP status code." - }, - "description": { - "type": "string", - "description": "Operation response description." - }, - "representations": { - "type": "array", - "items": { - "$ref": "#/definitions/RepresentationContract" - }, - "description": "Collection of operation response representations." - }, - "headers": { - "type": "array", - "items": { - "$ref": "#/definitions/ParameterContract" - }, - "description": "Collection of operation response headers." - } - }, - "required": [ - "statusCode" - ], - "description": "Operation response details." - }, - "SubscriptionKeyParameterNamesContract": { - "properties": { - "header": { - "type": "string", - "description": "Subscription key header name." - }, - "query": { - "type": "string", - "description": "Subscription key query string parameter name." - } - }, - "description": "Subscription key parameter names details.", - "example": { - "subscriptionKeyParameterNames": { - "query": "customQueryParameterName", - "header": "customHeaderParameterName" - } - } - }, - "SchemaCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaContract" - }, - "description": "Api Schema Contract value.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "The response of the list schema operation." - }, - "SchemaContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SchemaContractProperties", - "description": "Properties of the Schema." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Schema Contract details." - }, - "SchemaContractProperties": { - "properties": { - "contentType": { - "type": "string", - "description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml)." - }, - "document": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SchemaDocumentProperties", - "description": "Properties of the Schema Document." - } - }, - "required": [ - "contentType" - ], - "description": "Schema contract Properties." - }, - "SchemaDocumentProperties": { - "properties": { - "value": { - "type": "string", - "description": "Json escaped string defining the document representing the Schema." - } - }, - "description": "Schema Document Properties." - }, - "IssueCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/IssueContract" - }, - "description": "Issue values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Issue list representation." - }, - "IssueContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IssueContractProperties", - "description": "Properties of the Issue." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Issue Contract details." - }, - "IssueUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IssueUpdateContractProperties", - "description": "Issue entity Update contract properties." - } - }, - "description": "Issue update Parameters." - }, - "IssueContractProperties": { - "properties": { - "title": { - "type": "string", - "description": "The issue title." - }, - "description": { - "type": "string", - "description": "Text describing the issue." - }, - "userId": { - "type": "string", - "description": "A resource identifier for the user created the issue." - } - }, - "required": [ - "title", - "description", - "userId" - ], - "allOf": [ - { - "$ref": "#/definitions/IssueContractBaseProperties" - } - ], - "description": "Issue contract Properties." - }, - "IssueUpdateContractProperties": { - "properties": { - "title": { - "type": "string", - "description": "The issue title." - }, - "description": { - "type": "string", - "description": "Text describing the issue." - }, - "userId": { - "type": "string", - "description": "A resource identifier for the user created the issue." - } - }, - "allOf": [ - { - "$ref": "#/definitions/IssueContractBaseProperties" - } - ], - "description": "Issue contract Update Properties." - }, - "IssueContractBaseProperties": { - "properties": { - "createdDate": { - "type": "string", - "format": "date-time", - "description": "Date and time when the issue was created." - }, - "state": { - "type": "string", - "description": "Status of the issue.", - "enum": [ - "proposed", - "open", - "removed", - "resolved", - "closed" - ], - "x-ms-enum": { - "name": "State", - "modelAsString": true, - "values": [ - { - "value": "proposed", - "description": "The issue is proposed." - }, - { - "value": "open", - "description": "The issue is opened." - }, - { - "value": "removed", - "description": "The issue was removed." - }, - { - "value": "resolved", - "description": "The issue is now resolved." - }, - { - "value": "closed", - "description": "The issue was closed." - } - ] - } - }, - "apiId": { - "type": "string", - "description": "A resource identifier for the API the issue was created for." - } - }, - "description": "Issue contract Base Properties." - }, - "IssueCommentCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/IssueCommentContract" - }, - "description": "Issue Comment values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Issue Comment list representation." - }, - "IssueCommentContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IssueCommentContractProperties", - "description": "Properties of the Issue Comment." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Issue Comment Contract details." - }, - "IssueCommentContractProperties": { - "properties": { - "text": { - "type": "string", - "description": "Comment text." - }, - "createdDate": { - "type": "string", - "format": "date-time", - "description": "Date and time when the comment was created." - }, - "userId": { - "type": "string", - "description": "A resource identifier for the user who left the comment." - } - }, - "required": [ - "text", - "userId" - ], - "description": "Issue Comment contract Properties." - }, - "IssueAttachmentCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/IssueAttachmentContract" - }, - "description": "Issue Attachment values.", - "readOnly": true - }, - "nextLink": { - "type": "string", - "description": "Next page link if any.", - "readOnly": true - } - }, - "description": "Paged Issue Attachment list representation." - }, - "IssueAttachmentContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IssueAttachmentContractProperties", - "description": "Properties of the Issue Attachment." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Issue Attachment Contract details." - }, - "IssueAttachmentContractProperties": { - "properties": { - "title": { - "type": "string", - "description": "Filename by which the binary data will be saved." - }, - "contentFormat": { - "type": "string", - "description": "Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property." - }, - "content": { - "type": "string", - "description": "An HTTP link or Base64-encoded binary data." - } - }, - "required": [ - "title", - "contentFormat", - "content" - ], - "description": "Issue Attachment contract Properties." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapisByTags.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapisByTags.json index 0267b7243a38..cbc5694dfb84 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapisByTags.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapisByTags.json @@ -84,7 +84,7 @@ "200": { "description": "Lists a collection of TagResource entities.", "schema": { - "$ref": "./apimtagresources.json#/definitions/TagResourceCollection" + "$ref": "./definitions.json#/definitions/TagResourceCollection" } }, "default": { @@ -97,7 +97,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtagresources.json#/definitions/TagResourceContract" + "x-ms-odata": "./definitions.json#/definitions/TagResourceContract" } } }, diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json index a8cd4df082ec..5b3467b51251 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json @@ -77,7 +77,7 @@ "200": { "description": "Lists a collection of Api Version Set entities.", "schema": { - "$ref": "#/definitions/ApiVersionSetCollection" + "$ref": "./definitions.json#/definitions/ApiVersionSetCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ApiVersionSetContract" + "x-ms-odata": "./definitions.json#/definitions/ApiVersionSetContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}": { @@ -172,7 +172,7 @@ "200": { "description": "Gets the specified Api Version Set entity.", "schema": { - "$ref": "#/definitions/ApiVersionSetContract" + "$ref": "./definitions.json#/definitions/ApiVersionSetContract" }, "headers": { "ETag": { @@ -215,7 +215,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiVersionSetContract" + "$ref": "./definitions.json#/definitions/ApiVersionSetContract" }, "description": "Create or update parameters." }, @@ -233,7 +233,7 @@ "201": { "description": "Api Version Set was successfully created.", "schema": { - "$ref": "#/definitions/ApiVersionSetContract" + "$ref": "./definitions.json#/definitions/ApiVersionSetContract" }, "headers": { "ETag": { @@ -245,7 +245,7 @@ "200": { "description": "Api Version Set was successfully updated.", "schema": { - "$ref": "#/definitions/ApiVersionSetContract" + "$ref": "./definitions.json#/definitions/ApiVersionSetContract" }, "headers": { "ETag": { @@ -288,7 +288,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ApiVersionSetUpdateParameters" + "$ref": "./definitions.json#/definitions/ApiVersionSetUpdateParameters" }, "description": "Update parameters." }, @@ -362,160 +362,6 @@ } } }, - "definitions": { - "ApiVersionSetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ApiVersionSetContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Api Version Set list representation." - }, - "ApiVersionSetEntityBase": { - "properties": { - "description": { - "type": "string", - "description": "Description of API Version Set." - }, - "versionQueryName": { - "type": "string", - "description": "Name of query parameter that indicates the API Version if versioningScheme is set to `query`.", - "minLength": 1, - "maxLength": 100 - }, - "versionHeaderName": { - "type": "string", - "description": "Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.", - "minLength": 1, - "maxLength": 100 - } - }, - "description": "Api Version set base parameters" - }, - "ApiVersionSetContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Name of API Version Set", - "minLength": 1, - "maxLength": 100 - }, - "versioningScheme": { - "type": "string", - "description": "An value that determines where the API Version identifer will be located in a HTTP request.", - "enum": [ - "Segment", - "Query", - "Header" - ], - "x-ms-enum": { - "name": "versioningScheme", - "modelAsString": true, - "values": [ - { - "value": "Segment", - "description": "The API Version is passed in a path segment." - }, - { - "value": "Query", - "description": "The API Version is passed in a query parameter." - }, - { - "value": "Header", - "description": "The API Version is passed in a HTTP header." - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/ApiVersionSetEntityBase" - } - ], - "required": [ - "displayName", - "versioningScheme" - ], - "description": "Properties of an API Version Set." - }, - "ApiVersionSetContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiVersionSetContractProperties", - "description": "Api VersionSet contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Api Version Set Contract details." - }, - "ApiVersionSetUpdateParametersProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Name of API Version Set", - "minLength": 1, - "maxLength": 100 - }, - "versioningScheme": { - "type": "string", - "description": "An value that determines where the API Version identifer will be located in a HTTP request.", - "enum": [ - "Segment", - "Query", - "Header" - ], - "x-ms-enum": { - "name": "versioningScheme", - "modelAsString": true, - "values": [ - { - "value": "Segment", - "description": "The API Version is passed in a path segment." - }, - { - "value": "Query", - "description": "The API Version is passed in a query parameter." - }, - { - "value": "Header", - "description": "The API Version is passed in a HTTP header." - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/ApiVersionSetEntityBase" - } - ], - "description": "Properties used to create or update an API Version Set." - }, - "ApiVersionSetUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApiVersionSetUpdateParametersProperties", - "description": "Parameters to update or create an Api Version Set Contract." - } - }, - "description": "Parameters to update or create an Api Version Set Contract." - } - }, - "parameters": { - } + "definitions": { }, + "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimauthorizationservers.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimauthorizationservers.json index 11eb281c9c7b..b74bb40464d7 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimauthorizationservers.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimauthorizationservers.json @@ -77,7 +77,7 @@ "200": { "description": "A Collection of the Authorization Server entities for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/AuthorizationServerCollection" + "$ref": "./definitions.json#/definitions/AuthorizationServerCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/AuthorizationServerContract" + "x-ms-odata": "./definitions.json#/definitions/AuthorizationServerContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}": { @@ -172,7 +172,7 @@ "200": { "description": "Gets the details of the specified authorization server.", "schema": { - "$ref": "#/definitions/AuthorizationServerContract" + "$ref": "./definitions.json#/definitions/AuthorizationServerContract" }, "headers": { "ETag": { @@ -215,7 +215,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AuthorizationServerContract" + "$ref": "./definitions.json#/definitions/AuthorizationServerContract" }, "description": "Create or update parameters." }, @@ -239,7 +239,7 @@ } }, "schema": { - "$ref": "#/definitions/AuthorizationServerContract" + "$ref": "./definitions.json#/definitions/AuthorizationServerContract" } }, "200": { @@ -251,7 +251,7 @@ } }, "schema": { - "$ref": "#/definitions/AuthorizationServerContract" + "$ref": "./definitions.json#/definitions/AuthorizationServerContract" } }, "default": { @@ -288,7 +288,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AuthorizationServerUpdateContract" + "$ref": "./definitions.json#/definitions/AuthorizationServerUpdateContract" }, "description": "OAuth2 Server settings Update parameters." }, @@ -362,327 +362,6 @@ } } }, - "definitions": { - "AuthorizationServerCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AuthorizationServerContract" - }, - "description": "Page values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged OAuth2 Authorization Servers list representation." - }, - "AuthorizationServerContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AuthorizationServerContractProperties", - "description": "Properties of the External OAuth authorization server Contract." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "External OAuth authorization server settings." - }, - "AuthorizationServerContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "User-friendly authorization server name.", - "minLength": 1, - "maxLength": 50 - }, - "clientRegistrationEndpoint": { - "type": "string", - "description": "Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced." - }, - "authorizationEndpoint": { - "type": "string", - "description": "OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2." - }, - "grantTypes": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "authorizationCode", - "implicit", - "resourceOwnerPassword", - "clientCredentials" - ], - "x-ms-enum": { - "name": "GrantType", - "modelAsString": true, - "values": [ - { - "value": "authorizationCode", - "description": "Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1." - }, - { - "value": "implicit", - "description": "Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2." - }, - { - "value": "resourceOwnerPassword", - "description": "Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3." - }, - { - "value": "clientCredentials", - "description": "Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4." - } - ] - } - }, - "description": "Form of an authorization grant, which the client uses to request the access token.", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-4" - } - }, - "clientId": { - "type": "string", - "description": "Client or app id registered with this authorization server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AuthorizationServerContractBaseProperties" - } - ], - "required": [ - "displayName", - "clientRegistrationEndpoint", - "authorizationEndpoint", - "clientId", - "grantTypes" - ], - "description": "External OAuth authorization server settings Properties." - }, - "AuthorizationServerUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AuthorizationServerUpdateContractProperties", - "description": "Properties of the External OAuth authorization server update Contract." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "External OAuth authorization server settings." - }, - "AuthorizationServerUpdateContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "User-friendly authorization server name.", - "minLength": 1, - "maxLength": 50 - }, - "clientRegistrationEndpoint": { - "type": "string", - "description": "Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced." - }, - "authorizationEndpoint": { - "type": "string", - "description": "OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2." - }, - "grantTypes": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "authorizationCode", - "implicit", - "resourceOwnerPassword", - "clientCredentials" - ], - "x-ms-enum": { - "name": "GrantType", - "modelAsString": true, - "values": [ - { - "value": "authorizationCode", - "description": "Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1." - }, - { - "value": "implicit", - "description": "Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2." - }, - { - "value": "resourceOwnerPassword", - "description": "Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3." - }, - { - "value": "clientCredentials", - "description": "Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4." - } - ] - } - }, - "description": "Form of an authorization grant, which the client uses to request the access token.", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-4" - } - }, - "clientId": { - "type": "string", - "description": "Client or app id registered with this authorization server." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AuthorizationServerContractBaseProperties" - } - ], - "description": "External OAuth authorization server Update settings contract." - }, - "AuthorizationServerContractBaseProperties": { - "properties": { - "description": { - "type": "string", - "description": "Description of the authorization server. Can contain HTML formatting tags." - }, - "authorizationMethods": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ], - "x-ms-enum": { - "name": "AuthorizationMethod", - "modelAsString": false - } - }, - "description": "HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional." - }, - "clientAuthenticationMethod": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Basic", - "Body" - ], - "x-ms-enum": { - "name": "ClientAuthenticationMethod", - "modelAsString": true, - "values": [ - { - "value": "Basic", - "description": "Basic Client Authentication method." - }, - { - "value": "Body", - "description": "Body based Authentication method." - } - ] - } - }, - "description": "Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format." - }, - "tokenBodyParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/TokenBodyParameterContract" - }, - "description": "Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {\"name\" : \"name value\", \"value\": \"a value\"}." - }, - "tokenEndpoint": { - "type": "string", - "description": "OAuth token endpoint. Contains absolute URI to entity being referenced.", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-3.1" - } - }, - "supportState": { - "type": "boolean", - "description": "If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-3.1" - } - }, - "defaultScope": { - "type": "string", - "description": "Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-3.3" - } - }, - "bearerTokenSendingMethods": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "authorizationHeader", - "query" - ], - "x-ms-enum": { - "name": "BearerTokenSendingMethod", - "modelAsString": true - } - }, - "description": "Specifies the mechanism by which access token is passed to the API. ", - "externalDocs": { - "url": "http://tools.ietf.org/html/rfc6749#section-4" - } - }, - "clientSecret": { - "type": "string", - "description": "Client or app secret registered with this authorization server." - }, - "resourceOwnerUsername": { - "type": "string", - "description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username." - }, - "resourceOwnerPassword": { - "type": "string", - "description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password." - } - }, - "description": "External OAuth authorization server Update settings contract." - }, - "TokenBodyParameterContract": { - "properties": { - "name": { - "type": "string", - "description": "body parameter name." - }, - "value": { - "type": "string", - "description": "body parameter value." - } - }, - "required": [ - "name", - "value" - ], - "description": "OAuth acquire token request body parameter (www-url-form-encoded)." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimbackends.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimbackends.json index c50da34da2bb..72e964ee254e 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimbackends.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimbackends.json @@ -77,7 +77,7 @@ "200": { "description": "Lists a collection of Backend entities.", "schema": { - "$ref": "#/definitions/BackendCollection" + "$ref": "./definitions.json#/definitions/BackendCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/BackendContract" + "x-ms-odata": "./definitions.json#/definitions/BackendContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}": { @@ -172,7 +172,7 @@ "200": { "description": "The response body contains the specified Backend entity.", "schema": { - "$ref": "#/definitions/BackendContract" + "$ref": "./definitions.json#/definitions/BackendContract" }, "headers": { "ETag": { @@ -218,7 +218,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BackendContract" + "$ref": "./definitions.json#/definitions/BackendContract" }, "description": "Create parameters." }, @@ -242,7 +242,7 @@ } }, "schema": { - "$ref": "#/definitions/BackendContract" + "$ref": "./definitions.json#/definitions/BackendContract" } }, "200": { @@ -254,7 +254,7 @@ } }, "schema": { - "$ref": "#/definitions/BackendContract" + "$ref": "./definitions.json#/definitions/BackendContract" } }, "default": { @@ -291,7 +291,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BackendUpdateParameters" + "$ref": "./definitions.json#/definitions/BackendUpdateParameters" }, "description": "Update parameters." }, @@ -391,7 +391,7 @@ "in": "body", "required": false, "schema": { - "$ref": "#/definitions/BackendReconnectContract" + "$ref": "./definitions.json#/definitions/BackendReconnectContract" }, "description": "Reconnect request parameters." }, @@ -416,355 +416,6 @@ } } }, - "definitions": { - "BackendAuthorizationHeaderCredentials": { - "properties": { - "scheme": { - "type": "string", - "description": "Authentication Scheme name.", - "minLength": 1, - "maxLength": 100 - }, - "parameter": { - "type": "string", - "description": "Authentication Parameter value.", - "minLength": 1, - "maxLength": 300 - } - }, - "required": [ - "scheme", - "parameter" - ], - "description": "Authorization header information." - }, - "BackendBaseParameters": { - "properties": { - "title": { - "type": "string", - "description": "Backend Title.", - "minLength": 1, - "maxLength": 300 - }, - "description": { - "type": "string", - "description": "Backend Description.", - "minLength": 1, - "maxLength": 2000 - }, - "resourceId": { - "type": "string", - "description": "Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.", - "minLength": 1, - "maxLength": 2000 - }, - "properties": { - "$ref": "#/definitions/BackendProperties", - "description": "Backend Properties contract" - }, - "credentials": { - "$ref": "#/definitions/BackendCredentialsContract", - "description": "Backend Credentials Contract Properties" - }, - "proxy": { - "$ref": "#/definitions/BackendProxyContract", - "description": "Backend Proxy Contract Properties" - }, - "tls": { - "$ref": "#/definitions/BackendTlsProperties", - "description": "Backend TLS Properties" - } - }, - "description": "Backend entity base Parameter set." - }, - "BackendCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/BackendContract" - }, - "description": "Backend values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Backend list representation." - }, - "BackendContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BackendContractProperties", - "description": "Backend entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Backend details." - }, - "BackendContractProperties": { - "properties": { - "url": { - "type": "string", - "description": "Runtime Url of the Backend.", - "minLength": 1, - "maxLength": 2000 - }, - "protocol": { - "type": "string", - "enum": [ - "http", - "soap" - ], - "x-ms-enum": { - "name": "BackendProtocol", - "modelAsString": true, - "values": [ - { - "value": "http", - "description": "The Backend is a RESTful service." - }, - { - "value": "soap", - "description": "The Backend is a SOAP service." - } - ] - }, - "description": "Backend communication protocol." - } - }, - "allOf": [ - { - "$ref": "#/definitions/BackendBaseParameters" - } - ], - "required": [ - "url", - "protocol" - ], - "description": "Parameters supplied to the Create Backend operation." - }, - "BackendCredentialsContract": { - "properties": { - "certificate": { - "type": "array", - "items": { - "type": "string" - }, - "maxItems": 32, - "description": "List of Client Certificate Thumbprint." - }, - "query": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": "Query Parameter description." - }, - "header": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": "Header Parameter description." - }, - "authorization": { - "description": "Authorization header authentication", - "$ref": "#/definitions/BackendAuthorizationHeaderCredentials" - } - }, - "description": "Details of the Credentials used to connect to Backend." - }, - "BackendProperties": { - "properties": { - "serviceFabricCluster": { - "$ref": "#/definitions/BackendServiceFabricClusterProperties", - "description": "Backend Service Fabric Cluster Properties" - } - }, - "description": "Properties specific to the Backend Type." - }, - "BackendServiceFabricClusterProperties": { - "properties": { - "clientCertificatethumbprint": { - "description": "The client certificate thumbprint for the management endpoint.", - "type": "string" - }, - "maxPartitionResolutionRetries": { - "description": "Maximum number of retries while attempting resolve the partition.", - "format": "int32", - "type": "integer" - }, - "managementEndpoints": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The cluster management endpoint." - }, - "serverCertificateThumbprints": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Thumbprints of certificates cluster management service uses for tls communication" - }, - "serverX509Names": { - "type": "array", - "items": { - "$ref": "#/definitions/X509CertificateName" - }, - "description": "Server X509 Certificate Names Collection" - } - }, - "required": [ - "managementEndpoints", - "clientCertificatethumbprint" - ], - "description": "Properties of the Service Fabric Type Backend." - }, - "X509CertificateName": { - "properties": { - "name": { - "description": "Common Name of the Certificate.", - "type": "string" - }, - "issuerCertificateThumbprint": { - "description": "Thumbprint for the Issuer of the Certificate.", - "type": "string" - } - }, - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-windows-cluster-x509-security" - }, - "description": "Properties of server X509Names." - }, - "BackendTlsProperties": { - "properties": { - "validateCertificateChain": { - "description": "Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.", - "type": "boolean", - "default": true - }, - "validateCertificateName": { - "description": "Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.", - "type": "boolean", - "default": true - } - }, - "description": "Properties controlling TLS Certificate Validation." - }, - "BackendProxyContract": { - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/system.net.webproxy(v=vs.110).aspx", - "description": "Backend entity uses these details to connect to a WebProxy." - }, - "properties": { - "url": { - "type": "string", - "description": "WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.", - "minLength": 1, - "maxLength": 2000 - }, - "username": { - "type": "string", - "description": "Username to connect to the WebProxy server" - }, - "password": { - "type": "string", - "description": "Password to connect to the WebProxy Server" - } - }, - "required": [ - "url" - ], - "description": "Details of the Backend WebProxy Server to use in the Request to Backend." - }, - "BackendUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BackendUpdateParameterProperties", - "description": "Backend entity update contract properties." - } - }, - "description": "Backend update parameters." - }, - "BackendUpdateParameterProperties": { - "properties": { - "url": { - "type": "string", - "description": "Runtime Url of the Backend.", - "minLength": 1, - "maxLength": 2000 - }, - "protocol": { - "type": "string", - "enum": [ - "http", - "soap" - ], - "x-ms-enum": { - "name": "BackendProtocol", - "modelAsString": true, - "values": [ - { - "value": "http", - "description": "The Backend is a RESTful service." - }, - { - "value": "soap", - "description": "The Backend is a SOAP service." - } - ] - }, - "description": "Backend communication protocol." - } - }, - "allOf": [ - { - "$ref": "#/definitions/BackendBaseParameters" - } - ], - "description": "Parameters supplied to the Update Backend operation." - }, - "BackendReconnectContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BackendReconnectProperties", - "description": "Reconnect request properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Reconnect request parameters." - }, - "BackendReconnectProperties": { - "properties": { - "after": { - "type": "string", - "format": "duration", - "description": "Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M." - } - }, - "description": "Properties to control reconnect requests." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcaches.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcaches.json index f3bd7bae16da..b34f4356304f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcaches.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcaches.json @@ -70,7 +70,7 @@ "200": { "description": "Returns a collection of Cache entity.", "schema": { - "$ref": "#/definitions/CacheCollection" + "$ref": "./definitions.json#/definitions/CacheCollection" } }, "default": { @@ -83,7 +83,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/CacheContract" + "x-ms-odata": "./definitions.json#/definitions/CacheContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}": { @@ -165,7 +165,7 @@ "200": { "description": "The response body contains the specified Cache entity.", "schema": { - "$ref": "#/definitions/CacheContract" + "$ref": "./definitions.json#/definitions/CacheContract" }, "headers": { "ETag": { @@ -212,7 +212,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CacheContract" + "$ref": "./definitions.json#/definitions/CacheContract" }, "description": "Create or Update parameters." }, @@ -236,7 +236,7 @@ } }, "schema": { - "$ref": "#/definitions/CacheContract" + "$ref": "./definitions.json#/definitions/CacheContract" } }, "200": { @@ -248,7 +248,7 @@ } }, "schema": { - "$ref": "#/definitions/CacheContract" + "$ref": "./definitions.json#/definitions/CacheContract" } }, "default": { @@ -285,7 +285,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CacheUpdateParameters" + "$ref": "./definitions.json#/definitions/CacheUpdateParameters" }, "description": "Update parameters." }, @@ -359,92 +359,7 @@ } } }, - "definitions": { - "CacheCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/CacheContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Caches list representation." - }, - "CacheContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CacheContractProperties", - "description": "Cache properties details." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Cache details." - }, - "CacheContractProperties": { - "properties": { - "description": { - "type": "string", - "description": "Cache description", - "maxLength": 2000 - }, - "connectionString": { - "type": "string", - "description": "Runtime connection string to cache", - "maxLength": 300 - }, - "resourceId": { - "type": "string", - "description": "Original uri of entity in external system cache points to", - "maxLength": 2000 - } - }, - "required": [ - "connectionString" - ], - "description": "Properties of the Cache contract." - }, - "CacheUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CacheUpdateProperties", - "description": "Cache update properties details." - } - }, - "description": "Cache update details." - }, - "CacheUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Cache description", - "maxLength": 2000 - }, - "connectionString": { - "type": "string", - "description": "Runtime connection string to cache", - "maxLength": 300 - }, - "resourceId": { - "type": "string", - "description": "Original uri of entity in external system cache points to", - "maxLength": 2000 - } - }, - "description": "Parameters supplied to the Update Cache operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcertificates.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcertificates.json index 2afaabe353c0..6c8cdaa0f036 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcertificates.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcertificates.json @@ -77,7 +77,7 @@ "200": { "description": "Returns a collection of Certificate entity.", "schema": { - "$ref": "#/definitions/CertificateCollection" + "$ref": "./definitions.json#/definitions/CertificateCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/CertificateContract" + "x-ms-odata": "./definitions.json#/definitions/CertificateContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}": { @@ -172,7 +172,7 @@ "200": { "description": "The response body contains the specified Certificate entity.", "schema": { - "$ref": "#/definitions/CertificateContract" + "$ref": "./definitions.json#/definitions/CertificateContract" }, "headers": { "ETag": { @@ -219,7 +219,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CertificateCreateOrUpdateParameters" + "$ref": "./definitions.json#/definitions/CertificateCreateOrUpdateParameters" }, "description": "Create or Update parameters." }, @@ -243,7 +243,7 @@ } }, "schema": { - "$ref": "#/definitions/CertificateContract" + "$ref": "./definitions.json#/definitions/CertificateContract" } }, "200": { @@ -255,7 +255,7 @@ } }, "schema": { - "$ref": "#/definitions/CertificateContract" + "$ref": "./definitions.json#/definitions/CertificateContract" } }, "default": { @@ -314,88 +314,6 @@ } } }, - "definitions": { - "CertificateCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/CertificateContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Certificates list representation." - }, - "CertificateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CertificateContractProperties", - "description": "Certificate properties details." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Certificate details." - }, - "CertificateContractProperties": { - "properties": { - "subject": { - "type": "string", - "description": "Subject attribute of the certificate." - }, - "thumbprint": { - "type": "string", - "description": "Thumbprint of the certificate." - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - } - }, - "required": [ - "subject", - "thumbprint", - "expirationDate" - ], - "description": "Properties of the Certificate contract." - }, - "CertificateCreateOrUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CertificateCreateOrUpdateProperties", - "description": "Certificate create or update properties details." - } - }, - "description": "Certificate create or update details." - }, - "CertificateCreateOrUpdateProperties": { - "properties": { - "data": { - "type": "string", - "description": "Base 64 encoded certificate using the application/x-pkcs12 representation." - }, - "password": { - "type": "string", - "description": "Password for the Certificate" - } - }, - "required": [ - "data", - "password" - ], - "description": "Parameters supplied to the CreateOrUpdate certificate operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdiagnostics.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdiagnostics.json index 2eff9e43f702..eac8784d5630 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdiagnostics.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdiagnostics.json @@ -77,7 +77,7 @@ "200": { "description": "Paged Result response of diagnostics.", "schema": { - "$ref": "#/definitions/DiagnosticCollection" + "$ref": "./definitions.json#/definitions/DiagnosticCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/DiagnosticContract" + "x-ms-odata": "./definitions.json#/definitions/DiagnosticContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}": { @@ -178,7 +178,7 @@ } }, "schema": { - "$ref": "#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" } }, "default": { @@ -215,7 +215,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "description": "Create parameters." }, @@ -239,7 +239,7 @@ } }, "schema": { - "$ref": "#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" } }, "200": { @@ -251,7 +251,7 @@ } }, "schema": { - "$ref": "#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" } }, "default": { @@ -288,7 +288,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DiagnosticContract" + "$ref": "./definitions.json#/definitions/DiagnosticContract" }, "description": "Diagnostic Update parameters." }, @@ -362,152 +362,6 @@ } } }, - "definitions": { - "DiagnosticCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DiagnosticContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Diagnostic list representation." - }, - "DiagnosticContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DiagnosticContractProperties", - "description": "Diagnostic entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Diagnostic details." - }, - "SamplingSettings": { - "properties": { - "samplingType": { - "type": "string", - "description": "Sampling type.", - "enum": [ - "fixed" - ], - "x-ms-enum": { - "name": "SamplingType", - "modelAsString": true, - "values": [ - { - "value": "fixed", - "description": "Fixed-rate sampling." - } - ] - } - }, - "percentage": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100, - "description": "Rate of sampling for fixed-rate sampling." - } - }, - "description": "Sampling settings for Diagnostic." - }, - "PipelineDiagnosticSettings": { - "properties": { - "request": { - "$ref": "#/definitions/HttpMessageDiagnostic", - "description": "Diagnostic settings for request." - }, - "response": { - "$ref": "#/definitions/HttpMessageDiagnostic", - "description": "Diagnostic settings for response." - } - }, - "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Gateway." - }, - "HttpMessageDiagnostic": { - "properties": { - "headers": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array of HTTP Headers to log." - }, - "body": { - "$ref": "#/definitions/BodyDiagnosticSettings", - "description": "Body logging settings." - } - }, - "description": "Http message diagnostic settings." - }, - "BodyDiagnosticSettings": { - "properties": { - "bytes": { - "type": "integer", - "format": "int32", - "maximum": 8192, - "description": "Number of request body bytes to log." - } - }, - "description": "Body logging settings." - }, - "DiagnosticContractProperties": { - "properties": { - "alwaysLog": { - "type": "string", - "enum": [ - "allErrors" - ], - "x-ms-enum": { - "name": "AlwaysLog", - "modelAsString": true, - "values": [ - { - "value": "allErrors", - "description": "Always log all erroneous request regardless of sampling settings." - } - ] - }, - "description": "Specifies for what type of messages sampling settings should not apply." - }, - "loggerId": { - "type": "string", - "description": "Resource Id of a target logger." - }, - "sampling": { - "$ref": "#/definitions/SamplingSettings", - "description": "Sampling settings for Diagnostic." - }, - "frontend": { - "$ref": "#/definitions/PipelineDiagnosticSettings", - "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Gateway." - }, - "backend": { - "$ref": "#/definitions/PipelineDiagnosticSettings", - "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Backend" - }, - "enableHttpCorrelationHeaders": { - "type": "boolean", - "description": "Whether to process Correlation Headers coming to Api Management Service. Only applicable to Application Insights diagnostics. Default is true." - } - }, - "required": [ - "loggerId" - ], - "description": "Diagnostic Entity Properties" - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimemailtemplates.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimemailtemplates.json index 43f937e0a87d..bb8d91a4d6de 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimemailtemplates.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimemailtemplates.json @@ -77,7 +77,7 @@ "200": { "description": "A Collection of the Email Template for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/EmailTemplateCollection" + "$ref": "./definitions.json#/definitions/EmailTemplateCollection" } }, "default": { @@ -171,7 +171,7 @@ "200": { "description": "The response body contains the specified Email template.", "schema": { - "$ref": "#/definitions/EmailTemplateContract" + "$ref": "./definitions.json#/definitions/EmailTemplateContract" }, "headers": { "ETag": { @@ -214,7 +214,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/EmailTemplateUpdateParameters" + "$ref": "./definitions.json#/definitions/EmailTemplateUpdateParameters" }, "description": "Email Template update parameters." }, @@ -232,13 +232,13 @@ "201": { "description": "Email Template was successfully updated.", "schema": { - "$ref": "#/definitions/EmailTemplateContract" + "$ref": "./definitions.json#/definitions/EmailTemplateContract" } }, "200": { "description": "Email Template was successfully updated.", "schema": { - "$ref": "#/definitions/EmailTemplateContract" + "$ref": "./definitions.json#/definitions/EmailTemplateContract" } }, "default": { @@ -275,7 +275,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/EmailTemplateUpdateParameters" + "$ref": "./definitions.json#/definitions/EmailTemplateUpdateParameters" }, "description": "Update parameters." }, @@ -346,144 +346,6 @@ } } }, - "definitions": { - "EmailTemplateCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailTemplateContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged email template list representation." - }, - "EmailTemplateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EmailTemplateContractProperties", - "description": "Email Template entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Email Template details." - }, - "EmailTemplateContractProperties": { - "properties": { - "subject": { - "type": "string", - "description": "Subject of the Template.", - "minLength": 1, - "maxLength": 1000 - }, - "body": { - "type": "string", - "description": "Email Template Body. This should be a valid XDocument", - "minLength": 1 - }, - "title": { - "type": "string", - "description": "Title of the Template." - }, - "description": { - "type": "string", - "description": "Description of the Email Template." - }, - "isDefault": { - "type": "boolean", - "description": "Whether the template is the default template provided by Api Management or has been edited.", - "readOnly": true - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailTemplateParametersContractProperties" - }, - "description": "Email Template Parameter values." - } - }, - "required": [ - "body", - "subject" - ], - "description": "Email Template Contract properties." - }, - "EmailTemplateUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EmailTemplateUpdateParameterProperties", - "description": "Email Template Update contract properties." - } - }, - "description": "Email Template update Parameters." - }, - "EmailTemplateUpdateParameterProperties": { - "properties": { - "subject": { - "type": "string", - "description": "Subject of the Template.", - "minLength": 1, - "maxLength": 1000 - }, - "title": { - "type": "string", - "description": "Title of the Template." - }, - "description": { - "type": "string", - "description": "Description of the Email Template." - }, - "body": { - "type": "string", - "description": "Email Template Body. This should be a valid XDocument", - "minLength": 1 - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailTemplateParametersContractProperties" - }, - "description": "Email Template Parameter values." - } - }, - "description": "Email Template Update Contract properties." - }, - "EmailTemplateParametersContractProperties": { - "properties": { - "name": { - "type": "string", - "description": "Template parameter name.", - "minLength": 1, - "maxLength": 256, - "pattern": "^[A-Za-z0-9-._]+$" - }, - "title": { - "type": "string", - "description": "Template parameter title.", - "minLength": 1, - "maxLength": 4096 - }, - "description": { - "type": "string", - "description": "Template parameter description.", - "minLength": 1, - "maxLength": 256, - "pattern": "^[A-Za-z0-9-._]+$" - } - }, - "description": "Email Template Parameter contract." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimgroups.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimgroups.json index 1df4931e2051..d32af6f27ca5 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimgroups.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimgroups.json @@ -80,7 +80,7 @@ "200": { "description": "Lists a collection of Group entities.", "schema": { - "$ref": "#/definitions/GroupCollection" + "$ref": "./definitions.json#/definitions/GroupCollection" } }, "default": { @@ -93,7 +93,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/GroupContract" + "x-ms-odata": "./definitions.json#/definitions/GroupContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}": { @@ -175,7 +175,7 @@ "200": { "description": "The response body contains the specified Group entity.", "schema": { - "$ref": "#/definitions/GroupContract" + "$ref": "./definitions.json#/definitions/GroupContract" }, "headers": { "ETag": { @@ -221,7 +221,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/GroupCreateParameters" + "$ref": "./definitions.json#/definitions/GroupCreateParameters" }, "description": "Create parameters." }, @@ -239,7 +239,7 @@ "201": { "description": "Group was created successfully.", "schema": { - "$ref": "#/definitions/GroupContract" + "$ref": "./definitions.json#/definitions/GroupContract" }, "headers": { "ETag": { @@ -251,7 +251,7 @@ "200": { "description": "Group already exists.", "schema": { - "$ref": "#/definitions/GroupContract" + "$ref": "./definitions.json#/definitions/GroupContract" }, "headers": { "ETag": { @@ -294,7 +294,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/GroupUpdateParameters" + "$ref": "./definitions.json#/definitions/GroupUpdateParameters" }, "description": "Update parameters." }, @@ -413,7 +413,7 @@ "200": { "description": "Lists a collection of user entities associated with the group.", "schema": { - "$ref": "./apimusers.json#/definitions/UserCollection" + "$ref": "./definitions.json#/definitions/UserCollection" } }, "default": { @@ -426,7 +426,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimusers.json#/definitions/UserContract" + "x-ms-odata": "./definitions.json#/definitions/UserContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}": { @@ -511,13 +511,13 @@ "201": { "description": "The user was successfully added to the group.", "schema": { - "$ref": "./apimusers.json#/definitions/UserContract" + "$ref": "./definitions.json#/definitions/UserContract" } }, "200": { "description": "The specified user is already a member of the specified group.", "schema": { - "$ref": "./apimusers.json#/definitions/UserContract" + "$ref": "./definitions.json#/definitions/UserContract" } }, "default": { @@ -576,166 +576,6 @@ } } }, - "definitions": { - "GroupCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/GroupContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Group list representation." - }, - "GroupContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GroupContractProperties", - "description": "Group entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Contract details." - }, - "GroupContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Group name.", - "maxLength": 300, - "minLength": 1 - }, - "description": { - "type": "string", - "description": "Group description. Can contain HTML formatting tags.", - "maxLength": 1000 - }, - "builtIn": { - "readOnly": true, - "type": "boolean", - "description": "true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false." - }, - "type": { - "type": "string", - "description": "Group type.", - "enum": [ - "custom", - "system", - "external" - ], - "x-ms-enum": { - "name": "GroupType", - "modelAsString": false - } - }, - "externalId": { - "type": "string", - "description": "For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." - } - }, - "required": [ - "displayName" - ], - "description": "Group contract Properties." - }, - "GroupCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GroupCreateParametersProperties", - "description": "Properties supplied to Create Group operation." - } - }, - "description": "Parameters supplied to the Create Group operation." - }, - "GroupCreateParametersProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Group name.", - "maxLength": 300, - "minLength": 1 - }, - "description": { - "type": "string", - "description": "Group description." - }, - "type": { - "type": "string", - "description": "Group type.", - "enum": [ - "custom", - "system", - "external" - ], - "x-ms-enum": { - "name": "GroupType", - "modelAsString": false - } - }, - "externalId": { - "type": "string", - "description": "Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." - } - }, - "required": [ - "displayName" - ], - "description": "Parameters supplied to the Create Group operation." - }, - "GroupUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GroupUpdateParametersProperties", - "description": "Group entity update contract properties." - } - }, - "description": "Parameters supplied to the Update Group operation." - }, - "GroupUpdateParametersProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Group name.", - "maxLength": 300, - "minLength": 1 - }, - "description": { - "type": "string", - "description": "Group description." - }, - "type": { - "type": "string", - "description": "Group type.", - "enum": [ - "custom", - "system", - "external" - ], - "x-ms-enum": { - "name": "GroupType", - "modelAsString": false - } - }, - "externalId": { - "type": "string", - "description": "Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." - } - }, - "description": "Parameters supplied to the Update Group operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimidentityprovider.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimidentityprovider.json index 8fe405c2f213..f6c96ecf5f15 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimidentityprovider.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimidentityprovider.json @@ -67,7 +67,7 @@ "200": { "description": "Lists a collection of Identity Providers.", "schema": { - "$ref": "#/definitions/IdentityProviderList" + "$ref": "./definitions.json#/definitions/IdentityProviderList" } }, "default": { @@ -161,7 +161,7 @@ "200": { "description": "The response body contains the specified IdentityProvider entity configuration details.", "schema": { - "$ref": "#/definitions/IdentityProviderContract" + "$ref": "./definitions.json#/definitions/IdentityProviderContract" }, "headers": { "ETag": { @@ -204,7 +204,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IdentityProviderContract" + "$ref": "./definitions.json#/definitions/IdentityProviderContract" }, "description": "Create parameters." }, @@ -228,7 +228,7 @@ } }, "schema": { - "$ref": "#/definitions/IdentityProviderContract" + "$ref": "./definitions.json#/definitions/IdentityProviderContract" } }, "200": { @@ -240,7 +240,7 @@ } }, "schema": { - "$ref": "#/definitions/IdentityProviderContract" + "$ref": "./definitions.json#/definitions/IdentityProviderContract" } }, "default": { @@ -277,7 +277,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/IdentityProviderUpdateParameters" + "$ref": "./definitions.json#/definitions/IdentityProviderUpdateParameters" }, "description": "Update parameters." }, @@ -351,171 +351,6 @@ } } }, - "definitions": { - "IdentityProviderContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IdentityProviderContractProperties", - "description": "Identity Provider contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Identity Provider details." - }, - "IdentityProviderContractProperties": { - "properties": { - "clientId": { - "type": "string", - "description": "Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.", - "minLength": 1 - }, - "clientSecret": { - "type": "string", - "description": "Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.", - "minLength": 1 - } - }, - "allOf": [ - { - "$ref": "#/definitions/IdentityProviderBaseParameters" - } - ], - "required": [ - "clientId", - "clientSecret" - ], - "description": "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users." - }, - "IdentityProviderList": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/IdentityProviderContract" - }, - "description": "Identity Provider configuration values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "List of all the Identity Providers configured on the service instance." - }, - "IdentityProviderUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IdentityProviderUpdateProperties", - "description": "Identity Provider update properties." - } - }, - "description": "Parameters supplied to update Identity Provider" - }, - "IdentityProviderUpdateProperties": { - "properties": { - "clientId": { - "type": "string", - "description": "Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.", - "minLength": 1 - }, - "clientSecret": { - "type": "string", - "description": "Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.", - "minLength": 1 - } - }, - "allOf": [ - { - "$ref": "#/definitions/IdentityProviderBaseParameters" - } - ], - "description": "Parameters supplied to the Update Identity Provider operation." - }, - "IdentityProviderBaseParameters": { - "properties": { - "type": { - "type": "string", - "enum": [ - "facebook", - "google", - "microsoft", - "twitter", - "aad", - "aadB2C" - ], - "x-ms-enum": { - "name": "IdentityProviderType", - "modelAsString": true, - "values": [ - { - "value": "facebook", - "description": "Facebook as Identity provider." - }, - { - "value": "google", - "description": "Google as Identity provider." - }, - { - "value": "microsoft", - "description": "Microsoft Live as Identity provider." - }, - { - "value": "twitter", - "description": "Twitter as Identity provider." - }, - { - "value": "aad", - "description": "Azure Active Directory as Identity provider." - }, - { - "value": "aadB2C", - "description": "Azure Active Directory B2C as Identity provider." - } - ] - }, - "description": "Identity Provider Type identifier." - }, - "allowedTenants": { - "type": "array", - "items": { - "type": "string" - }, - "maxItems": 32, - "description": "List of Allowed Tenants when configuring Azure Active Directory login." - }, - "authority":{ - "type": "string", - "description": "OpenID Connect discovery endpoint hostname for AAD or AAD B2C." - }, - "signupPolicyName": { - "type": "string", - "description": "Signup Policy Name. Only applies to AAD B2C Identity Provider.", - "minLength": 1 - }, - "signinPolicyName": { - "type": "string", - "description": "Signin Policy Name. Only applies to AAD B2C Identity Provider.", - "minLength": 1 - }, - "profileEditingPolicyName": { - "type": "string", - "description": "Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.", - "minLength": 1 - }, - "passwordResetPolicyName": { - "type": "string", - "description": "Password Reset Policy Name. Only applies to AAD B2C Identity Provider.", - "minLength": 1 - } - }, - "description": "Identity Provider Base Parameter Properties." - } - }, - "parameters": { } + "definitions": { }, + "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimissues.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimissues.json index 8a03fe6a04e1..e06b937af131 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimissues.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimissues.json @@ -77,7 +77,7 @@ "200": { "description": "Lists a collection of Issue entities.", "schema": { - "$ref": "./apimapis.json#/definitions/IssueCollection" + "$ref": "./definitions.json#/definitions/IssueCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimapis.json#/definitions/IssueContract" + "x-ms-odata": "./definitions.json#/definitions/IssueContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}": { @@ -126,7 +126,7 @@ "200": { "description": "Get the details of the issue.", "schema": { - "$ref": "./apimapis.json#/definitions/IssueContract" + "$ref": "./definitions.json#/definitions/IssueContract" }, "headers": { "ETag": { diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimloggers.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimloggers.json index 5ea7e2d338d5..58b205a58307 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimloggers.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimloggers.json @@ -80,7 +80,7 @@ "200": { "description": "Lists a collection of Logger entities.", "schema": { - "$ref": "#/definitions/LoggerCollection" + "$ref": "./definitions.json#/definitions/LoggerCollection" } }, "default": { @@ -93,7 +93,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/LoggerContract" + "x-ms-odata": "./definitions.json#/definitions/LoggerContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}": { @@ -175,7 +175,7 @@ "200": { "description": "The response body contains the specified Logger entity.", "schema": { - "$ref": "#/definitions/LoggerContract" + "$ref": "./definitions.json#/definitions/LoggerContract" }, "headers": { "ETag": { @@ -221,7 +221,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/LoggerContract" + "$ref": "./definitions.json#/definitions/LoggerContract" }, "description": "Create parameters." }, @@ -239,7 +239,7 @@ "201": { "description": "Logger was successfully created.", "schema": { - "$ref": "#/definitions/LoggerContract" + "$ref": "./definitions.json#/definitions/LoggerContract" }, "headers": { "ETag": { @@ -251,7 +251,7 @@ "200": { "description": "The existing logger was successfully updated.", "schema": { - "$ref": "#/definitions/LoggerContract" + "$ref": "./definitions.json#/definitions/LoggerContract" }, "headers": { "ETag": { @@ -294,7 +294,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/LoggerUpdateContract" + "$ref": "./definitions.json#/definitions/LoggerUpdateContract" }, "description": "Update parameters." }, @@ -375,150 +375,6 @@ } } }, - "definitions": { - "LoggerCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LoggerContract" - }, - "description": "Logger values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Logger list representation." - }, - "LoggerContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LoggerContractProperties", - "description": "Logger entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Logger details." - }, - "LoggerContractProperties": { - "properties": { - "loggerType": { - "type": "string", - "description": "Logger type.", - "enum": [ - "azureEventHub", - "applicationInsights" - ], - "x-ms-enum": { - "name": "LoggerType", - "modelAsString": true, - "values": [ - { - "value": "azureEventHub", - "description": "Azure Event Hub as log destination." - }, - { - "value": "applicationInsights", - "description": "Azure Application Insights as log destination." - } - ] - } - }, - "description": { - "type": "string", - "description": "Logger description.", - "maxLength": 256 - }, - "credentials": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The name and SendRule connection string of the event hub for azureEventHub logger.\nInstrumentation key for applicationInsights logger.", - "example": { - "name": "apim", - "connectionString": "Endpoint=sb://contoso-ns.servicebus.windows.net/;SharedAccessKeyName=Sender;SharedAccessKey=..." - } - }, - "isBuffered": { - "type": "boolean", - "description": "Whether records are buffered in the logger before publishing. Default is assumed to be true." - }, - "resourceId": { - "type": "string", - "description": "Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource)." - } - }, - "required": [ - "loggerType", - "credentials" - ], - "description": "The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs." - }, - "LoggerUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LoggerUpdateParameters", - "description": "Logger entity update contract properties." - } - }, - "description": "Logger update contract." - }, - "LoggerUpdateParameters": { - "properties": { - "loggerType": { - "type": "string", - "description": "Logger type.", - "enum": [ - "azureEventHub", - "applicationInsights" - ], - "x-ms-enum": { - "name": "LoggerType", - "modelAsString": true, - "values": [ - { - "value": "azureEventHub", - "description": "Azure Event Hub as log destination." - }, - { - "value": "applicationInsights", - "description": "Azure Application Insights as log destination." - } - ] - } - }, - "description": { - "type": "string", - "description": "Logger description." - }, - "credentials": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Logger credentials." - }, - "isBuffered": { - "type": "boolean", - "description": "Whether records are buffered in the logger before publishing. Default is assumed to be true." - } - }, - "description": "Parameters supplied to the Update Logger operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnotifications.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnotifications.json index 23de7e96bf19..60208669a6ce 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnotifications.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnotifications.json @@ -70,7 +70,7 @@ "200": { "description": "A Collection of the Notification for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/NotificationCollection" + "$ref": "./definitions.json#/definitions/NotificationCollection" } }, "default": { @@ -118,7 +118,7 @@ "200": { "description": "The response body contains the specified Notification.", "schema": { - "$ref": "#/definitions/NotificationContract" + "$ref": "./definitions.json#/definitions/NotificationContract" } }, "default": { @@ -164,7 +164,7 @@ "200": { "description": "Notification was successfully updated.", "schema": { - "$ref": "#/definitions/NotificationContract" + "$ref": "./definitions.json#/definitions/NotificationContract" } }, "default": { @@ -209,7 +209,7 @@ "200": { "description": "The response body contains the Recipient User collection for the notification.", "schema": { - "$ref": "#/definitions/RecipientUserCollection" + "$ref": "./definitions.json#/definitions/RecipientUserCollection" } }, "default": { @@ -300,13 +300,13 @@ "201": { "description": "Recipient User was successfully added to the notification list.", "schema": { - "$ref": "#/definitions/RecipientUserContract" + "$ref": "./definitions.json#/definitions/RecipientUserContract" } }, "200": { "description": "Recipient User is already part of the notification list.", "schema": { - "$ref": "#/definitions/RecipientUserContract" + "$ref": "./definitions.json#/definitions/RecipientUserContract" } }, "default": { @@ -397,7 +397,7 @@ "200": { "description": "The response body contains the Recipient Email collection subscribed to the notification.", "schema": { - "$ref": "#/definitions/RecipientEmailCollection" + "$ref": "./definitions.json#/definitions/RecipientEmailCollection" } }, "default": { @@ -488,13 +488,13 @@ "201": { "description": "Recipient Email was successfully added to the notification list.", "schema": { - "$ref": "#/definitions/RecipientEmailContract" + "$ref": "./definitions.json#/definitions/RecipientEmailContract" } }, "200": { "description": "Recipient Email is already part of the notification list.", "schema": { - "$ref": "#/definitions/RecipientEmailContract" + "$ref": "./definitions.json#/definitions/RecipientEmailContract" } }, "default": { @@ -553,159 +553,6 @@ } } }, - "definitions": { - "NotificationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NotificationContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Notification list representation." - }, - "NotificationContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NotificationContractProperties", - "description": "Notification entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Notification details." - }, - "NotificationContractProperties": { - "properties": { - "title": { - "type": "string", - "description": "Title of the Notification.", - "minLength": 1, - "maxLength": 1000 - }, - "description": { - "type": "string", - "description": "Description of the Notification." - }, - "recipients": { - "$ref": "#/definitions/RecipientsContractProperties", - "description": "Recipient Parameter values." - } - }, - "required": [ - "title" - ], - "description": "Notification Contract properties." - }, - "RecipientsContractProperties": { - "properties": { - "emails": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of Emails subscribed for the notification." - }, - "users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of Users subscribed for the notification." - } - }, - "description": "Notification Parameter contract." - }, - "RecipientUserCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RecipientUserContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Recipient User list representation." - }, - "RecipientUserContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RecipientUsersContractProperties", - "description": "Recipient User entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Recipient User details." - }, - "RecipientUsersContractProperties": { - "properties": { - "userId": { - "type": "string", - "description": "API Management UserId subscribed to notification." - } - }, - "description": "Recipient User Contract Properties." - }, - "RecipientEmailCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RecipientEmailContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Recipient User list representation." - }, - "RecipientEmailContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RecipientEmailContractProperties", - "description": "Recipient Email contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Recipient Email details." - }, - "RecipientEmailContractProperties": { - "properties": { - "email": { - "type": "string", - "description": "User Email subscribed to notification." - } - }, - "description": "Recipient Email Contract Properties." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimopenidconnectproviders.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimopenidconnectproviders.json index ff6e22207da7..c58bdc9830a1 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimopenidconnectproviders.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimopenidconnectproviders.json @@ -77,7 +77,7 @@ "200": { "description": "Lists of all the OpenId Connect Providers.", "schema": { - "$ref": "#/definitions/OpenIdConnectProviderCollection" + "$ref": "./definitions.json#/definitions/OpenIdConnectProviderCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/OpenidConnectProviderContract" + "x-ms-odata": "./definitions.json#/definitions/OpenidConnectProviderContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}": { @@ -172,7 +172,7 @@ "200": { "description": "The response body contains the specified OpenId Connect Provider entity.", "schema": { - "$ref": "#/definitions/OpenidConnectProviderContract" + "$ref": "./definitions.json#/definitions/OpenidConnectProviderContract" }, "headers": { "ETag": { @@ -215,7 +215,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/OpenidConnectProviderContract" + "$ref": "./definitions.json#/definitions/OpenidConnectProviderContract" }, "description": "Create parameters." }, @@ -239,7 +239,7 @@ } }, "schema": { - "$ref": "#/definitions/OpenidConnectProviderContract" + "$ref": "./definitions.json#/definitions/OpenidConnectProviderContract" } }, "200": { @@ -251,7 +251,7 @@ } }, "schema": { - "$ref": "#/definitions/OpenidConnectProviderContract" + "$ref": "./definitions.json#/definitions/OpenidConnectProviderContract" } }, "default": { @@ -288,7 +288,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/OpenidConnectProviderUpdateContract" + "$ref": "./definitions.json#/definitions/OpenidConnectProviderUpdateContract" }, "description": "Update parameters." }, @@ -362,105 +362,6 @@ } } }, - "definitions": { - "OpenIdConnectProviderCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/OpenidConnectProviderContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged OpenIdProviders list representation." - }, - "OpenidConnectProviderContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/OpenidConnectProviderContractProperties", - "description": "OpenId Connect Provider contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "OpenId Connect Provider details." - }, - "OpenidConnectProviderContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "User-friendly OpenID Connect Provider name.", - "maxLength": 50 - }, - "description": { - "type": "string", - "description": "User-friendly description of OpenID Connect Provider." - }, - "metadataEndpoint": { - "type": "string", - "description": "Metadata endpoint URI." - }, - "clientId": { - "type": "string", - "description": "Client ID of developer console which is the client application." - }, - "clientSecret": { - "type": "string", - "description": "Client Secret of developer console which is the client application." - } - }, - "required": [ - "displayName", - "metadataEndpoint", - "clientId" - ], - "description": "OpenID Connect Providers Contract." - }, - "OpenidConnectProviderUpdateContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/OpenidConnectProviderUpdateContractProperties", - "description": "OpenId Connect Provider Update contract properties." - } - }, - "description": "Parameters supplied to the Update OpenID Connect Provider operation." - }, - "OpenidConnectProviderUpdateContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "User-friendly OpenID Connect Provider name.", - "maxLength": 50 - }, - "description": { - "type": "string", - "description": "User-friendly description of OpenID Connect Provider." - }, - "metadataEndpoint": { - "type": "string", - "description": "Metadata endpoint URI." - }, - "clientId": { - "type": "string", - "description": "Client ID of developer console which is the client application." - }, - "clientSecret": { - "type": "string", - "description": "Client Secret of developer console which is the client application." - } - }, - "description": "Parameters supplied to the Update OpenID Connect Provider operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json index b75f16bfad9e..87c836886c08 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json @@ -64,7 +64,7 @@ "200": { "description": "Returns an array of Policy Contracts.", "schema": { - "$ref": "#/definitions/PolicyCollection" + "$ref": "./definitions.json#/definitions/PolicyCollection" } }, "default": { @@ -155,7 +155,7 @@ "200": { "description": "Get the Global policy definition of the Api Management service.", "schema": { - "$ref": "#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -198,7 +198,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "description": "The policy contents to apply." }, @@ -216,7 +216,7 @@ "201": { "description": "Global policy configuration was successfully created.", "schema": { - "$ref": "#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -228,7 +228,7 @@ "200": { "description": "Global policy configuration of the Api Management service was successfully updated.", "schema": { - "$ref": "#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -293,83 +293,6 @@ } } }, - "definitions": { - "PolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PolicyContract" - }, - "description": "Policy Contract value." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "The response of the list policy operation." - }, - "PolicyContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PolicyContractProperties", - "description": "Properties of the Policy." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Policy Contract details." - }, - "PolicyContractProperties": { - "properties": { - "policyContent": { - "type": "string", - "description": "Json escaped Xml Encoded contents of the Policy." - }, - "contentFormat": { - "type": "string", - "description": "Format of the policyContent.", - "enum": [ - "xml", - "xml-link", - "rawxml", - "rawxml-link" - ], - "x-ms-enum": { - "name": "PolicyContentFormat", - "modelAsString": true, - "values": [ - { - "value": "xml", - "description": "The contents are inline and Content type is an XML document." - }, - { - "value": "xml-link", - "description": "The policy XML document is hosted on a http endpoint accessible from the API Management service." - }, - { - "value": "rawxml", - "description": "The contents are inline and Content type is a non XML encoded policy document." - }, - { - "value": "rawxml-link", - "description": "The policy document is not Xml encoded and is hosted on a http endpoint accessible from the API Management service." - } - ] - }, - "default": "xml" - } - }, - "required": [ - "policyContent" - ], - "description": "Policy contract Properties." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicysnippets.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicysnippets.json index dd1a0dda82ce..855764ea0e49 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicysnippets.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicysnippets.json @@ -82,7 +82,7 @@ "200": { "description": "Returns an array of Policy Snippets.", "schema": { - "$ref": "#/definitions/PolicySnippetsCollection" + "$ref": "./definitions.json#/definitions/PolicySnippetsCollection" } }, "default": { @@ -95,44 +95,6 @@ } } }, - "definitions": { - "PolicySnippetsCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PolicySnippetContract" - }, - "description": "Policy snippet value." - } - }, - "description": "The response of the list policy snippets operation." - }, - "PolicySnippetContract": { - "properties": { - "name": { - "type": "string", - "description": "Snippet name.", - "readOnly": true - }, - "content": { - "type": "string", - "description": "Snippet content.", - "readOnly": true - }, - "toolTip": { - "type": "string", - "description": "Snippet toolTip.", - "readOnly": true - }, - "scope": { - "type": "integer", - "description": "Binary OR value of the Snippet scope.", - "readOnly": true - } - }, - "description": "Policy snippet." - } - }, + "definitions": { }, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimportalsettings.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimportalsettings.json index efed60a92b38..62ec39909e02 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimportalsettings.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimportalsettings.json @@ -107,7 +107,7 @@ "200": { "description": "Sign-In settings.", "schema": { - "$ref": "#/definitions/PortalSigninSettings" + "$ref": "./definitions.json#/definitions/PortalSigninSettings" }, "headers": { "ETag": { @@ -147,7 +147,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalSigninSettings" + "$ref": "./definitions.json#/definitions/PortalSigninSettings" }, "description": "Update Sign-In settings." }, @@ -196,7 +196,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalSigninSettings" + "$ref": "./definitions.json#/definitions/PortalSigninSettings" }, "description": "Create or update parameters." }, @@ -214,7 +214,7 @@ "200": { "description": "Sign-In settings was successfully updated.", "schema": { - "$ref": "#/definitions/PortalSigninSettings" + "$ref": "./definitions.json#/definitions/PortalSigninSettings" } }, "default": { @@ -299,7 +299,7 @@ "200": { "description": "Sign-Up settings.", "schema": { - "$ref": "#/definitions/PortalSignupSettings" + "$ref": "./definitions.json#/definitions/PortalSignupSettings" }, "headers": { "ETag": { @@ -339,7 +339,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalSignupSettings" + "$ref": "./definitions.json#/definitions/PortalSignupSettings" }, "description": "Update Sign-Up settings." }, @@ -388,7 +388,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalSignupSettings" + "$ref": "./definitions.json#/definitions/PortalSignupSettings" }, "description": "Create or update parameters." }, @@ -406,7 +406,7 @@ "200": { "description": "Sign-Up settings was successfully updated.", "schema": { - "$ref": "#/definitions/PortalSignupSettings" + "$ref": "./definitions.json#/definitions/PortalSignupSettings" } }, "default": { @@ -491,7 +491,7 @@ "200": { "description": "Delegation settings.", "schema": { - "$ref": "#/definitions/PortalDelegationSettings" + "$ref": "./definitions.json#/definitions/PortalDelegationSettings" }, "headers": { "ETag": { @@ -531,7 +531,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalDelegationSettings" + "$ref": "./definitions.json#/definitions/PortalDelegationSettings" }, "description": "Update Delegation settings." }, @@ -580,7 +580,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PortalDelegationSettings" + "$ref": "./definitions.json#/definitions/PortalDelegationSettings" }, "description": "Create or update parameters." }, @@ -598,7 +598,7 @@ "200": { "description": "Delegation settings was successfully updated.", "schema": { - "$ref": "#/definitions/PortalDelegationSettings" + "$ref": "./definitions.json#/definitions/PortalDelegationSettings" } }, "default": { @@ -611,130 +611,5 @@ } } }, - "definitions": { - "PortalSigninSettings": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PortalSigninSettingProperties", - "description": "Sign-in settings contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Sign-In settings for the Developer Portal." - }, - "PortalSigninSettingProperties": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Redirect Anonymous users to the Sign-In page." - } - }, - "description": "Sign-in settings contract properties." - }, - "PortalSignupSettings": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PortalSignupSettingsProperties", - "description": "Sign-up settings contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Sign-Up settings for a developer portal." - }, - "PortalSignupSettingsProperties": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Allow users to sign up on a developer portal." - }, - "termsOfService": { - "type": "object", - "$ref": "#/definitions/TermsOfServiceProperties", - "description": "Terms of service contract properties." - } - }, - "description": "Sign-up settings contract properties." - }, - "TermsOfServiceProperties": { - "properties": { - "text": { - "type": "string", - "description": "A terms of service text." - }, - "enabled": { - "type": "boolean", - "description": "Display terms of service during a sign-up process." - }, - "consentRequired": { - "type": "boolean", - "description": "Ask user for consent to the terms of service." - } - }, - "description": "Terms of service contract properties." - }, - "PortalDelegationSettings": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PortalDelegationSettingsProperties", - "description": "Delegation settings contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Delegation settings for a developer portal." - }, - "PortalDelegationSettingsProperties": { - "properties": { - "url": { - "type": "string", - "description": "A delegation Url." - }, - "validationKey": { - "type": "string", - "description": "A base64-encoded validation key to validate, that a request is coming from Azure API Management." - }, - "subscriptions": { - "$ref": "#/definitions/SubscriptionsDelegationSettingsProperties", - "description": "Subscriptions delegation settings." - }, - "userRegistration": { - "$ref": "#/definitions/RegistrationDelegationSettingsProperties", - "description": "User registration delegation settings." - } - }, - "description": "Delegation settings contract properties." - }, - "SubscriptionsDelegationSettingsProperties": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Enable or disable delegation for subscriptions." - } - }, - "description": "Subscriptions delegation settings properties." - }, - "RegistrationDelegationSettingsProperties": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Enable or disable delegation for user registration." - } - }, - "description": "User registration delegation settings properties." - } - } + "definitions": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json index 7be672f95b6f..a077b431654f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json @@ -91,7 +91,7 @@ "200": { "description": "A Collection of the Product entities for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/ProductCollection" + "$ref": "./definitions.json#/definitions/ProductCollection" } }, "default": { @@ -104,7 +104,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ProductContract" + "x-ms-odata": "./definitions.json#/definitions/ProductContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}": { @@ -186,7 +186,7 @@ "200": { "description": "The response body contains the specified Product entity.", "schema": { - "$ref": "#/definitions/ProductContract" + "$ref": "./definitions.json#/definitions/ProductContract" }, "headers": { "ETag": { @@ -229,7 +229,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ProductContract" + "$ref": "./definitions.json#/definitions/ProductContract" }, "description": "Create or update parameters." }, @@ -247,7 +247,7 @@ "201": { "description": "Product was successfully created.", "schema": { - "$ref": "#/definitions/ProductContract" + "$ref": "./definitions.json#/definitions/ProductContract" }, "headers": { "ETag": { @@ -259,7 +259,7 @@ "200": { "description": "Product was successfully updated.", "schema": { - "$ref": "#/definitions/ProductContract" + "$ref": "./definitions.json#/definitions/ProductContract" }, "headers": { "ETag": { @@ -302,7 +302,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ProductUpdateParameters" + "$ref": "./definitions.json#/definitions/ProductUpdateParameters" }, "description": "Update parameters." }, @@ -428,7 +428,7 @@ "200": { "description": "The response body contains a collection of Api entities in the product.", "schema": { - "$ref": "./apimapis.json#/definitions/ApiCollection" + "$ref": "./definitions.json#/definitions/ApiCollection" } }, "default": { @@ -441,7 +441,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimapis.json#/definitions/ApiContract" + "x-ms-odata": "./definitions.json#/definitions/ApiContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}": { @@ -523,13 +523,13 @@ "201": { "description": "The API was successfully added to the product.", "schema": { - "$ref": "./apimapis.json#/definitions/ApiContract" + "$ref": "./definitions.json#/definitions/ApiContract" } }, "200": { "description": "The specified API is already added to the product.", "schema": { - "$ref": "./apimapis.json#/definitions/ApiContract" + "$ref": "./definitions.json#/definitions/ApiContract" } }, "default": { @@ -633,7 +633,7 @@ "200": { "description": "Lists a collection of Group entities.", "schema": { - "$ref": "./apimgroups.json#/definitions/GroupCollection" + "$ref": "./definitions.json#/definitions/GroupCollection" } }, "default": { @@ -646,7 +646,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimgroups.json#/definitions/GroupContract" + "x-ms-odata": "./definitions.json#/definitions/GroupContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}": { @@ -728,13 +728,13 @@ "201": { "description": "The group was successfully associated with the product.", "schema": { - "$ref": "./apimgroups.json#/definitions/GroupContract" + "$ref": "./definitions.json#/definitions/GroupContract" } }, "200": { "description": "The specified group is already associated with the product.", "schema": { - "$ref": "./apimgroups.json#/definitions/GroupContract" + "$ref": "./definitions.json#/definitions/GroupContract" } }, "default": { @@ -838,7 +838,7 @@ "200": { "description": "Lists a collection of subscription entities.", "schema": { - "$ref": "./apimsubscriptions.json#/definitions/SubscriptionCollection" + "$ref": "./definitions.json#/definitions/SubscriptionCollection" } }, "default": { @@ -851,7 +851,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimsubscriptions.json#/definitions/SubscriptionContract" + "x-ms-odata": "./definitions.json#/definitions/SubscriptionContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies": { @@ -887,7 +887,7 @@ "200": { "description": "Product Policy information.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyCollection" + "$ref": "./definitions.json#/definitions/PolicyCollection" } }, "default": { @@ -984,7 +984,7 @@ "200": { "description": "Product Policy information.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1033,7 +1033,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "description": "The policy contents to apply." }, @@ -1048,7 +1048,7 @@ "201": { "description": "Product policy configuration was successfully created.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1060,7 +1060,7 @@ "200": { "description": "Product policy configuration of the tenant was successfully updated.", "schema": { - "$ref": "./apimpolicies.json#/definitions/PolicyContract" + "$ref": "./definitions.json#/definitions/PolicyContract" }, "headers": { "ETag": { @@ -1173,7 +1173,7 @@ "200": { "description": "The operation returns a collection of tags associated with the Product entity.", "schema": { - "$ref": "./apimtags.json#/definitions/TagCollection" + "$ref": "./definitions.json#/definitions/TagCollection" } }, "default": { @@ -1186,7 +1186,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtags.json#/definitions/TagContract" + "x-ms-odata": "./definitions.json#/definitions/TagContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}": { @@ -1274,7 +1274,7 @@ "200": { "description": "Gets the details of the tag specified by its identifier.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -1326,13 +1326,13 @@ "201": { "description": "Tag was assigned to the Product.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "200": { "description": "Tag is already assigned to the Product.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "default": { @@ -1391,123 +1391,6 @@ } } }, - "definitions": { - "ProductCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ProductContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Products list representation." - }, - "ProductContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProductContractProperties", - "description": "Product entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Product details." - }, - "ProductContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Product name.", - "minLength": 1, - "maxLength": 300 - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProductEntityBaseParameters" - } - ], - "required": [ - "displayName" - ], - "description": "Product profile." - }, - "ProductEntityBaseParameters": { - "properties": { - "description": { - "type": "string", - "description": "Product description. May include HTML formatting tags.", - "minLength": 1, - "maxLength": 1000 - }, - "terms": { - "type": "string", - "description": "Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process." - }, - "subscriptionRequired": { - "description": "Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as \"protected\" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as \"open\" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true.", - "type": "boolean" - }, - "approvalRequired": { - "description": "whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.", - "type": "boolean" - }, - "subscriptionsLimit": { - "type": "integer", - "format": "int32", - "description": "Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false." - }, - "state": { - "type": "string", - "description": "whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.", - "enum": [ - "notPublished", - "published" - ], - "x-ms-enum": { - "name": "ProductState", - "modelAsString": false - } - } - }, - "description": "Product Entity Base Parameters" - }, - "ProductUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProductUpdateProperties", - "description": "Product entity Update contract properties." - } - }, - "description": "Product Update parameters." - }, - "ProductUpdateProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Product name.", - "maxLength": 300, - "minLength": 1 - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProductEntityBaseParameters" - } - ], - "description": "Parameters supplied to the Update Product operation." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproductsByTags.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproductsByTags.json index 007367ff9bdd..df1f1f129f7f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproductsByTags.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproductsByTags.json @@ -84,7 +84,7 @@ "200": { "description": "Lists a collection of TagResource entities.", "schema": { - "$ref": "./apimtagresources.json#/definitions/TagResourceCollection" + "$ref": "./definitions.json#/definitions/TagResourceCollection" } }, "default": { @@ -97,7 +97,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtagresources.json#/definitions/TagResourceContract" + "x-ms-odata": "./definitions.json#/definitions/TagResourceContract" } } }, diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json index 5cd10bb699a7..7ac6f0e7f2af 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json @@ -80,7 +80,7 @@ "200": { "description": "A Collection of the Property entities for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/PropertyCollection" + "$ref": "./definitions.json#/definitions/PropertyCollection" } }, "default": { @@ -93,7 +93,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/PropertyContract" + "x-ms-odata": "./definitions.json#/definitions/PropertyContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}": { @@ -175,7 +175,7 @@ "200": { "description": "The response body contains the specified Property entity.", "schema": { - "$ref": "#/definitions/PropertyContract" + "$ref": "./definitions.json#/definitions/PropertyContract" }, "headers": { "ETag": { @@ -218,7 +218,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PropertyContract" + "$ref": "./definitions.json#/definitions/PropertyContract" }, "description": "Create parameters." }, @@ -236,7 +236,7 @@ "201": { "description": "Property was successfully created.", "schema": { - "$ref": "#/definitions/PropertyContract" + "$ref": "./definitions.json#/definitions/PropertyContract" }, "headers": { "ETag": { @@ -248,7 +248,7 @@ "200": { "description": "Property was successfully updated.", "schema": { - "$ref": "#/definitions/PropertyContract" + "$ref": "./definitions.json#/definitions/PropertyContract" }, "headers": { "ETag": { @@ -291,7 +291,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PropertyUpdateParameters" + "$ref": "./definitions.json#/definitions/PropertyUpdateParameters" }, "description": "Update parameters." }, @@ -365,115 +365,6 @@ } } }, - "definitions": { - "PropertyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/PropertyContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Property list representation." - }, - "PropertyContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PropertyContractProperties", - "description": "Property entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Property details." - }, - "PropertyContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters.", - "minLength": 1, - "maxLength": 256, - "pattern": "^[A-Za-z0-9-._]+$" - }, - "value": { - "type": "string", - "description": "Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace.", - "minLength": 1, - "maxLength": 4096 - } - }, - "allOf": [ - { - "$ref": "#/definitions/PropertyEntityBaseParameters" - } - ], - "required": [ - "displayName", - "value" - ], - "description": "Property Contract properties." - }, - "PropertyUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PropertyUpdateParameterProperties", - "description": "Property entity Update contract properties." - } - }, - "description": "Property update Parameters." - }, - "PropertyUpdateParameterProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters.", - "minLength": 1, - "maxLength": 256, - "pattern": "^[A-Za-z0-9-._]+$" - }, - "value": { - "type": "string", - "description": "Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace.", - "minLength": 1, - "maxLength": 4096 - } - }, - "allOf": [ - { - "$ref": "#/definitions/PropertyEntityBaseParameters" - } - ], - "description": "Property Contract properties." - }, - "PropertyEntityBaseParameters": { - "properties": { - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "maxItems": 32, - "description": "Optional tags that when provided can be used to filter the property list." - }, - "secret": { - "description": "Determines whether the value is a secret and should be encrypted or not. Default value is false.", - "type": "boolean" - } - }, - "description": "Property Entity Base Parameters set." - } - }, + "definitions": { }, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimquotas.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimquotas.json index c7b845017482..0487f78dfb0f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimquotas.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimquotas.json @@ -71,7 +71,7 @@ "200": { "description": "Lists a collection of the quota counter values.", "schema": { - "$ref": "#/definitions/QuotaCounterCollection" + "$ref": "./definitions.json#/definitions/QuotaCounterCollection" } }, "default": { @@ -108,7 +108,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/QuotaCounterValueContractProperties" + "$ref": "./definitions.json#/definitions/QuotaCounterValueContractProperties" }, "description": "The value of the quota counter to be applied to all quota counter periods." }, @@ -172,7 +172,7 @@ "200": { "description": "The response body contains the Quota counter details for the specified period.", "schema": { - "$ref": "#/definitions/QuotaCounterContract" + "$ref": "./definitions.json#/definitions/QuotaCounterContract" } }, "default": { @@ -212,7 +212,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/QuotaCounterValueContractProperties" + "$ref": "./definitions.json#/definitions/QuotaCounterValueContractProperties" }, "description": "The value of the Quota counter to be applied on the specified period." }, @@ -237,88 +237,6 @@ } } }, - "definitions": { - "QuotaCounterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/QuotaCounterContract" - }, - "description": "Quota counter values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Quota Counter list representation." - }, - "QuotaCounterContract": { - "properties": { - "counterKey": { - "type": "string", - "description": "The Key value of the Counter. Must not be empty.", - "minLength": 1 - }, - "periodKey": { - "type": "string", - "description": "Identifier of the Period for which the counter was collected. Must not be empty.", - "minLength": 1 - }, - "periodStartTime": { - "type": "string", - "format": "date-time", - "description": "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "periodEndTime": { - "type": "string", - "format": "date-time", - "description": "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "value": { - "$ref": "#/definitions/QuotaCounterValueContractProperties", - "description": "Quota Value Properties" - } - }, - "required": [ - "counterKey", - "periodKey", - "periodStartTime", - "periodEndTime" - ], - "description": "Quota counter details." - }, - "QuotaCounterValueContract": { - "properties": { - "value": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/QuotaCounterValueContractProperties", - "description": "Quota counter Value Properties." - } - }, - "description": "Quota counter value details." - }, - "QuotaCounterValueContractProperties": { - "properties": { - "callsCount": { - "type": "integer", - "format": "int32", - "description": "Number of times Counter was called." - }, - "kbTransferred": { - "type": "number", - "format": "double", - "description": "Data Transferred in KiloBytes." - } - }, - "description": "Quota counter value details." - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimreports.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimreports.json index 99d8eba3eb42..99b6a14fe3c5 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimreports.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimreports.json @@ -77,14 +77,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser": { @@ -130,14 +130,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation": { @@ -183,14 +183,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct": { @@ -236,14 +236,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo": { @@ -289,14 +289,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription": { @@ -342,14 +342,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime": { @@ -403,14 +403,14 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/ReportCollection" + "$ref": "./definitions.json#/definitions/ReportCollection" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/ReportRecordContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest": { @@ -456,267 +456,17 @@ "200": { "description": "Lists a collection of Report record.", "schema": { - "$ref": "#/definitions/RequestReportCollection" + "$ref": "./definitions.json#/definitions/RequestReportCollection" } } }, "x-ms-pageable": { "nextLinkName": null }, - "x-ms-odata": "#/definitions/RequestReportRecordContract" + "x-ms-odata": "./definitions.json#/definitions/RequestReportRecordContract" } } }, - "definitions": { - "ReportCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ReportRecordContract" - }, - "description": "Page values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Report records list representation." - }, - "ReportRecordContract": { - "properties": { - "name": { - "type": "string", - "description": "Name depending on report endpoint specifies product, API, operation or developer name." - }, - "timestamp": { - "type": "string", - "format": "date-time", - "description": "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "interval": { - "type": "string", - "description": "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)." - }, - "country": { - "type": "string", - "description": "Country to which this record data is related." - }, - "region": { - "type": "string", - "description": "Country region to which this record data is related." - }, - "zip": { - "type": "string", - "description": "Zip code to which this record data is related." - }, - "userId": { - "readOnly": true, - "type": "string", - "description": "User identifier path. /users/{userId}" - }, - "productId": { - "readOnly": true, - "type": "string", - "description": "Product identifier path. /products/{productId}" - }, - "apiId": { - "type": "string", - "description": "API identifier path. /apis/{apiId}" - }, - "operationId": { - "type": "string", - "description": "Operation identifier path. /apis/{apiId}/operations/{operationId}" - }, - "apiRegion": { - "type": "string", - "description": "API region identifier." - }, - "subscriptionId": { - "type": "string", - "description": "Subscription identifier path. /subscriptions/{subscriptionId}" - }, - "callCountSuccess": { - "type": "integer", - "format": "int32", - "description": "Number of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect" - }, - "callCountBlocked": { - "type": "integer", - "format": "int32", - "description": "Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests" - }, - "callCountFailed": { - "type": "integer", - "format": "int32", - "description": "Number of calls failed due to proxy or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600" - }, - "callCountOther": { - "type": "integer", - "format": "int32", - "description": "Number of other calls." - }, - "callCountTotal": { - "type": "integer", - "format": "int32", - "description": "Total number of calls." - }, - "bandwidth": { - "type": "integer", - "format": "int64", - "description": "Bandwidth consumed." - }, - "cacheHitCount": { - "type": "integer", - "format": "int32", - "description": "Number of times when content was served from cache policy." - }, - "cacheMissCount": { - "type": "integer", - "format": "int32", - "description": "Number of times content was fetched from backend." - }, - "apiTimeAvg": { - "type": "number", - "format": "double", - "description": "Average time it took to process request." - }, - "apiTimeMin": { - "type": "number", - "format": "double", - "description": "Minimum time it took to process request." - }, - "apiTimeMax": { - "type": "number", - "format": "double", - "description": "Maximum time it took to process request." - }, - "serviceTimeAvg": { - "type": "number", - "format": "double", - "description": "Average time it took to process request on backend." - }, - "serviceTimeMin": { - "type": "number", - "format": "double", - "description": "Minimum time it took to process request on backend." - }, - "serviceTimeMax": { - "type": "number", - "format": "double", - "description": "Maximum time it took to process request on backend." - } - }, - "description": "Report data." - }, - "RequestReportCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RequestReportRecordContract" - }, - "description": "Page values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - } - }, - "description": "Paged Report records list representation." - }, - "RequestReportRecordContract": { - "properties": { - "apiId": { - "type": "string", - "description": "API identifier path. /apis/{apiId}" - }, - "operationId": { - "type": "string", - "description": "Operation identifier path. /apis/{apiId}/operations/{operationId}" - }, - "productId": { - "readOnly": true, - "type": "string", - "description": "Product identifier path. /products/{productId}" - }, - "userId": { - "readOnly": true, - "type": "string", - "description": "User identifier path. /users/{userId}" - }, - "method": { - "type": "string", - "description": "The HTTP method associated with this request.." - }, - "url": { - "type": "string", - "description": "The full URL associated with this request." - }, - "ipAddress": { - "type": "string", - "description": "The client IP address associated with this request." - }, - "backendResponseCode": { - "type": "string", - "description": "The HTTP status code received by the gateway as a result of forwarding this request to the backend." - }, - "responseCode": { - "type": "integer", - "format": "int32", - "description": "The HTTP status code returned by the gateway." - }, - "responseSize": { - "type": "integer", - "format": "int32", - "description": "The size of the response returned by the gateway." - }, - "timestamp": { - "type": "string", - "format": "date-time", - "description": "The date and time when this request was received by the gateway in ISO 8601 format." - }, - "cache": { - "type": "string", - "description": "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend." - }, - "apiTime": { - "type": "number", - "format": "double", - "description": "The total time it took to process this request." - }, - "serviceTime": { - "type": "number", - "format": "double", - "description": "he time it took to forward this request to the backend and get the response back." - }, - "apiRegion": { - "type": "string", - "description": "Azure region where the gateway that processed this request is located." - }, - "subscriptionId": { - "type": "string", - "description": "Subscription identifier path. /subscriptions/{subscriptionId}" - }, - "requestId": { - "type": "string", - "description": "Request Identifier." - }, - "requestSize": { - "type": "integer", - "format": "int32", - "description": "The size of this request.." - } - }, - "description": "Request Report data." - } - }, + "definitions": { }, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimsubscriptions.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimsubscriptions.json index 79041ddeb69e..4edd88739e39 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimsubscriptions.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimsubscriptions.json @@ -77,7 +77,7 @@ "200": { "description": "A collection of the Subscription entities for the specified API Management service instance.", "schema": { - "$ref": "#/definitions/SubscriptionCollection" + "$ref": "./definitions.json#/definitions/SubscriptionCollection" } }, "default": { @@ -90,7 +90,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/SubscriptionContract" + "x-ms-odata": "./definitions.json#/definitions/SubscriptionContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}": { @@ -172,7 +172,7 @@ "200": { "description": "The response body contains the specified Subscription entity.", "schema": { - "$ref": "#/definitions/SubscriptionContract" + "$ref": "./definitions.json#/definitions/SubscriptionContract" }, "headers": { "ETag": { @@ -215,7 +215,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionCreateParameters" + "$ref": "./definitions.json#/definitions/SubscriptionCreateParameters" }, "description": "Create parameters." }, @@ -242,7 +242,7 @@ } }, "schema": { - "$ref": "#/definitions/SubscriptionContract" + "$ref": "./definitions.json#/definitions/SubscriptionContract" } }, "200": { @@ -254,7 +254,7 @@ } }, "schema": { - "$ref": "#/definitions/SubscriptionContract" + "$ref": "./definitions.json#/definitions/SubscriptionContract" } }, "default": { @@ -291,7 +291,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionUpdateParameters" + "$ref": "./definitions.json#/definitions/SubscriptionUpdateParameters" }, "description": "Update parameters." }, @@ -452,259 +452,6 @@ } } }, - "definitions": { - "SubscriptionCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Subscriptions list representation." - }, - "SubscriptionContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SubscriptionContractProperties", - "description": "Subscription contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Subscription details." - }, - "SubscriptionContractProperties": { - "properties": { - "ownerId": { - "type": "string", - "description": "The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier." - }, - "scope": { - "type": "string", - "description": "Scope like /products/{productId} or /apis or /apis/{apiId}." - }, - "displayName": { - "type": "string", - "description": "The name of the subscription, or null if the subscription has no name.", - "minLength": 0, - "maxLength": 100 - }, - "state": { - "type": "string", - "description": "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", - "enum": [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ], - "x-ms-enum": { - "name": "SubscriptionState", - "modelAsString": false - } - }, - "createdDate": { - "type": "string", - "format": "date-time", - "description": "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n", - "readOnly": true - }, - "startDate": { - "type": "string", - "format": "date-time", - "description": "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "endDate": { - "type": "string", - "format": "date-time", - "description": "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "notificationDate": { - "type": "string", - "format": "date-time", - "description": "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "primaryKey": { - "type": "string", - "description": "Subscription primary key.", - "minLength": 1, - "maxLength": 256 - }, - "secondaryKey": { - "type": "string", - "description": "Subscription secondary key.", - "minLength": 1, - "maxLength": 256 - }, - "stateComment": { - "type": "string", - "description": "Optional subscription comment added by an administrator." - }, - "allowTracing": { - "type": "boolean", - "description": "Determines whether tracing is enabled", - "x-apim-code-nillable": true - } - }, - "required": [ - "scope", - "state", - "primaryKey", - "secondaryKey" - ], - "description": "Subscription details." - }, - "SubscriptionCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SubscriptionCreateParameterProperties", - "description": "Subscription contract properties." - } - }, - "description": "Subscription create details." - }, - "SubscriptionCreateParameterProperties": { - "properties": { - "ownerId": { - "type": "string", - "description": "User (user id path) for whom subscription is being created in form /users/{userId}" - }, - "scope": { - "type": "string", - "description": "Scope like /products/{productId} or /apis or /apis/{apiId}." - }, - "displayName": { - "type": "string", - "description": "Subscription name.", - "minLength": 1, - "maxLength": 100 - }, - "primaryKey": { - "type": "string", - "description": "Primary subscription key. If not specified during request key will be generated automatically.", - "minLength": 1, - "maxLength": 256 - }, - "secondaryKey": { - "type": "string", - "description": "Secondary subscription key. If not specified during request key will be generated automatically.", - "minLength": 1, - "maxLength": 256 - }, - "state": { - "type": "string", - "description": "Initial subscription state. If no value is specified, subscription is created with Submitted state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", - "enum": [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ], - "x-ms-enum": { - "name": "SubscriptionState", - "modelAsString": false - } - }, - "allowTracing": { - "type": "boolean", - "description": "Determines whether tracing can be enabled" - } - }, - "required": [ - "scope", - "displayName" - ], - "description": "Parameters supplied to the Create subscription operation." - }, - "SubscriptionUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SubscriptionUpdateParameterProperties", - "description": "Subscription Update contract properties." - } - }, - "description": "Subscription update details." - }, - "SubscriptionUpdateParameterProperties": { - "properties": { - "ownerId": { - "type": "string", - "description": "User identifier path: /users/{userId}" - }, - "scope": { - "type": "string", - "description": "Scope like /products/{productId} or /apis or /apis/{apiId}" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard." - }, - "displayName": { - "type": "string", - "description": "Subscription name." - }, - "primaryKey": { - "type": "string", - "description": "Primary subscription key.", - "minLength": 1, - "maxLength": 256 - }, - "secondaryKey": { - "type": "string", - "description": "Secondary subscription key.", - "minLength": 1, - "maxLength": 256 - }, - "state": { - "type": "string", - "description": "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", - "enum": [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ], - "x-ms-enum": { - "name": "SubscriptionState", - "modelAsString": false - } - }, - "stateComment": { - "type": "string", - "description": "Comments describing subscription state change by the administrator." - }, - "allowTracing": { - "type": "boolean", - "description": "Determines whether tracing can be enabled" - } - }, - "description": "Parameters supplied to the Update subscription operation." - } - }, + "definitions": { }, "parameters":{} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtagresources.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtagresources.json index 58d31862b1b6..cce025bba27e 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtagresources.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtagresources.json @@ -77,7 +77,7 @@ "200": { "description": "Lists a collection of TagResource entities.", "schema": { - "$ref": "#/definitions/TagResourceCollection" + "$ref": "./definitions.json#/definitions/TagResourceCollection" } }, "default": { @@ -90,189 +90,10 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/TagResourceContract" + "x-ms-odata": "./definitions.json#/definitions/TagResourceContract" } } }, - "definitions": { - "TagResourceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/TagResourceContract" - }, - "description": "Page values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Tag list representation." - }, - "TagResourceContract": { - "properties": { - "tag": { - "$ref": "#/definitions/TagTagResourceContractProperties", - "description": "Tag associated with the resource." - }, - "api": { - "$ref": "#/definitions/ApiTagResourceContractProperties", - "description": "Api associated with the tag." - }, - "operation": { - "$ref": "#/definitions/OperationTagResourceContractProperties", - "description": "Operation associated with the tag." - }, - "product": { - "$ref": "#/definitions/ProductTagResourceContractProperties", - "description": "Product associated with the tag." - } - }, - "required": [ - "tag" - ], - "description": "TagResource contract properties." - }, - "TagTagResourceContractProperties": { - "properties": { - "id": { - "type": "string", - "description": "Tag identifier" - }, - "name": { - "type": "string", - "description": "Tag Name", - "minLength": 1, - "maxLength": 160 - } - }, - "description": "Contract defining the Tag property in the Tag Resource Contract" - }, - "ApiTagResourceContractProperties": { - "properties": { - "id": { - "type": "string", - "description": "API identifier in the form /apis/{apiId}." - }, - "name": { - "type": "string", - "description": "API name.", - "minLength": 1, - "maxLength": 300 - }, - "serviceUrl": { - "type": "string", - "description": "Absolute URL of the backend service implementing this API.", - "minLength": 1, - "maxLength": 2000 - }, - "path": { - "type": "string", - "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", - "minLength": 0, - "maxLength": 400 - }, - "protocols": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "http", - "https" - ], - "x-ms-enum": { - "name": "Protocol", - "modelAsString": false - } - }, - "description": "Describes on which protocols the operations in this API can be invoked." - } - }, - "allOf": [ - { - "$ref": "./apimapis.json#/definitions/ApiEntityBaseContract" - } - ], - "description": "API contract properties for the Tag Resources." - }, - "ProductTagResourceContractProperties": { - "properties": { - "id": { - "type": "string", - "description": "Identifier of the product in the form of /products/{productId}" - }, - "name": { - "type": "string", - "description": "Product name.", - "minLength": 1, - "maxLength": 300 - } - }, - "allOf": [ - { - "$ref": "./apimproducts.json#/definitions/ProductEntityBaseParameters" - } - ], - "required": [ - "name" - ], - "description": "Product profile." - }, - "OperationTagResourceContractProperties": { - "properties": { - "id": { - "type": "string", - "description": "Identifier of the operation in form /operations/{operationId}." - }, - "name": { - "type": "string", - "description": "Operation name.", - "readOnly": true - }, - "apiName": { - "type": "string", - "description": "Api Name.", - "readOnly": true - }, - "apiRevision": { - "type": "string", - "description": "Api Revision.", - "readOnly": true - }, - "apiVersion": { - "type": "string", - "description": "Api Version.", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Operation Description.", - "readOnly": true - }, - "method": { - "type": "string", - "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", - "externalDocs": { - "description": "As defined by RFC.", - "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" - }, - "readOnly": true - }, - "urlTemplate": { - "type": "string", - "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", - "readOnly": true - } - }, - "description": "Operation Entity contract Properties." - } - }, + "definitions": {}, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtags.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtags.json index b4b29ee1ba27..ae30dc864a0d 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtags.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtags.json @@ -84,7 +84,7 @@ "200": { "description": "Lists a collection of Tag entities.", "schema": { - "$ref": "./apimtags.json#/definitions/TagCollection" + "$ref": "./definitions.json#/definitions/TagCollection" } }, "default": { @@ -97,7 +97,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimtags.json#/definitions/TagContract" + "x-ms-odata": "./definitions.json#/definitions/TagContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}": { @@ -179,7 +179,7 @@ "200": { "description": "The response body contains the specified Tag entity.", "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" }, "headers": { "ETag": { @@ -222,7 +222,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/TagCreateUpdateParameters" + "$ref": "./definitions.json#/definitions/TagCreateUpdateParameters" }, "description": "Create parameters." }, @@ -246,7 +246,7 @@ } }, "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "200": { @@ -258,7 +258,7 @@ } }, "schema": { - "$ref": "./apimtags.json#/definitions/TagContract" + "$ref": "./definitions.json#/definitions/TagContract" } }, "default": { @@ -295,7 +295,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/TagCreateUpdateParameters" + "$ref": "./definitions.json#/definitions/TagCreateUpdateParameters" }, "description": "Update parameters." }, @@ -369,137 +369,6 @@ } } }, - "definitions": { - "TagCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "./apimtags.json#/definitions/TagContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Tag list representation." - }, - "TagContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TagContractProperties", - "description": "Tag entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Tag Contract details." - }, - "TagContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Tag name.", - "maxLength": 160, - "minLength": 1 - } - }, - "required": [ - "displayName" - ], - "description": "Tag contract Properties." - }, - "TagCreateUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TagContractProperties", - "description": "Properties supplied to Create Tag operation." - } - }, - "description": "Parameters supplied to Create/Update Tag operations." - }, - "TagDescriptionCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "./apimtags.json#/definitions/TagDescriptionContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged TagDescription list representation." - }, - "TagDescriptionContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TagDescriptionContractProperties", - "description": "TagDescription entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "Contract details." - }, - "TagDescriptionContractProperties": { - "properties": { - "displayName": { - "type": "string", - "description": "Tag name.", - "maxLength": 160, - "minLength": 1 - } - }, - "allOf": [ - { - "$ref": "#/definitions/TagDescriptionBaseProperties" - } - ], - "description": "TagDescription contract Properties." - }, - "TagDescriptionCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TagDescriptionBaseProperties", - "description": "Properties supplied to Create TagDescription operation." - } - }, - "description": "Parameters supplied to the Create TagDescription operation." - }, - "TagDescriptionBaseProperties": { - "properties": { - "description": { - "type": "string", - "description": "Description of the Tag." - }, - "externalDocsUrl": { - "type": "string", - "description": "Absolute URL of external resources describing the tag.", - "maxLength": 2000 - }, - "externalDocsDescription": { - "type": "string", - "description": "Description of the external resources describing the tag." - } - }, - "description": "Parameters supplied to the Create TagDescription operation." - } - }, + "definitions": {}, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json index bdd1200b96a7..4c7b139ebc3d 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json @@ -113,7 +113,7 @@ "200": { "description": "Tenant Access information.", "schema": { - "$ref": "#/definitions/AccessInformationContract" + "$ref": "./definitions.json#/definitions/AccessInformationContract" }, "headers": { "ETag": { @@ -153,7 +153,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AccessInformationUpdateParameters" + "$ref": "./definitions.json#/definitions/AccessInformationUpdateParameters" }, "description": "Parameters supplied to retrieve the Tenant Access Information." }, @@ -300,7 +300,7 @@ "200": { "description": "Git Access Information for the Service.", "schema": { - "$ref": "#/definitions/AccessInformationContract" + "$ref": "./definitions.json#/definitions/AccessInformationContract" }, "headers": { "ETag": { @@ -430,7 +430,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DeployConfigurationParameters" + "$ref": "./definitions.json#/definitions/DeployConfigurationParameters" }, "description": "Deploy Configuration parameters." }, @@ -451,7 +451,7 @@ "200": { "description": "Result of applying changes from Git branch to database.", "schema": { - "$ref": "#/definitions/OperationResultContract" + "$ref": "./definitions.json#/definitions/OperationResultContract" } }, "default": { @@ -492,7 +492,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SaveConfigurationParameter" + "$ref": "./definitions.json#/definitions/SaveConfigurationParameter" }, "description": "Save Configuration parameters." }, @@ -513,7 +513,7 @@ "200": { "description": "Result of creating a commit in the repository.", "schema": { - "$ref": "#/definitions/OperationResultContract" + "$ref": "./definitions.json#/definitions/OperationResultContract" } }, "default": { @@ -550,7 +550,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DeployConfigurationParameters" + "$ref": "./definitions.json#/definitions/DeployConfigurationParameters" }, "description": "Validate Configuration parameters." }, @@ -571,7 +571,7 @@ "200": { "description": "Result of validating the changes in the specified Git branch.", "schema": { - "$ref": "#/definitions/OperationResultContract" + "$ref": "./definitions.json#/definitions/OperationResultContract" } }, "default": { @@ -617,177 +617,13 @@ "200": { "description": "Sync state result.", "schema": { - "$ref": "#/definitions/TenantConfigurationSyncStateContract" + "$ref": "./definitions.json#/definitions/TenantConfigurationSyncStateContract" } } } } } }, - "definitions": { - "AccessInformationContract": { - "properties": { - "id": { - "type": "string", - "description": "Identifier." - }, - "primaryKey": { - "type": "string", - "description": "Primary access key." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary access key." - }, - "enabled": { - "type": "boolean", - "description": "Tenant access information of the API Management service." - } - }, - "description": "Tenant access information contract of the API Management service." - }, - "AccessInformationUpdateParameters": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Tenant access information of the API Management service." - } - }, - "description": "Tenant access information update parameters of the API Management service." - }, - "DeployConfigurationParameters": { - "properties": { - "branch": { - "type": "string", - "description": "The name of the Git branch from which the configuration is to be deployed to the configuration database." - }, - "force": { - "type": "boolean", - "description": "The value enforcing deleting subscriptions to products that are deleted in this update." - } - }, - "required": [ - "branch" - ], - "description": "Parameters supplied to the Deploy Configuration operation." - }, - "OperationResultContract": { - "properties": { - "id": { - "type": "string", - "description": "Operation result identifier." - }, - "status": { - "type": "string", - "description": "Status of an async operation.", - "enum": [ - "Started", - "InProgress", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "AsyncOperationStatus", - "modelAsString": false - } - }, - "started": { - "type": "string", - "format": "date-time", - "description": "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "updated": { - "type": "string", - "format": "date-time", - "description": "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "resultInfo": { - "type": "string", - "description": "Optional result info." - }, - "error": { - "$ref": "./apimanagement.json#/definitions/ErrorResponseBody", - "description": "Error Body Contract" - }, - "actionLog": { - "type": "array", - "items": { - "$ref": "#/definitions/OperationResultLogItemContract" - }, - "readOnly": true, - "description": "This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation." - } - }, - "description": "Operation Result." - }, - "OperationResultLogItemContract": { - "properties": { - "objectType": { - "type": "string", - "description": "The type of entity contract." - }, - "action": { - "type": "string", - "description": "Action like create/update/delete." - }, - "objectKey": { - "type": "string", - "description": "Identifier of the entity being created/updated/deleted." - } - }, - "description": "Log of the entity being created, updated or deleted." - }, - "SaveConfigurationParameter": { - "properties": { - "branch": { - "type": "string", - "description": "The name of the Git branch in which to commit the current configuration snapshot." - }, - "force": { - "type": "boolean", - "description": "The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten." - } - }, - "required": [ - "branch" - ], - "description": "Parameters supplied to the Save Tenant Configuration operation." - }, - "TenantConfigurationSyncStateContract": { - "properties": { - "branch": { - "type": "string", - "description": "The name of Git branch." - }, - "commitId": { - "type": "string", - "description": "The latest commit Id." - }, - "isExport": { - "type": "boolean", - "description": "value indicating if last sync was save (true) or deploy (false) operation." - }, - "isSynced": { - "type": "boolean", - "description": "value indicating if last synchronization was later than the configuration change." - }, - "isGitEnabled": { - "type": "boolean", - "description": "value indicating whether Git configuration access is enabled." - }, - "syncDate": { - "type": "string", - "format": "date-time", - "description": "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "configurationChangeDate": { - "type": "string", - "format": "date-time", - "description": "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - } - }, - "description": "Tenant Configuration Synchronization State." - } - }, + "definitions": {}, "parameters": {} } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json index f4ff50b10052..fd801516a9ab 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json @@ -82,7 +82,7 @@ "200": { "description": "Lists a collection of User entities.", "schema": { - "$ref": "#/definitions/UserCollection" + "$ref": "./definitions.json#/definitions/UserCollection" } }, "default": { @@ -95,7 +95,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/UserContract" + "x-ms-odata": "./definitions.json#/definitions/UserContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}": { @@ -177,7 +177,7 @@ "200": { "description": "Gets the specified user entity.", "schema": { - "$ref": "#/definitions/UserContract" + "$ref": "./definitions.json#/definitions/UserContract" }, "headers": { "ETag": { @@ -220,7 +220,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/UserCreateParameters" + "$ref": "./definitions.json#/definitions/UserCreateParameters" }, "description": "Create or update parameters." }, @@ -238,7 +238,7 @@ "201": { "description": "User was successfully created.", "schema": { - "$ref": "#/definitions/UserContract" + "$ref": "./definitions.json#/definitions/UserContract" }, "headers": { "ETag": { @@ -256,7 +256,7 @@ } }, "schema": { - "$ref": "#/definitions/UserContract" + "$ref": "./definitions.json#/definitions/UserContract" } }, "default": { @@ -293,7 +293,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/UserUpdateParameters" + "$ref": "./definitions.json#/definitions/UserUpdateParameters" }, "description": "Update parameters." }, @@ -414,7 +414,7 @@ "description": "The response body contains the single sign-on URL.", "schema": { "x-ms-client-flatten": true, - "$ref": "#/definitions/GenerateSsoUrlResult" + "$ref": "./definitions.json#/definitions/GenerateSsoUrlResult" } }, "default": { @@ -472,7 +472,7 @@ "200": { "description": "Lists a collection of Group entities.", "schema": { - "$ref": "./apimgroups.json#/definitions/GroupCollection" + "$ref": "./definitions.json#/definitions/GroupCollection" } }, "default": { @@ -485,7 +485,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimgroups.json#/definitions/GroupContract" + "x-ms-odata": "./definitions.json#/definitions/GroupContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions": { @@ -534,7 +534,7 @@ "200": { "description": "Lists a collection of Subscription entities.", "schema": { - "$ref": "./apimsubscriptions.json#/definitions/SubscriptionCollection" + "$ref": "./definitions.json#/definitions/SubscriptionCollection" } }, "default": { @@ -547,7 +547,7 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./apimsubscriptions.json#/definitions/SubscriptionContract" + "x-ms-odata": "./definitions.json#/definitions/SubscriptionContract" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities": { @@ -583,7 +583,7 @@ "200": { "description": "Lists of User Identities.", "schema": { - "$ref": "#/definitions/UserIdentityCollection" + "$ref": "./definitions.json#/definitions/UserIdentityCollection" } }, "default": { @@ -625,7 +625,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/UserTokenParameters" + "$ref": "./definitions.json#/definitions/UserTokenParameters" }, "description": "Create Authorization Token parameters." }, @@ -641,7 +641,7 @@ "description": "The response body contains the authorization token for the user.", "schema": { "x-ms-client-flatten": true, - "$ref": "#/definitions/UserTokenResult" + "$ref": "./definitions.json#/definitions/UserTokenResult" } }, "default": { @@ -696,320 +696,6 @@ } } }, - "definitions": { - "GenerateSsoUrlResult": { - "properties": { - "value": { - "type": "string", - "description": "Redirect Url containing the SSO URL value." - } - }, - "description": "Generate SSO Url operations response details." - }, - "UserCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/UserContract" - }, - "description": "Page values." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "Paged Users list representation." - }, - "UserContract": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/UserContractProperties", - "description": "User entity contract properties." - } - }, - "allOf": [ - { - "$ref": "./apimanagement.json#/definitions/Resource" - } - ], - "description": "User details." - }, - "UserContractProperties": { - "properties": { - "firstName": { - "type": "string", - "description": "First name." - }, - "lastName": { - "type": "string", - "description": "Last name." - }, - "email": { - "type": "string", - "description": "Email address." - }, - "registrationDate": { - "type": "string", - "format": "date-time", - "description": "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - }, - "groups": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "./apimgroups.json#/definitions/GroupContractProperties" - }, - "description": "Collection of groups user is part of." - } - }, - "allOf": [ - { - "$ref": "#/definitions/UserEntityBaseParameters" - } - ], - "description": "User profile." - }, - "UserCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/UserCreateParameterProperties", - "description": "User entity create contract properties." - } - }, - "description": "User create details." - }, - "UserCreateParameterProperties": { - "properties": { - "email": { - "type": "string", - "description": "Email address. Must not be empty and must be unique within the service instance.", - "minLength": 1, - "maxLength": 254 - }, - "firstName": { - "type": "string", - "description": "First name.", - "minLength": 1, - "maxLength": 100 - }, - "lastName": { - "type": "string", - "description": "Last name.", - "minLength": 1, - "maxLength": 100 - }, - "password": { - "type": "string", - "description": "User Password. If no value is provided, a default password is generated." - }, - "confirmation": { - "type": "string", - "description": "Determines the type of confirmation e-mail that will be sent to the newly created user.", - "enum": [ - "signup", - "invite" - ], - "x-ms-enum": { - "name": "Confirmation", - "modelAsString": true, - "values": [ - { - "value": "signup", - "description": "Send an e-mail to the user confirming they have successfully signed up." - }, - { - "value": "invite", - "description": "Send an e-mail inviting the user to sign-up and complete registration." - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/UserEntityBaseParameters" - } - ], - "required": [ - "email", - "firstName", - "lastName" - ], - "description": "Parameters supplied to the Create User operation." - }, - "UserEntityBaseParameters": { - "properties": { - "state": { - "type": "string", - "description": "Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.", - "enum": [ - "active", - "blocked", - "pending", - "deleted" - ], - "default": "active", - "x-ms-enum": { - "name": "UserState", - "modelAsString": true, - "values": [ - { - "value": "active", - "description": "User state is active." - }, - { - "value": "blocked", - "description": "User is blocked. Blocked users cannot authenticate at developer portal or call API." - }, - { - "value": "pending", - "description": "User account is pending. Requires identity confirmation before it can be made active." - }, - { - "value": "deleted", - "description": "User account is closed. All identities and related entities are removed." - } - ] - } - }, - "note": { - "type": "string", - "description": "Optional note about a user set by the administrator." - }, - "identities": { - "type": "array", - "items": { - "$ref": "#/definitions/UserIdentityContract" - }, - "description": "Collection of user identities." - } - }, - "description": "User Entity Base Parameters set." - }, - "UserIdentityCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/UserIdentityContract" - }, - "description": "User Identity values." - }, - "count": { - "type": "integer", - "format": "int64", - "description": "Total record count number across all pages." - }, - "nextLink": { - "type": "string", - "description": "Next page link if any." - } - }, - "description": "List of Users Identity list representation." - }, - "UserIdentityContract": { - "properties": { - "provider": { - "type": "string", - "description": "Identity provider name." - }, - "id": { - "type": "string", - "description": "Identifier value within provider." - } - }, - "description": "User identity details." - }, - "UserTokenParameters": { - "properties": { - "keyType": { - "type": "string", - "description": "The Key to be used to generate token for user.", - "enum": [ - "primary", - "secondary" - ], - "default": "primary", - "x-ms-enum": { - "name": "KeyType", - "modelAsString": false - } - }, - "expiry": { - "type": "string", - "format": "date-time", - "description": "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" - } - }, - "required": [ - "keyType", - "expiry" - ], - "description": "Parameters supplied to the Get User Token operation." - }, - "UserTokenResult": { - "properties": { - "value": { - "type": "string", - "description": "Shared Access Authorization token for the User." - } - }, - "description": "Get User Token response details." - }, - "UserUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/UserUpdateParametersProperties", - "description": "User entity update contract properties." - } - }, - "description": "User update parameters." - }, - "UserUpdateParametersProperties": { - "properties": { - "email": { - "type": "string", - "description": "Email address. Must not be empty and must be unique within the service instance.", - "minLength": 1, - "maxLength": 254 - }, - "password": { - "type": "string", - "description": "User Password." - }, - "firstName": { - "type": "string", - "description": "First name.", - "minLength": 1, - "maxLength": 100 - }, - "lastName": { - "type": "string", - "description": "Last name.", - "minLength": 1, - "maxLength": 100 - } - }, - "allOf": [ - { - "$ref": "#/definitions/UserEntityBaseParameters" - } - ], - "description": "Parameters supplied to the Update User operation." - }, - "CurrentUserIdentity": { - "properties": { - "id": { - "type": "string", - "description": "API Management service user id." - } - } - } - }, + "definitions": { }, "parameters": { } } \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/definitions.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/definitions.json new file mode 100644 index 000000000000..87f482ba90e7 --- /dev/null +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/definitions.json @@ -0,0 +1,4995 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0", + "title": "Definitions file" + }, + "paths": {}, + "definitions": { + "AccessInformationContract": { + "properties": { + "id": { + "type": "string", + "description": "Identifier." + }, + "primaryKey": { + "type": "string", + "description": "Primary access key." + }, + "secondaryKey": { + "type": "string", + "description": "Secondary access key." + }, + "enabled": { + "type": "boolean", + "description": "Tenant access information of the API Management service." + } + }, + "description": "Tenant access information contract of the API Management service." + }, + "AccessInformationUpdateParameters": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Tenant access information of the API Management service." + } + }, + "description": "Tenant access information update parameters of the API Management service." + }, + "ApiCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiContract" + }, + "description": "Page values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Api list representation." + }, + "ApiContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiContractProperties", + "description": "Api entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "API details." + }, + "ApiContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "API name.", + "minLength": 1, + "maxLength": 300 + }, + "serviceUrl": { + "type": "string", + "description": "Absolute URL of the backend service implementing this API.", + "minLength": 0, + "maxLength": 2000 + }, + "path": { + "type": "string", + "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", + "minLength": 0, + "maxLength": 400 + }, + "protocols": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "http", + "https" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": false + } + }, + "description": "Describes on which protocols the operations in this API can be invoked." + }, + "apiVersionSet": { + "$ref": "#/definitions/ApiVersionSetContractDetails" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ApiEntityBaseContract" + } + ], + "required": [ + "path" + ], + "description": "Api Entity Properties" + }, + "ApiContractUpdateProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "API name.", + "minLength": 1, + "maxLength": 300 + }, + "serviceUrl": { + "type": "string", + "description": "Absolute URL of the backend service implementing this API.", + "minLength": 1, + "maxLength": 2000 + }, + "path": { + "type": "string", + "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", + "minLength": 0, + "maxLength": 400 + }, + "protocols": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "http", + "https" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": false + } + }, + "description": "Describes on which protocols the operations in this API can be invoked." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ApiEntityBaseContract" + } + ], + "description": "API update contract properties." + }, + "ApiCreateOrUpdateParameter": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiCreateOrUpdateProperties", + "description": "Api entity create of update properties." + } + }, + "description": "API Create or Update Parameters." + }, + "ApiCreateOrUpdateProperties": { + "properties": { + "contentValue": { + "type": "string", + "description": "Content value when Importing an API." + }, + "contentFormat": { + "type": "string", + "description": "Format of the Content in which the API is getting imported.", + "enum": [ + "wadl-xml", + "wadl-link-json", + "swagger-json", + "swagger-link-json", + "wsdl", + "wsdl-link", + "openapi", + "openapi+json", + "openapi-link" + ], + "x-ms-enum": { + "name": "ContentFormat", + "modelAsString": true, + "values": [ + { + "value": "wadl-xml", + "description": "The contents are inline and Content type is a WADL document." + }, + { + "value": "wadl-link-json", + "description": "The WADL document is hosted on a publicly accessible internet address." + }, + { + "value": "swagger-json", + "description": "The contents are inline and Content Type is a OpenApi 2.0 Document." + }, + { + "value": "swagger-link-json", + "description": "The Open Api 2.0 document is hosted on a publicly accessible internet address." + }, + { + "value": "wsdl", + "description": "The contents are inline and the document is a WSDL/Soap document." + }, + { + "value": "wsdl-link", + "description": "The WSDL document is hosted on a publicly accessible internet address." + }, + { + "value": "openapi", + "description": "The contents are inline and Content Type is a OpenApi 3.0 Document in YAML format." + }, + { + "value": "openapi+json", + "description": "The contents are inline and Content Type is a OpenApi 3.0 Document in JSON format." + }, + { + "value": "openapi-link", + "description": "The Open Api 3.0 document is hosted on a publicly accessible internet address." + } + ] + } + }, + "wsdlSelector": { + "type": "object", + "description": "Criteria to limit import of WSDL to a subset of the document.", + "properties": { + "wsdlServiceName": { + "type": "string", + "description": "Name of service to import from WSDL" + }, + "wsdlEndpointName": { + "type": "string", + "description": "Name of endpoint(port) to import from WSDL" + } + } + }, + "apiType": { + "type": "string", + "description": "Type of Api to create. \n * `http` creates a SOAP to REST API \n * `soap` creates a SOAP pass-through API .", + "enum": [ + "http", + "soap" + ], + "x-ms-client-name": "SoapApiType", + "x-ms-enum": { + "name": "SoapApiType", + "modelAsString": true, + "values": [ + { + "value": "http", + "description": "Imports a SOAP API having a RESTful front end.", + "name": "SoapToRest" + }, + { + "value": "soap", + "description": "Imports the Soap API having a SOAP front end.", + "name": "SoapPassThrough" + } + ] + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/ApiContractProperties" + } + ], + "description": "Api Create or Update Properties." + }, + "ApiEntityBaseContract": { + "properties": { + "description": { + "type": "string", + "description": "Description of the API. May include HTML formatting tags." + }, + "authenticationSettings": { + "$ref": "#/definitions/AuthenticationSettingsContract", + "description": "Collection of authentication settings included into this API." + }, + "subscriptionKeyParameterNames": { + "$ref": "#/definitions/SubscriptionKeyParameterNamesContract", + "description": "Protocols over which API is made available." + }, + "type": { + "type": "string", + "description": "Type of API.", + "enum": [ + "http", + "soap" + ], + "x-ms-client-name": "ApiType", + "x-ms-enum": { + "name": "ApiType", + "modelAsString": true + } + }, + "apiRevision": { + "type": "string", + "description": "Describes the Revision of the Api. If no value is provided, default revision 1 is created", + "minLength": 1, + "maxLength": 100 + }, + "apiVersion": { + "type": "string", + "description": "Indicates the Version identifier of the API if the API is versioned", + "maxLength": 100 + }, + "isCurrent": { + "type": "boolean", + "description": "Indicates if API revision is current api revision.", + "readOnly": true + }, + "isOnline": { + "type": "boolean", + "description": "Indicates if API revision is accessible via the gateway.", + "readOnly": true + }, + "apiRevisionDescription": { + "type": "string", + "description": "Description of the Api Revision.", + "maxLength": 256 + }, + "apiVersionDescription": { + "type": "string", + "description": "Description of the Api Version.", + "maxLength": 256 + }, + "apiVersionSetId": { + "type": "string", + "description": "A resource identifier for the related ApiVersionSet." + }, + "subscriptionRequired": { + "type": "boolean", + "description": "Specifies whether an API or Product subscription is required for accessing the API." + } + }, + "description": "API base contract details." + }, + "ApiExportResult": { + "properties": { + "link": { + "type": "string", + "description": "Link to the Storage Blob containing the result of the export operation. The Blob Uri is only valid for 5 minutes." + } + }, + "description": "API Export result Blob Uri." + }, + "ApiReleaseCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiReleaseContract" + }, + "description": "Page values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Api Revision list representation." + }, + "ApiReleaseContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiReleaseContractProperties", + "description": "Properties of the Api Release Contract." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Api Release details." + }, + "ApiReleaseContractProperties": { + "description": "API Release details", + "properties": { + "apiId": { + "type": "string", + "description": "Identifier of the API the release belongs to." + }, + "createdDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." + }, + "updatedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time the API release was updated." + }, + "notes": { + "type": "string", + "description": "Release Notes" + } + } + }, + "ApiRevisionCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiRevisionContract" + }, + "description": "Page values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Api Revision list representation." + }, + "ApiRevisionContract": { + "properties": { + "apiId": { + "type": "string", + "readOnly": true, + "description": "Identifier of the API Revision." + }, + "apiRevision": { + "type": "string", + "minLength": 1, + "maxLength": 100, + "readOnly": true, + "description": "Revision number of API." + }, + "createdDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." + }, + "updatedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard." + }, + "description": { + "type": "string", + "readOnly": true, + "maxLength": 256, + "description": "Description of the API Revision." + }, + "privateUrl": { + "type": "string", + "readOnly": true, + "description": "Gateway URL for accessing the non-current API Revision." + }, + "isOnline": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if API revision is the current api revision." + }, + "isCurrent": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if API revision is accessible via the gateway." + } + }, + "description": "Summary of revision metadata." + }, + "ApiRevisionInfoContract": { + "description": "Object used to create an API Revision or Version based on an existing API Revision", + "properties": { + "sourceApiId": { + "type": "string", + "description": "Resource identifier of API to be used to create the revision from." + }, + "apiVersionName": { + "type": "string", + "maxLength": 100, + "description": "Version identifier for the new API Version." + }, + "apiRevisionDescription": { + "type": "string", + "maxLength": 256, + "description": "Description of new API Revision." + }, + "apiVersionSet": { + "description": "Version set details", + "$ref": "#/definitions/ApiVersionSetContractDetails" + } + } + }, + "ApiTagResourceContractProperties": { + "properties": { + "id": { + "type": "string", + "description": "API identifier in the form /apis/{apiId}." + }, + "name": { + "type": "string", + "description": "API name.", + "minLength": 1, + "maxLength": 300 + }, + "serviceUrl": { + "type": "string", + "description": "Absolute URL of the backend service implementing this API.", + "minLength": 1, + "maxLength": 2000 + }, + "path": { + "type": "string", + "description": "Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.", + "minLength": 0, + "maxLength": 400 + }, + "protocols": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "http", + "https" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": false + } + }, + "description": "Describes on which protocols the operations in this API can be invoked." + } + }, + "allOf": [ + { + "$ref": "./definitions.json#/definitions/ApiEntityBaseContract" + } + ], + "description": "API contract properties for the Tag Resources." + }, + "ApiUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiContractUpdateProperties", + "description": "Properties of the API entity that can be updated." + } + }, + "description": "API update contract details." + }, + "ApiVersionSetCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiVersionSetContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Api Version Set list representation." + }, + "ApiVersionSetContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiVersionSetContractProperties", + "description": "Api VersionSet contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Api Version Set Contract details." + }, + "ApiVersionSetContractDetails": { + "description": "An API Version Set contains the common configuration for a set of API Versions relating ", + "properties": { + "id": { + "type": "string", + "description": "Identifier for existing API Version Set. Omit this value to create a new Version Set." + }, + "description": { + "type": "string", + "description": "Description of API Version Set." + }, + "versioningScheme": { + "type": "string", + "description": "An value that determines where the API Version identifer will be located in a HTTP request.", + "enum": [ + "Segment", + "Query", + "Header" + ] + }, + "versionQueryName": { + "type": "string", + "description": "Name of query parameter that indicates the API Version if versioningScheme is set to `query`." + }, + "versionHeaderName": { + "type": "string", + "description": "Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`." + } + } + }, + "ApiVersionSetContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Name of API Version Set", + "minLength": 1, + "maxLength": 100 + }, + "versioningScheme": { + "type": "string", + "description": "An value that determines where the API Version identifer will be located in a HTTP request.", + "enum": [ + "Segment", + "Query", + "Header" + ], + "x-ms-enum": { + "name": "versioningScheme", + "modelAsString": true, + "values": [ + { + "value": "Segment", + "description": "The API Version is passed in a path segment." + }, + { + "value": "Query", + "description": "The API Version is passed in a query parameter." + }, + { + "value": "Header", + "description": "The API Version is passed in a HTTP header." + } + ] + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/ApiVersionSetEntityBase" + } + ], + "required": [ + "displayName", + "versioningScheme" + ], + "description": "Properties of an API Version Set." + }, + "ApiVersionSetEntityBase": { + "properties": { + "description": { + "type": "string", + "description": "Description of API Version Set." + }, + "versionQueryName": { + "type": "string", + "description": "Name of query parameter that indicates the API Version if versioningScheme is set to `query`.", + "minLength": 1, + "maxLength": 100 + }, + "versionHeaderName": { + "type": "string", + "description": "Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.", + "minLength": 1, + "maxLength": 100 + } + }, + "description": "Api Version set base parameters" + }, + "ApiVersionSetUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApiVersionSetUpdateParametersProperties", + "description": "Parameters to update or create an Api Version Set Contract." + } + }, + "description": "Parameters to update or create an Api Version Set Contract." + }, + "ApiVersionSetUpdateParametersProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Name of API Version Set", + "minLength": 1, + "maxLength": 100 + }, + "versioningScheme": { + "type": "string", + "description": "An value that determines where the API Version identifer will be located in a HTTP request.", + "enum": [ + "Segment", + "Query", + "Header" + ], + "x-ms-enum": { + "name": "versioningScheme", + "modelAsString": true, + "values": [ + { + "value": "Segment", + "description": "The API Version is passed in a path segment." + }, + { + "value": "Query", + "description": "The API Version is passed in a query parameter." + }, + { + "value": "Header", + "description": "The API Version is passed in a HTTP header." + } + ] + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/ApiVersionSetEntityBase" + } + ], + "description": "Properties used to create or update an API Version Set." + }, + "AuthenticationSettingsContract": { + "properties": { + "oAuth2": { + "$ref": "#/definitions/OAuth2AuthenticationSettingsContract", + "description": "OAuth2 Authentication settings" + }, + "openid": { + "$ref": "#/definitions/OpenIdAuthenticationSettingsContract", + "description": "OpenID Connect Authentication Settings" + }, + "subscriptionKeyRequired": { + "type": "boolean", + "description": "Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products." + } + }, + "description": "API Authentication Settings." + }, + "AuthorizationServerCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AuthorizationServerContract" + }, + "description": "Page values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged OAuth2 Authorization Servers list representation." + }, + "AuthorizationServerContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AuthorizationServerContractProperties", + "description": "Properties of the External OAuth authorization server Contract." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "External OAuth authorization server settings." + }, + "AuthorizationServerContractBaseProperties": { + "properties": { + "description": { + "type": "string", + "description": "Description of the authorization server. Can contain HTML formatting tags." + }, + "authorizationMethods": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ], + "x-ms-enum": { + "name": "AuthorizationMethod", + "modelAsString": false + } + }, + "description": "HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional." + }, + "clientAuthenticationMethod": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Basic", + "Body" + ], + "x-ms-enum": { + "name": "ClientAuthenticationMethod", + "modelAsString": true, + "values": [ + { + "value": "Basic", + "description": "Basic Client Authentication method." + }, + { + "value": "Body", + "description": "Body based Authentication method." + } + ] + } + }, + "description": "Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format." + }, + "tokenBodyParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/TokenBodyParameterContract" + }, + "description": "Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {\"name\" : \"name value\", \"value\": \"a value\"}." + }, + "tokenEndpoint": { + "type": "string", + "description": "OAuth token endpoint. Contains absolute URI to entity being referenced.", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-3.1" + } + }, + "supportState": { + "type": "boolean", + "description": "If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-3.1" + } + }, + "defaultScope": { + "type": "string", + "description": "Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-3.3" + } + }, + "bearerTokenSendingMethods": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "authorizationHeader", + "query" + ], + "x-ms-enum": { + "name": "BearerTokenSendingMethod", + "modelAsString": true + } + }, + "description": "Specifies the mechanism by which access token is passed to the API. ", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-4" + } + }, + "clientSecret": { + "type": "string", + "description": "Client or app secret registered with this authorization server." + }, + "resourceOwnerUsername": { + "type": "string", + "description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username." + }, + "resourceOwnerPassword": { + "type": "string", + "description": "Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password." + } + }, + "description": "External OAuth authorization server Update settings contract." + }, + "AuthorizationServerContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "User-friendly authorization server name.", + "minLength": 1, + "maxLength": 50 + }, + "clientRegistrationEndpoint": { + "type": "string", + "description": "Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced." + }, + "authorizationEndpoint": { + "type": "string", + "description": "OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2." + }, + "grantTypes": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "authorizationCode", + "implicit", + "resourceOwnerPassword", + "clientCredentials" + ], + "x-ms-enum": { + "name": "GrantType", + "modelAsString": true, + "values": [ + { + "value": "authorizationCode", + "description": "Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1." + }, + { + "value": "implicit", + "description": "Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2." + }, + { + "value": "resourceOwnerPassword", + "description": "Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3." + }, + { + "value": "clientCredentials", + "description": "Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4." + } + ] + } + }, + "description": "Form of an authorization grant, which the client uses to request the access token.", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-4" + } + }, + "clientId": { + "type": "string", + "description": "Client or app id registered with this authorization server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AuthorizationServerContractBaseProperties" + } + ], + "required": [ + "displayName", + "clientRegistrationEndpoint", + "authorizationEndpoint", + "clientId", + "grantTypes" + ], + "description": "External OAuth authorization server settings Properties." + }, + "AuthorizationServerUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AuthorizationServerUpdateContractProperties", + "description": "Properties of the External OAuth authorization server update Contract." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "External OAuth authorization server settings." + }, + "AuthorizationServerUpdateContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "User-friendly authorization server name.", + "minLength": 1, + "maxLength": 50 + }, + "clientRegistrationEndpoint": { + "type": "string", + "description": "Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced." + }, + "authorizationEndpoint": { + "type": "string", + "description": "OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2." + }, + "grantTypes": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "authorizationCode", + "implicit", + "resourceOwnerPassword", + "clientCredentials" + ], + "x-ms-enum": { + "name": "GrantType", + "modelAsString": true, + "values": [ + { + "value": "authorizationCode", + "description": "Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1." + }, + { + "value": "implicit", + "description": "Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2." + }, + { + "value": "resourceOwnerPassword", + "description": "Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3." + }, + { + "value": "clientCredentials", + "description": "Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4." + } + ] + } + }, + "description": "Form of an authorization grant, which the client uses to request the access token.", + "externalDocs": { + "url": "http://tools.ietf.org/html/rfc6749#section-4" + } + }, + "clientId": { + "type": "string", + "description": "Client or app id registered with this authorization server." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AuthorizationServerContractBaseProperties" + } + ], + "description": "External OAuth authorization server Update settings contract." + }, + "BackendAuthorizationHeaderCredentials": { + "properties": { + "scheme": { + "type": "string", + "description": "Authentication Scheme name.", + "minLength": 1, + "maxLength": 100 + }, + "parameter": { + "type": "string", + "description": "Authentication Parameter value.", + "minLength": 1, + "maxLength": 300 + } + }, + "required": [ + "scheme", + "parameter" + ], + "description": "Authorization header information." + }, + "BackendBaseParameters": { + "properties": { + "title": { + "type": "string", + "description": "Backend Title.", + "minLength": 1, + "maxLength": 300 + }, + "description": { + "type": "string", + "description": "Backend Description.", + "minLength": 1, + "maxLength": 2000 + }, + "resourceId": { + "type": "string", + "description": "Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.", + "minLength": 1, + "maxLength": 2000 + }, + "properties": { + "$ref": "#/definitions/BackendProperties", + "description": "Backend Properties contract" + }, + "credentials": { + "$ref": "#/definitions/BackendCredentialsContract", + "description": "Backend Credentials Contract Properties" + }, + "proxy": { + "$ref": "#/definitions/BackendProxyContract", + "description": "Backend Proxy Contract Properties" + }, + "tls": { + "$ref": "#/definitions/BackendTlsProperties", + "description": "Backend TLS Properties" + } + }, + "description": "Backend entity base Parameter set." + }, + "BackendCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BackendContract" + }, + "description": "Backend values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Backend list representation." + }, + "BackendContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BackendContractProperties", + "description": "Backend entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Backend details." + }, + "BackendContractProperties": { + "properties": { + "url": { + "type": "string", + "description": "Runtime Url of the Backend.", + "minLength": 1, + "maxLength": 2000 + }, + "protocol": { + "type": "string", + "enum": [ + "http", + "soap" + ], + "x-ms-enum": { + "name": "BackendProtocol", + "modelAsString": true, + "values": [ + { + "value": "http", + "description": "The Backend is a RESTful service." + }, + { + "value": "soap", + "description": "The Backend is a SOAP service." + } + ] + }, + "description": "Backend communication protocol." + } + }, + "allOf": [ + { + "$ref": "#/definitions/BackendBaseParameters" + } + ], + "required": [ + "url", + "protocol" + ], + "description": "Parameters supplied to the Create Backend operation." + }, + "BackendCredentialsContract": { + "properties": { + "certificate": { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 32, + "description": "List of Client Certificate Thumbprint." + }, + "query": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Query Parameter description." + }, + "header": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Header Parameter description." + }, + "authorization": { + "description": "Authorization header authentication", + "$ref": "#/definitions/BackendAuthorizationHeaderCredentials" + } + }, + "description": "Details of the Credentials used to connect to Backend." + }, + "BackendProperties": { + "properties": { + "serviceFabricCluster": { + "$ref": "#/definitions/BackendServiceFabricClusterProperties", + "description": "Backend Service Fabric Cluster Properties" + } + }, + "description": "Properties specific to the Backend Type." + }, + "BackendProxyContract": { + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/system.net.webproxy(v=vs.110).aspx", + "description": "Backend entity uses these details to connect to a WebProxy." + }, + "properties": { + "url": { + "type": "string", + "description": "WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.", + "minLength": 1, + "maxLength": 2000 + }, + "username": { + "type": "string", + "description": "Username to connect to the WebProxy server" + }, + "password": { + "type": "string", + "description": "Password to connect to the WebProxy Server" + } + }, + "required": [ + "url" + ], + "description": "Details of the Backend WebProxy Server to use in the Request to Backend." + }, + "BackendReconnectContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BackendReconnectProperties", + "description": "Reconnect request properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Reconnect request parameters." + }, + "BackendReconnectProperties": { + "properties": { + "after": { + "type": "string", + "format": "duration", + "description": "Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M." + } + }, + "description": "Properties to control reconnect requests." + }, + "BackendServiceFabricClusterProperties": { + "properties": { + "clientCertificatethumbprint": { + "description": "The client certificate thumbprint for the management endpoint.", + "type": "string" + }, + "maxPartitionResolutionRetries": { + "description": "Maximum number of retries while attempting resolve the partition.", + "format": "int32", + "type": "integer" + }, + "managementEndpoints": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The cluster management endpoint." + }, + "serverCertificateThumbprints": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Thumbprints of certificates cluster management service uses for tls communication" + }, + "serverX509Names": { + "type": "array", + "items": { + "$ref": "#/definitions/X509CertificateName" + }, + "description": "Server X509 Certificate Names Collection" + } + }, + "required": [ + "managementEndpoints", + "clientCertificatethumbprint" + ], + "description": "Properties of the Service Fabric Type Backend." + }, + "BackendTlsProperties": { + "properties": { + "validateCertificateChain": { + "description": "Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.", + "type": "boolean", + "default": true + }, + "validateCertificateName": { + "description": "Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.", + "type": "boolean", + "default": true + } + }, + "description": "Properties controlling TLS Certificate Validation." + }, + "BackendUpdateParameterProperties": { + "properties": { + "url": { + "type": "string", + "description": "Runtime Url of the Backend.", + "minLength": 1, + "maxLength": 2000 + }, + "protocol": { + "type": "string", + "enum": [ + "http", + "soap" + ], + "x-ms-enum": { + "name": "BackendProtocol", + "modelAsString": true, + "values": [ + { + "value": "http", + "description": "The Backend is a RESTful service." + }, + { + "value": "soap", + "description": "The Backend is a SOAP service." + } + ] + }, + "description": "Backend communication protocol." + } + }, + "allOf": [ + { + "$ref": "#/definitions/BackendBaseParameters" + } + ], + "description": "Parameters supplied to the Update Backend operation." + }, + "BackendUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BackendUpdateParameterProperties", + "description": "Backend entity update contract properties." + } + }, + "description": "Backend update parameters." + }, + "BearerTokenSendingMethodsContract": { + "type": "string", + "description": "Form of an authorization grant, which the client uses to request the access token.", + "enum": [ + "authorizationHeader", + "query" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "bearerTokenSendingMethods", + "values": [ + { + "value": "authorizationHeader", + "description": "Access token will be transmitted in the Authorization header using Bearer schema" + }, + { + "value": "query", + "description": "Access token will be transmitted as query parameters." + } + ] + } + }, + "BodyDiagnosticSettings": { + "properties": { + "bytes": { + "type": "integer", + "format": "int32", + "maximum": 8192, + "description": "Number of request body bytes to log." + } + }, + "description": "Body logging settings." + }, + "CacheCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CacheContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Caches list representation." + }, + "CacheContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CacheContractProperties", + "description": "Cache properties details." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Cache details." + }, + "CacheContractProperties": { + "properties": { + "description": { + "type": "string", + "description": "Cache description", + "maxLength": 2000 + }, + "connectionString": { + "type": "string", + "description": "Runtime connection string to cache", + "maxLength": 300 + }, + "resourceId": { + "type": "string", + "description": "Original uri of entity in external system cache points to", + "maxLength": 2000 + } + }, + "required": [ + "connectionString" + ], + "description": "Properties of the Cache contract." + }, + "CacheUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CacheUpdateProperties", + "description": "Cache update properties details." + } + }, + "description": "Cache update details." + }, + "CacheUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Cache description", + "maxLength": 2000 + }, + "connectionString": { + "type": "string", + "description": "Runtime connection string to cache", + "maxLength": 300 + }, + "resourceId": { + "type": "string", + "description": "Original uri of entity in external system cache points to", + "maxLength": 2000 + } + }, + "description": "Parameters supplied to the Update Cache operation." + }, + "CertificateCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Certificates list representation." + }, + "CertificateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CertificateContractProperties", + "description": "Certificate properties details." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Certificate details." + }, + "CertificateContractProperties": { + "properties": { + "subject": { + "type": "string", + "description": "Subject attribute of the certificate." + }, + "thumbprint": { + "type": "string", + "description": "Thumbprint of the certificate." + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + } + }, + "required": [ + "subject", + "thumbprint", + "expirationDate" + ], + "description": "Properties of the Certificate contract." + }, + "CertificateCreateOrUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CertificateCreateOrUpdateProperties", + "description": "Certificate create or update properties details." + } + }, + "description": "Certificate create or update details." + }, + "CertificateCreateOrUpdateProperties": { + "properties": { + "data": { + "type": "string", + "description": "Base 64 encoded certificate using the application/x-pkcs12 representation." + }, + "password": { + "type": "string", + "description": "Password for the Certificate" + } + }, + "required": [ + "data", + "password" + ], + "description": "Parameters supplied to the CreateOrUpdate certificate operation." + }, + "CurrentUserIdentity": { + "properties": { + "id": { + "type": "string", + "description": "API Management service user id." + } + } + }, + "DeployConfigurationParameters": { + "properties": { + "branch": { + "type": "string", + "description": "The name of the Git branch from which the configuration is to be deployed to the configuration database." + }, + "force": { + "type": "boolean", + "description": "The value enforcing deleting subscriptions to products that are deleted in this update." + } + }, + "required": [ + "branch" + ], + "description": "Parameters supplied to the Deploy Configuration operation." + }, + "DiagnosticCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Diagnostic list representation." + }, + "DiagnosticContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DiagnosticContractProperties", + "description": "Diagnostic entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Diagnostic details." + }, + "DiagnosticContractProperties": { + "properties": { + "alwaysLog": { + "type": "string", + "enum": [ + "allErrors" + ], + "x-ms-enum": { + "name": "AlwaysLog", + "modelAsString": true, + "values": [ + { + "value": "allErrors", + "description": "Always log all erroneous request regardless of sampling settings." + } + ] + }, + "description": "Specifies for what type of messages sampling settings should not apply." + }, + "loggerId": { + "type": "string", + "description": "Resource Id of a target logger." + }, + "sampling": { + "$ref": "#/definitions/SamplingSettings", + "description": "Sampling settings for Diagnostic." + }, + "frontend": { + "$ref": "#/definitions/PipelineDiagnosticSettings", + "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Gateway." + }, + "backend": { + "$ref": "#/definitions/PipelineDiagnosticSettings", + "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Backend" + }, + "enableHttpCorrelationHeaders": { + "type": "boolean", + "description": "Whether to process Correlation Headers coming to Api Management Service. Only applicable to Application Insights diagnostics. Default is true." + } + }, + "required": [ + "loggerId" + ], + "description": "Diagnostic Entity Properties" + }, + "EmailTemplateCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailTemplateContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged email template list representation." + }, + "EmailTemplateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EmailTemplateContractProperties", + "description": "Email Template entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Email Template details." + }, + "EmailTemplateContractProperties": { + "properties": { + "subject": { + "type": "string", + "description": "Subject of the Template.", + "minLength": 1, + "maxLength": 1000 + }, + "body": { + "type": "string", + "description": "Email Template Body. This should be a valid XDocument", + "minLength": 1 + }, + "title": { + "type": "string", + "description": "Title of the Template." + }, + "description": { + "type": "string", + "description": "Description of the Email Template." + }, + "isDefault": { + "type": "boolean", + "description": "Whether the template is the default template provided by Api Management or has been edited.", + "readOnly": true + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailTemplateParametersContractProperties" + }, + "description": "Email Template Parameter values." + } + }, + "required": [ + "body", + "subject" + ], + "description": "Email Template Contract properties." + }, + "EmailTemplateParametersContractProperties": { + "properties": { + "name": { + "type": "string", + "description": "Template parameter name.", + "minLength": 1, + "maxLength": 256, + "pattern": "^[A-Za-z0-9-._]+$" + }, + "title": { + "type": "string", + "description": "Template parameter title.", + "minLength": 1, + "maxLength": 4096 + }, + "description": { + "type": "string", + "description": "Template parameter description.", + "minLength": 1, + "maxLength": 256, + "pattern": "^[A-Za-z0-9-._]+$" + } + }, + "description": "Email Template Parameter contract." + }, + "EmailTemplateUpdateParameterProperties": { + "properties": { + "subject": { + "type": "string", + "description": "Subject of the Template.", + "minLength": 1, + "maxLength": 1000 + }, + "title": { + "type": "string", + "description": "Title of the Template." + }, + "description": { + "type": "string", + "description": "Description of the Email Template." + }, + "body": { + "type": "string", + "description": "Email Template Body. This should be a valid XDocument", + "minLength": 1 + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailTemplateParametersContractProperties" + }, + "description": "Email Template Parameter values." + } + }, + "description": "Email Template Update Contract properties." + }, + "EmailTemplateUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EmailTemplateUpdateParameterProperties", + "description": "Email Template Update contract properties." + } + }, + "description": "Email Template update Parameters." + }, + "GenerateSsoUrlResult": { + "properties": { + "value": { + "type": "string", + "description": "Redirect Url containing the SSO URL value." + } + }, + "description": "Generate SSO Url operations response details." + }, + "GroupCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GroupContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Group list representation." + }, + "GroupContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GroupContractProperties", + "description": "Group entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Contract details." + }, + "GroupContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Group name.", + "maxLength": 300, + "minLength": 1 + }, + "description": { + "type": "string", + "description": "Group description. Can contain HTML formatting tags.", + "maxLength": 1000 + }, + "builtIn": { + "readOnly": true, + "type": "boolean", + "description": "true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false." + }, + "type": { + "type": "string", + "description": "Group type.", + "enum": [ + "custom", + "system", + "external" + ], + "x-ms-enum": { + "name": "GroupType", + "modelAsString": false + } + }, + "externalId": { + "type": "string", + "description": "For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." + } + }, + "required": [ + "displayName" + ], + "description": "Group contract Properties." + }, + "GroupCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GroupCreateParametersProperties", + "description": "Properties supplied to Create Group operation." + } + }, + "description": "Parameters supplied to the Create Group operation." + }, + "GroupCreateParametersProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Group name.", + "maxLength": 300, + "minLength": 1 + }, + "description": { + "type": "string", + "description": "Group description." + }, + "type": { + "type": "string", + "description": "Group type.", + "enum": [ + "custom", + "system", + "external" + ], + "x-ms-enum": { + "name": "GroupType", + "modelAsString": false + } + }, + "externalId": { + "type": "string", + "description": "Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." + } + }, + "required": [ + "displayName" + ], + "description": "Parameters supplied to the Create Group operation." + }, + "GroupUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GroupUpdateParametersProperties", + "description": "Group entity update contract properties." + } + }, + "description": "Parameters supplied to the Update Group operation." + }, + "GroupUpdateParametersProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Group name.", + "maxLength": 300, + "minLength": 1 + }, + "description": { + "type": "string", + "description": "Group description." + }, + "type": { + "type": "string", + "description": "Group type.", + "enum": [ + "custom", + "system", + "external" + ], + "x-ms-enum": { + "name": "GroupType", + "modelAsString": false + } + }, + "externalId": { + "type": "string", + "description": "Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null." + } + }, + "description": "Parameters supplied to the Update Group operation." + }, + "HttpMessageDiagnostic": { + "properties": { + "headers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of HTTP Headers to log." + }, + "body": { + "$ref": "#/definitions/BodyDiagnosticSettings", + "description": "Body logging settings." + } + }, + "description": "Http message diagnostic settings." + }, + "IdentityProviderBaseParameters": { + "properties": { + "type": { + "type": "string", + "enum": [ + "facebook", + "google", + "microsoft", + "twitter", + "aad", + "aadB2C" + ], + "x-ms-enum": { + "name": "IdentityProviderType", + "modelAsString": true, + "values": [ + { + "value": "facebook", + "description": "Facebook as Identity provider." + }, + { + "value": "google", + "description": "Google as Identity provider." + }, + { + "value": "microsoft", + "description": "Microsoft Live as Identity provider." + }, + { + "value": "twitter", + "description": "Twitter as Identity provider." + }, + { + "value": "aad", + "description": "Azure Active Directory as Identity provider." + }, + { + "value": "aadB2C", + "description": "Azure Active Directory B2C as Identity provider." + } + ] + }, + "description": "Identity Provider Type identifier." + }, + "allowedTenants": { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 32, + "description": "List of Allowed Tenants when configuring Azure Active Directory login." + }, + "authority": { + "type": "string", + "description": "OpenID Connect discovery endpoint hostname for AAD or AAD B2C." + }, + "signupPolicyName": { + "type": "string", + "description": "Signup Policy Name. Only applies to AAD B2C Identity Provider.", + "minLength": 1 + }, + "signinPolicyName": { + "type": "string", + "description": "Signin Policy Name. Only applies to AAD B2C Identity Provider.", + "minLength": 1 + }, + "profileEditingPolicyName": { + "type": "string", + "description": "Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.", + "minLength": 1 + }, + "passwordResetPolicyName": { + "type": "string", + "description": "Password Reset Policy Name. Only applies to AAD B2C Identity Provider.", + "minLength": 1 + } + }, + "description": "Identity Provider Base Parameter Properties." + }, + "IdentityProviderContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IdentityProviderContractProperties", + "description": "Identity Provider contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Identity Provider details." + }, + "IdentityProviderContractProperties": { + "properties": { + "clientId": { + "type": "string", + "description": "Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.", + "minLength": 1 + }, + "clientSecret": { + "type": "string", + "description": "Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.", + "minLength": 1 + } + }, + "allOf": [ + { + "$ref": "#/definitions/IdentityProviderBaseParameters" + } + ], + "required": [ + "clientId", + "clientSecret" + ], + "description": "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users." + }, + "IdentityProviderList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IdentityProviderContract" + }, + "description": "Identity Provider configuration values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "List of all the Identity Providers configured on the service instance." + }, + "IdentityProviderUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IdentityProviderUpdateProperties", + "description": "Identity Provider update properties." + } + }, + "description": "Parameters supplied to update Identity Provider" + }, + "IdentityProviderUpdateProperties": { + "properties": { + "clientId": { + "type": "string", + "description": "Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.", + "minLength": 1 + }, + "clientSecret": { + "type": "string", + "description": "Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.", + "minLength": 1 + } + }, + "allOf": [ + { + "$ref": "#/definitions/IdentityProviderBaseParameters" + } + ], + "description": "Parameters supplied to the Update Identity Provider operation." + }, + "IssueAttachmentCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IssueAttachmentContract" + }, + "description": "Issue Attachment values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Issue Attachment list representation." + }, + "IssueAttachmentContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IssueAttachmentContractProperties", + "description": "Properties of the Issue Attachment." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Issue Attachment Contract details." + }, + "IssueAttachmentContractProperties": { + "properties": { + "title": { + "type": "string", + "description": "Filename by which the binary data will be saved." + }, + "contentFormat": { + "type": "string", + "description": "Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property." + }, + "content": { + "type": "string", + "description": "An HTTP link or Base64-encoded binary data." + } + }, + "required": [ + "title", + "contentFormat", + "content" + ], + "description": "Issue Attachment contract Properties." + }, + "IssueCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IssueContract" + }, + "description": "Issue values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Issue list representation." + }, + "IssueCommentCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IssueCommentContract" + }, + "description": "Issue Comment values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Issue Comment list representation." + }, + "IssueCommentContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IssueCommentContractProperties", + "description": "Properties of the Issue Comment." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Issue Comment Contract details." + }, + "IssueCommentContractProperties": { + "properties": { + "text": { + "type": "string", + "description": "Comment text." + }, + "createdDate": { + "type": "string", + "format": "date-time", + "description": "Date and time when the comment was created." + }, + "userId": { + "type": "string", + "description": "A resource identifier for the user who left the comment." + } + }, + "required": [ + "text", + "userId" + ], + "description": "Issue Comment contract Properties." + }, + "IssueContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IssueContractProperties", + "description": "Properties of the Issue." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Issue Contract details." + }, + "IssueContractBaseProperties": { + "properties": { + "createdDate": { + "type": "string", + "format": "date-time", + "description": "Date and time when the issue was created." + }, + "state": { + "type": "string", + "description": "Status of the issue.", + "enum": [ + "proposed", + "open", + "removed", + "resolved", + "closed" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true, + "values": [ + { + "value": "proposed", + "description": "The issue is proposed." + }, + { + "value": "open", + "description": "The issue is opened." + }, + { + "value": "removed", + "description": "The issue was removed." + }, + { + "value": "resolved", + "description": "The issue is now resolved." + }, + { + "value": "closed", + "description": "The issue was closed." + } + ] + } + }, + "apiId": { + "type": "string", + "description": "A resource identifier for the API the issue was created for." + } + }, + "description": "Issue contract Base Properties." + }, + "IssueContractProperties": { + "properties": { + "title": { + "type": "string", + "description": "The issue title." + }, + "description": { + "type": "string", + "description": "Text describing the issue." + }, + "userId": { + "type": "string", + "description": "A resource identifier for the user created the issue." + } + }, + "required": [ + "title", + "description", + "userId" + ], + "allOf": [ + { + "$ref": "#/definitions/IssueContractBaseProperties" + } + ], + "description": "Issue contract Properties." + }, + "IssueUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IssueUpdateContractProperties", + "description": "Issue entity Update contract properties." + } + }, + "description": "Issue update Parameters." + }, + "IssueUpdateContractProperties": { + "properties": { + "title": { + "type": "string", + "description": "The issue title." + }, + "description": { + "type": "string", + "description": "Text describing the issue." + }, + "userId": { + "type": "string", + "description": "A resource identifier for the user created the issue." + } + }, + "allOf": [ + { + "$ref": "#/definitions/IssueContractBaseProperties" + } + ], + "description": "Issue contract Update Properties." + }, + "LoggerCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LoggerContract" + }, + "description": "Logger values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Logger list representation." + }, + "LoggerContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LoggerContractProperties", + "description": "Logger entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Logger details." + }, + "LoggerContractProperties": { + "properties": { + "loggerType": { + "type": "string", + "description": "Logger type.", + "enum": [ + "azureEventHub", + "applicationInsights" + ], + "x-ms-enum": { + "name": "LoggerType", + "modelAsString": true, + "values": [ + { + "value": "azureEventHub", + "description": "Azure Event Hub as log destination." + }, + { + "value": "applicationInsights", + "description": "Azure Application Insights as log destination." + } + ] + } + }, + "description": { + "type": "string", + "description": "Logger description.", + "maxLength": 256 + }, + "credentials": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The name and SendRule connection string of the event hub for azureEventHub logger.\nInstrumentation key for applicationInsights logger.", + "example": { + "name": "apim", + "connectionString": "Endpoint=sb://contoso-ns.servicebus.windows.net/;SharedAccessKeyName=Sender;SharedAccessKey=..." + } + }, + "isBuffered": { + "type": "boolean", + "description": "Whether records are buffered in the logger before publishing. Default is assumed to be true." + }, + "resourceId": { + "type": "string", + "description": "Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource)." + } + }, + "required": [ + "loggerType", + "credentials" + ], + "description": "The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs." + }, + "LoggerUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LoggerUpdateParameters", + "description": "Logger entity update contract properties." + } + }, + "description": "Logger update contract." + }, + "LoggerUpdateParameters": { + "properties": { + "loggerType": { + "type": "string", + "description": "Logger type.", + "enum": [ + "azureEventHub", + "applicationInsights" + ], + "x-ms-enum": { + "name": "LoggerType", + "modelAsString": true, + "values": [ + { + "value": "azureEventHub", + "description": "Azure Event Hub as log destination." + }, + { + "value": "applicationInsights", + "description": "Azure Application Insights as log destination." + } + ] + } + }, + "description": { + "type": "string", + "description": "Logger description." + }, + "credentials": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Logger credentials." + }, + "isBuffered": { + "type": "boolean", + "description": "Whether records are buffered in the logger before publishing. Default is assumed to be true." + } + }, + "description": "Parameters supplied to the Update Logger operation." + }, + "NotificationCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NotificationContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Notification list representation." + }, + "NotificationContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NotificationContractProperties", + "description": "Notification entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Notification details." + }, + "NotificationContractProperties": { + "properties": { + "title": { + "type": "string", + "description": "Title of the Notification.", + "minLength": 1, + "maxLength": 1000 + }, + "description": { + "type": "string", + "description": "Description of the Notification." + }, + "recipients": { + "$ref": "#/definitions/RecipientsContractProperties", + "description": "Recipient Parameter values." + } + }, + "required": [ + "title" + ], + "description": "Notification Contract properties." + }, + "OAuth2AuthenticationSettingsContract": { + "properties": { + "authorizationServerId": { + "type": "string", + "description": "OAuth authorization server identifier." + }, + "scope": { + "type": "string", + "description": "operations scope." + } + }, + "description": "API OAuth2 Authentication settings details." + }, + "OpenIdAuthenticationSettingsContract": { + "properties": { + "openidProviderId": { + "type": "string", + "description": "OAuth authorization server identifier." + }, + "bearerTokenSendingMethods": { + "description": "How to send token to the server.", + "type": "array", + "items": { + "$ref": "#/definitions/BearerTokenSendingMethodsContract" + } + } + }, + "description": "API OAuth2 Authentication settings details." + }, + "OpenIdConnectProviderCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OpenidConnectProviderContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged OpenIdProviders list representation." + }, + "OpenidConnectProviderContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OpenidConnectProviderContractProperties", + "description": "OpenId Connect Provider contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "OpenId Connect Provider details." + }, + "OpenidConnectProviderContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "User-friendly OpenID Connect Provider name.", + "maxLength": 50 + }, + "description": { + "type": "string", + "description": "User-friendly description of OpenID Connect Provider." + }, + "metadataEndpoint": { + "type": "string", + "description": "Metadata endpoint URI." + }, + "clientId": { + "type": "string", + "description": "Client ID of developer console which is the client application." + }, + "clientSecret": { + "type": "string", + "description": "Client Secret of developer console which is the client application." + } + }, + "required": [ + "displayName", + "metadataEndpoint", + "clientId" + ], + "description": "OpenID Connect Providers Contract." + }, + "OpenidConnectProviderUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OpenidConnectProviderUpdateContractProperties", + "description": "OpenId Connect Provider Update contract properties." + } + }, + "description": "Parameters supplied to the Update OpenID Connect Provider operation." + }, + "OpenidConnectProviderUpdateContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "User-friendly OpenID Connect Provider name.", + "maxLength": 50 + }, + "description": { + "type": "string", + "description": "User-friendly description of OpenID Connect Provider." + }, + "metadataEndpoint": { + "type": "string", + "description": "Metadata endpoint URI." + }, + "clientId": { + "type": "string", + "description": "Client ID of developer console which is the client application." + }, + "clientSecret": { + "type": "string", + "description": "Client Secret of developer console which is the client application." + } + }, + "description": "Parameters supplied to the Update OpenID Connect Provider operation." + }, + "OperationCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationContract" + }, + "description": "Page values.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "Paged Operation list representation." + }, + "OperationContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationContractProperties", + "description": "Properties of the Operation Contract." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Api Operation details." + }, + "OperationContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Operation Name.", + "minLength": 1, + "maxLength": 300 + }, + "method": { + "type": "string", + "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", + "externalDocs": { + "description": "As defined by RFC.", + "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" + } + }, + "urlTemplate": { + "type": "string", + "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", + "minLength": 1, + "maxLength": 1000 + } + }, + "allOf": [ + { + "$ref": "#/definitions/OperationEntityBaseContract" + } + ], + "required": [ + "displayName", + "method", + "urlTemplate" + ], + "description": "Operation Contract Properties" + }, + "OperationEntityBaseContract": { + "properties": { + "templateParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/ParameterContract" + }, + "description": "Collection of URL template parameters." + }, + "description": { + "type": "string", + "description": "Description of the operation. May include HTML formatting tags.", + "maxLength": 1000 + }, + "request": { + "$ref": "#/definitions/RequestContract", + "description": "An entity containing request details." + }, + "responses": { + "type": "array", + "items": { + "$ref": "#/definitions/ResponseContract" + }, + "description": "Array of Operation responses." + }, + "policies": { + "type": "string", + "description": "Operation Policies" + } + }, + "description": "Api Operation Entity Base Contract details." + }, + "OperationResultContract": { + "properties": { + "id": { + "type": "string", + "description": "Operation result identifier." + }, + "status": { + "type": "string", + "description": "Status of an async operation.", + "enum": [ + "Started", + "InProgress", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "AsyncOperationStatus", + "modelAsString": false + } + }, + "started": { + "type": "string", + "format": "date-time", + "description": "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "updated": { + "type": "string", + "format": "date-time", + "description": "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "resultInfo": { + "type": "string", + "description": "Optional result info." + }, + "error": { + "$ref": "./apimanagement.json#/definitions/ErrorResponseBody", + "description": "Error Body Contract" + }, + "actionLog": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationResultLogItemContract" + }, + "readOnly": true, + "description": "This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation." + } + }, + "description": "Operation Result." + }, + "OperationResultLogItemContract": { + "properties": { + "objectType": { + "type": "string", + "description": "The type of entity contract." + }, + "action": { + "type": "string", + "description": "Action like create/update/delete." + }, + "objectKey": { + "type": "string", + "description": "Identifier of the entity being created/updated/deleted." + } + }, + "description": "Log of the entity being created, updated or deleted." + }, + "OperationTagResourceContractProperties": { + "properties": { + "id": { + "type": "string", + "description": "Identifier of the operation in form /operations/{operationId}." + }, + "name": { + "type": "string", + "description": "Operation name.", + "readOnly": true + }, + "apiName": { + "type": "string", + "description": "Api Name.", + "readOnly": true + }, + "apiRevision": { + "type": "string", + "description": "Api Revision.", + "readOnly": true + }, + "apiVersion": { + "type": "string", + "description": "Api Version.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Operation Description.", + "readOnly": true + }, + "method": { + "type": "string", + "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", + "externalDocs": { + "description": "As defined by RFC.", + "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" + }, + "readOnly": true + }, + "urlTemplate": { + "type": "string", + "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", + "readOnly": true + } + }, + "description": "Operation Entity contract Properties." + }, + "OperationUpdateContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationUpdateContractProperties", + "description": "Properties of the API Operation entity that can be updated." + } + }, + "description": "Api Operation Update Contract details." + }, + "OperationUpdateContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Operation Name.", + "minLength": 1, + "maxLength": 300 + }, + "method": { + "type": "string", + "description": "A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.", + "externalDocs": { + "description": "As defined by RFC.", + "url": "http://www.rfc-editor.org/rfc/rfc7230.txt" + } + }, + "urlTemplate": { + "type": "string", + "description": "Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}", + "minLength": 1, + "maxLength": 1000 + } + }, + "allOf": [ + { + "$ref": "#/definitions/OperationEntityBaseContract" + } + ], + "description": "Operation Update Contract Properties." + }, + "ParameterContract": { + "properties": { + "name": { + "type": "string", + "description": "Parameter name." + }, + "description": { + "type": "string", + "description": "Parameter description." + }, + "type": { + "type": "string", + "description": "Parameter type." + }, + "defaultValue": { + "type": "string", + "description": "Default parameter value." + }, + "required": { + "type": "boolean", + "description": "whether parameter is required or not." + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Parameter values." + } + }, + "required": [ + "name", + "type" + ], + "description": "Operation parameters details." + }, + "PipelineDiagnosticSettings": { + "properties": { + "request": { + "$ref": "#/definitions/HttpMessageDiagnostic", + "description": "Diagnostic settings for request." + }, + "response": { + "$ref": "#/definitions/HttpMessageDiagnostic", + "description": "Diagnostic settings for response." + } + }, + "description": "Diagnostic settings for incoming/outgoing HTTP messages to the Gateway." + }, + "PolicyCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyContract" + }, + "description": "Policy Contract value." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "The response of the list policy operation." + }, + "PolicyContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyContractProperties", + "description": "Properties of the Policy." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Policy Contract details." + }, + "PolicyContractProperties": { + "properties": { + "policyContent": { + "type": "string", + "description": "Json escaped Xml Encoded contents of the Policy." + }, + "contentFormat": { + "type": "string", + "description": "Format of the policyContent.", + "enum": [ + "xml", + "xml-link", + "rawxml", + "rawxml-link" + ], + "x-ms-enum": { + "name": "PolicyContentFormat", + "modelAsString": true, + "values": [ + { + "value": "xml", + "description": "The contents are inline and Content type is an XML document." + }, + { + "value": "xml-link", + "description": "The policy XML document is hosted on a http endpoint accessible from the API Management service." + }, + { + "value": "rawxml", + "description": "The contents are inline and Content type is a non XML encoded policy document." + }, + { + "value": "rawxml-link", + "description": "The policy document is not Xml encoded and is hosted on a http endpoint accessible from the API Management service." + } + ] + }, + "default": "xml" + } + }, + "required": [ + "policyContent" + ], + "description": "Policy contract Properties." + }, + "PolicySnippetContract": { + "properties": { + "name": { + "type": "string", + "description": "Snippet name.", + "readOnly": true + }, + "content": { + "type": "string", + "description": "Snippet content.", + "readOnly": true + }, + "toolTip": { + "type": "string", + "description": "Snippet toolTip.", + "readOnly": true + }, + "scope": { + "type": "integer", + "description": "Binary OR value of the Snippet scope.", + "readOnly": true + } + }, + "description": "Policy snippet." + }, + "PolicySnippetsCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicySnippetContract" + }, + "description": "Policy snippet value." + } + }, + "description": "The response of the list policy snippets operation." + }, + "PortalDelegationSettings": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PortalDelegationSettingsProperties", + "description": "Delegation settings contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Delegation settings for a developer portal." + }, + "PortalDelegationSettingsProperties": { + "properties": { + "url": { + "type": "string", + "description": "A delegation Url." + }, + "validationKey": { + "type": "string", + "description": "A base64-encoded validation key to validate, that a request is coming from Azure API Management." + }, + "subscriptions": { + "$ref": "#/definitions/SubscriptionsDelegationSettingsProperties", + "description": "Subscriptions delegation settings." + }, + "userRegistration": { + "$ref": "#/definitions/RegistrationDelegationSettingsProperties", + "description": "User registration delegation settings." + } + }, + "description": "Delegation settings contract properties." + }, + "PortalSigninSettingProperties": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Redirect Anonymous users to the Sign-In page." + } + }, + "description": "Sign-in settings contract properties." + }, + "PortalSigninSettings": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PortalSigninSettingProperties", + "description": "Sign-in settings contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Sign-In settings for the Developer Portal." + }, + "PortalSignupSettings": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PortalSignupSettingsProperties", + "description": "Sign-up settings contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Sign-Up settings for a developer portal." + }, + "PortalSignupSettingsProperties": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Allow users to sign up on a developer portal." + }, + "termsOfService": { + "type": "object", + "$ref": "#/definitions/TermsOfServiceProperties", + "description": "Terms of service contract properties." + } + }, + "description": "Sign-up settings contract properties." + }, + "ProductCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Products list representation." + }, + "ProductContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProductContractProperties", + "description": "Product entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Product details." + }, + "ProductContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Product name.", + "minLength": 1, + "maxLength": 300 + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProductEntityBaseParameters" + } + ], + "required": [ + "displayName" + ], + "description": "Product profile." + }, + "ProductEntityBaseParameters": { + "properties": { + "description": { + "type": "string", + "description": "Product description. May include HTML formatting tags.", + "minLength": 1, + "maxLength": 1000 + }, + "terms": { + "type": "string", + "description": "Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process." + }, + "subscriptionRequired": { + "description": "Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as \"protected\" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as \"open\" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true.", + "type": "boolean" + }, + "approvalRequired": { + "description": "whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.", + "type": "boolean" + }, + "subscriptionsLimit": { + "type": "integer", + "format": "int32", + "description": "Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false." + }, + "state": { + "type": "string", + "description": "whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.", + "enum": [ + "notPublished", + "published" + ], + "x-ms-enum": { + "name": "ProductState", + "modelAsString": false + } + } + }, + "description": "Product Entity Base Parameters" + }, + "ProductTagResourceContractProperties": { + "properties": { + "id": { + "type": "string", + "description": "Identifier of the product in the form of /products/{productId}" + }, + "name": { + "type": "string", + "description": "Product name.", + "minLength": 1, + "maxLength": 300 + } + }, + "allOf": [ + { + "$ref": "./definitions.json#/definitions/ProductEntityBaseParameters" + } + ], + "required": [ + "name" + ], + "description": "Product profile." + }, + "ProductUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProductUpdateProperties", + "description": "Product entity Update contract properties." + } + }, + "description": "Product Update parameters." + }, + "ProductUpdateProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Product name.", + "maxLength": 300, + "minLength": 1 + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProductEntityBaseParameters" + } + ], + "description": "Parameters supplied to the Update Product operation." + }, + "PropertyCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PropertyContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Property list representation." + }, + "PropertyContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PropertyContractProperties", + "description": "Property entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Property details." + }, + "PropertyContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters.", + "minLength": 1, + "maxLength": 256, + "pattern": "^[A-Za-z0-9-._]+$" + }, + "value": { + "type": "string", + "description": "Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace.", + "minLength": 1, + "maxLength": 4096 + } + }, + "allOf": [ + { + "$ref": "#/definitions/PropertyEntityBaseParameters" + } + ], + "required": [ + "displayName", + "value" + ], + "description": "Property Contract properties." + }, + "PropertyEntityBaseParameters": { + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 32, + "description": "Optional tags that when provided can be used to filter the property list." + }, + "secret": { + "description": "Determines whether the value is a secret and should be encrypted or not. Default value is false.", + "type": "boolean" + } + }, + "description": "Property Entity Base Parameters set." + }, + "PropertyUpdateParameterProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters.", + "minLength": 1, + "maxLength": 256, + "pattern": "^[A-Za-z0-9-._]+$" + }, + "value": { + "type": "string", + "description": "Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace.", + "minLength": 1, + "maxLength": 4096 + } + }, + "allOf": [ + { + "$ref": "#/definitions/PropertyEntityBaseParameters" + } + ], + "description": "Property Contract properties." + }, + "PropertyUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PropertyUpdateParameterProperties", + "description": "Property entity Update contract properties." + } + }, + "description": "Property update Parameters." + }, + "QuotaCounterCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/QuotaCounterContract" + }, + "description": "Quota counter values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Quota Counter list representation." + }, + "QuotaCounterContract": { + "properties": { + "counterKey": { + "type": "string", + "description": "The Key value of the Counter. Must not be empty.", + "minLength": 1 + }, + "periodKey": { + "type": "string", + "description": "Identifier of the Period for which the counter was collected. Must not be empty.", + "minLength": 1 + }, + "periodStartTime": { + "type": "string", + "format": "date-time", + "description": "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "periodEndTime": { + "type": "string", + "format": "date-time", + "description": "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "value": { + "$ref": "#/definitions/QuotaCounterValueContractProperties", + "description": "Quota Value Properties" + } + }, + "required": [ + "counterKey", + "periodKey", + "periodStartTime", + "periodEndTime" + ], + "description": "Quota counter details." + }, + "QuotaCounterValueContract": { + "properties": { + "value": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/QuotaCounterValueContractProperties", + "description": "Quota counter Value Properties." + } + }, + "description": "Quota counter value details." + }, + "QuotaCounterValueContractProperties": { + "properties": { + "callsCount": { + "type": "integer", + "format": "int32", + "description": "Number of times Counter was called." + }, + "kbTransferred": { + "type": "number", + "format": "double", + "description": "Data Transferred in KiloBytes." + } + }, + "description": "Quota counter value details." + }, + "RecipientEmailCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RecipientEmailContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Recipient User list representation." + }, + "RecipientEmailContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecipientEmailContractProperties", + "description": "Recipient Email contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Recipient Email details." + }, + "RecipientEmailContractProperties": { + "properties": { + "email": { + "type": "string", + "description": "User Email subscribed to notification." + } + }, + "description": "Recipient Email Contract Properties." + }, + "RecipientsContractProperties": { + "properties": { + "emails": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Emails subscribed for the notification." + }, + "users": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Users subscribed for the notification." + } + }, + "description": "Notification Parameter contract." + }, + "RecipientUserCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RecipientUserContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Recipient User list representation." + }, + "RecipientUserContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecipientUsersContractProperties", + "description": "Recipient User entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Recipient User details." + }, + "RecipientUsersContractProperties": { + "properties": { + "userId": { + "type": "string", + "description": "API Management UserId subscribed to notification." + } + }, + "description": "Recipient User Contract Properties." + }, + "RegistrationDelegationSettingsProperties": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable or disable delegation for user registration." + } + }, + "description": "User registration delegation settings properties." + }, + "ReportCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReportRecordContract" + }, + "description": "Page values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Report records list representation." + }, + "ReportRecordContract": { + "properties": { + "name": { + "type": "string", + "description": "Name depending on report endpoint specifies product, API, operation or developer name." + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "interval": { + "type": "string", + "description": "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)." + }, + "country": { + "type": "string", + "description": "Country to which this record data is related." + }, + "region": { + "type": "string", + "description": "Country region to which this record data is related." + }, + "zip": { + "type": "string", + "description": "Zip code to which this record data is related." + }, + "userId": { + "readOnly": true, + "type": "string", + "description": "User identifier path. /users/{userId}" + }, + "productId": { + "readOnly": true, + "type": "string", + "description": "Product identifier path. /products/{productId}" + }, + "apiId": { + "type": "string", + "description": "API identifier path. /apis/{apiId}" + }, + "operationId": { + "type": "string", + "description": "Operation identifier path. /apis/{apiId}/operations/{operationId}" + }, + "apiRegion": { + "type": "string", + "description": "API region identifier." + }, + "subscriptionId": { + "type": "string", + "description": "Subscription identifier path. /subscriptions/{subscriptionId}" + }, + "callCountSuccess": { + "type": "integer", + "format": "int32", + "description": "Number of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect" + }, + "callCountBlocked": { + "type": "integer", + "format": "int32", + "description": "Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests" + }, + "callCountFailed": { + "type": "integer", + "format": "int32", + "description": "Number of calls failed due to proxy or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600" + }, + "callCountOther": { + "type": "integer", + "format": "int32", + "description": "Number of other calls." + }, + "callCountTotal": { + "type": "integer", + "format": "int32", + "description": "Total number of calls." + }, + "bandwidth": { + "type": "integer", + "format": "int64", + "description": "Bandwidth consumed." + }, + "cacheHitCount": { + "type": "integer", + "format": "int32", + "description": "Number of times when content was served from cache policy." + }, + "cacheMissCount": { + "type": "integer", + "format": "int32", + "description": "Number of times content was fetched from backend." + }, + "apiTimeAvg": { + "type": "number", + "format": "double", + "description": "Average time it took to process request." + }, + "apiTimeMin": { + "type": "number", + "format": "double", + "description": "Minimum time it took to process request." + }, + "apiTimeMax": { + "type": "number", + "format": "double", + "description": "Maximum time it took to process request." + }, + "serviceTimeAvg": { + "type": "number", + "format": "double", + "description": "Average time it took to process request on backend." + }, + "serviceTimeMin": { + "type": "number", + "format": "double", + "description": "Minimum time it took to process request on backend." + }, + "serviceTimeMax": { + "type": "number", + "format": "double", + "description": "Maximum time it took to process request on backend." + } + }, + "description": "Report data." + }, + "RepresentationContract": { + "properties": { + "contentType": { + "type": "string", + "description": "Specifies a registered or custom content type for this representation, e.g. application/xml." + }, + "sample": { + "type": "string", + "description": "An example of the representation." + }, + "schemaId": { + "type": "string", + "description": "Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'." + }, + "typeName": { + "type": "string", + "description": "Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'." + }, + "formParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/ParameterContract" + }, + "description": "Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.." + } + }, + "required": [ + "contentType" + ], + "description": "Operation request/response representation details." + }, + "RequestContract": { + "properties": { + "description": { + "type": "string", + "description": "Operation request description." + }, + "queryParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/ParameterContract" + }, + "description": "Collection of operation request query parameters." + }, + "headers": { + "type": "array", + "items": { + "$ref": "#/definitions/ParameterContract" + }, + "description": "Collection of operation request headers." + }, + "representations": { + "type": "array", + "items": { + "$ref": "#/definitions/RepresentationContract" + }, + "description": "Collection of operation request representations." + } + }, + "description": "Operation request details." + }, + "RequestReportCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RequestReportRecordContract" + }, + "description": "Page values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + } + }, + "description": "Paged Report records list representation." + }, + "RequestReportRecordContract": { + "properties": { + "apiId": { + "type": "string", + "description": "API identifier path. /apis/{apiId}" + }, + "operationId": { + "type": "string", + "description": "Operation identifier path. /apis/{apiId}/operations/{operationId}" + }, + "productId": { + "readOnly": true, + "type": "string", + "description": "Product identifier path. /products/{productId}" + }, + "userId": { + "readOnly": true, + "type": "string", + "description": "User identifier path. /users/{userId}" + }, + "method": { + "type": "string", + "description": "The HTTP method associated with this request.." + }, + "url": { + "type": "string", + "description": "The full URL associated with this request." + }, + "ipAddress": { + "type": "string", + "description": "The client IP address associated with this request." + }, + "backendResponseCode": { + "type": "string", + "description": "The HTTP status code received by the gateway as a result of forwarding this request to the backend." + }, + "responseCode": { + "type": "integer", + "format": "int32", + "description": "The HTTP status code returned by the gateway." + }, + "responseSize": { + "type": "integer", + "format": "int32", + "description": "The size of the response returned by the gateway." + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The date and time when this request was received by the gateway in ISO 8601 format." + }, + "cache": { + "type": "string", + "description": "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend." + }, + "apiTime": { + "type": "number", + "format": "double", + "description": "The total time it took to process this request." + }, + "serviceTime": { + "type": "number", + "format": "double", + "description": "he time it took to forward this request to the backend and get the response back." + }, + "apiRegion": { + "type": "string", + "description": "Azure region where the gateway that processed this request is located." + }, + "subscriptionId": { + "type": "string", + "description": "Subscription identifier path. /subscriptions/{subscriptionId}" + }, + "requestId": { + "type": "string", + "description": "Request Identifier." + }, + "requestSize": { + "type": "integer", + "format": "int32", + "description": "The size of this request.." + } + }, + "description": "Request Report data." + }, + "ResponseContract": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32", + "description": "Operation response HTTP status code." + }, + "description": { + "type": "string", + "description": "Operation response description." + }, + "representations": { + "type": "array", + "items": { + "$ref": "#/definitions/RepresentationContract" + }, + "description": "Collection of operation response representations." + }, + "headers": { + "type": "array", + "items": { + "$ref": "#/definitions/ParameterContract" + }, + "description": "Collection of operation response headers." + } + }, + "required": [ + "statusCode" + ], + "description": "Operation response details." + }, + "SamplingSettings": { + "properties": { + "samplingType": { + "type": "string", + "description": "Sampling type.", + "enum": [ + "fixed" + ], + "x-ms-enum": { + "name": "SamplingType", + "modelAsString": true, + "values": [ + { + "value": "fixed", + "description": "Fixed-rate sampling." + } + ] + } + }, + "percentage": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100, + "description": "Rate of sampling for fixed-rate sampling." + } + }, + "description": "Sampling settings for Diagnostic." + }, + "SaveConfigurationParameter": { + "properties": { + "branch": { + "type": "string", + "description": "The name of the Git branch in which to commit the current configuration snapshot." + }, + "force": { + "type": "boolean", + "description": "The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten." + } + }, + "required": [ + "branch" + ], + "description": "Parameters supplied to the Save Tenant Configuration operation." + }, + "SchemaCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaContract" + }, + "description": "Api Schema Contract value.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Next page link if any.", + "readOnly": true + } + }, + "description": "The response of the list schema operation." + }, + "SchemaContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SchemaContractProperties", + "description": "Properties of the Schema." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Schema Contract details." + }, + "SchemaContractProperties": { + "properties": { + "contentType": { + "type": "string", + "description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml)." + }, + "document": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SchemaDocumentProperties", + "description": "Properties of the Schema Document." + } + }, + "required": [ + "contentType" + ], + "description": "Schema contract Properties." + }, + "SchemaDocumentProperties": { + "properties": { + "value": { + "type": "string", + "description": "Json escaped string defining the document representing the Schema." + } + }, + "description": "Schema Document Properties." + }, + "SubscriptionCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SubscriptionContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Subscriptions list representation." + }, + "SubscriptionContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SubscriptionContractProperties", + "description": "Subscription contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Subscription details." + }, + "SubscriptionContractProperties": { + "properties": { + "ownerId": { + "type": "string", + "description": "The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier." + }, + "scope": { + "type": "string", + "description": "Scope like /products/{productId} or /apis or /apis/{apiId}." + }, + "displayName": { + "type": "string", + "description": "The name of the subscription, or null if the subscription has no name.", + "minLength": 0, + "maxLength": 100 + }, + "state": { + "type": "string", + "description": "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", + "enum": [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ], + "x-ms-enum": { + "name": "SubscriptionState", + "modelAsString": false + } + }, + "createdDate": { + "type": "string", + "format": "date-time", + "description": "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n", + "readOnly": true + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "notificationDate": { + "type": "string", + "format": "date-time", + "description": "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "primaryKey": { + "type": "string", + "description": "Subscription primary key.", + "minLength": 1, + "maxLength": 256 + }, + "secondaryKey": { + "type": "string", + "description": "Subscription secondary key.", + "minLength": 1, + "maxLength": 256 + }, + "stateComment": { + "type": "string", + "description": "Optional subscription comment added by an administrator." + }, + "allowTracing": { + "type": "boolean", + "description": "Determines whether tracing is enabled", + "x-apim-code-nillable": true + } + }, + "required": [ + "scope", + "state", + "primaryKey", + "secondaryKey" + ], + "description": "Subscription details." + }, + "SubscriptionCreateParameterProperties": { + "properties": { + "ownerId": { + "type": "string", + "description": "User (user id path) for whom subscription is being created in form /users/{userId}" + }, + "scope": { + "type": "string", + "description": "Scope like /products/{productId} or /apis or /apis/{apiId}." + }, + "displayName": { + "type": "string", + "description": "Subscription name.", + "minLength": 1, + "maxLength": 100 + }, + "primaryKey": { + "type": "string", + "description": "Primary subscription key. If not specified during request key will be generated automatically.", + "minLength": 1, + "maxLength": 256 + }, + "secondaryKey": { + "type": "string", + "description": "Secondary subscription key. If not specified during request key will be generated automatically.", + "minLength": 1, + "maxLength": 256 + }, + "state": { + "type": "string", + "description": "Initial subscription state. If no value is specified, subscription is created with Submitted state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", + "enum": [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ], + "x-ms-enum": { + "name": "SubscriptionState", + "modelAsString": false + } + }, + "allowTracing": { + "type": "boolean", + "description": "Determines whether tracing can be enabled" + } + }, + "required": [ + "scope", + "displayName" + ], + "description": "Parameters supplied to the Create subscription operation." + }, + "SubscriptionCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SubscriptionCreateParameterProperties", + "description": "Subscription contract properties." + } + }, + "description": "Subscription create details." + }, + "SubscriptionKeyParameterNamesContract": { + "properties": { + "header": { + "type": "string", + "description": "Subscription key header name." + }, + "query": { + "type": "string", + "description": "Subscription key query string parameter name." + } + }, + "description": "Subscription key parameter names details.", + "example": { + "subscriptionKeyParameterNames": { + "query": "customQueryParameterName", + "header": "customHeaderParameterName" + } + } + }, + "SubscriptionsDelegationSettingsProperties": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable or disable delegation for subscriptions." + } + }, + "description": "Subscriptions delegation settings properties." + }, + "SubscriptionUpdateParameterProperties": { + "properties": { + "ownerId": { + "type": "string", + "description": "User identifier path: /users/{userId}" + }, + "scope": { + "type": "string", + "description": "Scope like /products/{productId} or /apis or /apis/{apiId}" + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard." + }, + "displayName": { + "type": "string", + "description": "Subscription name." + }, + "primaryKey": { + "type": "string", + "description": "Primary subscription key.", + "minLength": 1, + "maxLength": 256 + }, + "secondaryKey": { + "type": "string", + "description": "Secondary subscription key.", + "minLength": 1, + "maxLength": 256 + }, + "state": { + "type": "string", + "description": "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.", + "enum": [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ], + "x-ms-enum": { + "name": "SubscriptionState", + "modelAsString": false + } + }, + "stateComment": { + "type": "string", + "description": "Comments describing subscription state change by the administrator." + }, + "allowTracing": { + "type": "boolean", + "description": "Determines whether tracing can be enabled" + } + }, + "description": "Parameters supplied to the Update subscription operation." + }, + "SubscriptionUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SubscriptionUpdateParameterProperties", + "description": "Subscription Update contract properties." + } + }, + "description": "Subscription update details." + }, + "TagCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TagContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Tag list representation." + }, + "TagContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagContractProperties", + "description": "Tag entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Tag Contract details." + }, + "TagContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Tag name.", + "maxLength": 160, + "minLength": 1 + } + }, + "required": [ + "displayName" + ], + "description": "Tag contract Properties." + }, + "TagCreateUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagContractProperties", + "description": "Properties supplied to Create Tag operation." + } + }, + "description": "Parameters supplied to Create/Update Tag operations." + }, + "TagDescriptionBaseProperties": { + "properties": { + "description": { + "type": "string", + "description": "Description of the Tag." + }, + "externalDocsUrl": { + "type": "string", + "description": "Absolute URL of external resources describing the tag.", + "maxLength": 2000 + }, + "externalDocsDescription": { + "type": "string", + "description": "Description of the external resources describing the tag." + } + }, + "description": "Parameters supplied to the Create TagDescription operation." + }, + "TagDescriptionCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TagDescriptionContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged TagDescription list representation." + }, + "TagDescriptionContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagDescriptionContractProperties", + "description": "TagDescription entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "Contract details." + }, + "TagDescriptionContractProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "Tag name.", + "maxLength": 160, + "minLength": 1 + } + }, + "allOf": [ + { + "$ref": "#/definitions/TagDescriptionBaseProperties" + } + ], + "description": "TagDescription contract Properties." + }, + "TagDescriptionCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagDescriptionBaseProperties", + "description": "Properties supplied to Create TagDescription operation." + } + }, + "description": "Parameters supplied to the Create TagDescription operation." + }, + "TagResourceCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TagResourceContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Tag list representation." + }, + "TagResourceContract": { + "properties": { + "tag": { + "$ref": "#/definitions/TagTagResourceContractProperties", + "description": "Tag associated with the resource." + }, + "api": { + "$ref": "#/definitions/ApiTagResourceContractProperties", + "description": "Api associated with the tag." + }, + "operation": { + "$ref": "#/definitions/OperationTagResourceContractProperties", + "description": "Operation associated with the tag." + }, + "product": { + "$ref": "#/definitions/ProductTagResourceContractProperties", + "description": "Product associated with the tag." + } + }, + "required": [ + "tag" + ], + "description": "TagResource contract properties." + }, + "TagTagResourceContractProperties": { + "properties": { + "id": { + "type": "string", + "description": "Tag identifier" + }, + "name": { + "type": "string", + "description": "Tag Name", + "minLength": 1, + "maxLength": 160 + } + }, + "description": "Contract defining the Tag property in the Tag Resource Contract" + }, + "TenantConfigurationSyncStateContract": { + "properties": { + "branch": { + "type": "string", + "description": "The name of Git branch." + }, + "commitId": { + "type": "string", + "description": "The latest commit Id." + }, + "isExport": { + "type": "boolean", + "description": "value indicating if last sync was save (true) or deploy (false) operation." + }, + "isSynced": { + "type": "boolean", + "description": "value indicating if last synchronization was later than the configuration change." + }, + "isGitEnabled": { + "type": "boolean", + "description": "value indicating whether Git configuration access is enabled." + }, + "syncDate": { + "type": "string", + "format": "date-time", + "description": "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "configurationChangeDate": { + "type": "string", + "format": "date-time", + "description": "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + } + }, + "description": "Tenant Configuration Synchronization State." + }, + "TermsOfServiceProperties": { + "properties": { + "text": { + "type": "string", + "description": "A terms of service text." + }, + "enabled": { + "type": "boolean", + "description": "Display terms of service during a sign-up process." + }, + "consentRequired": { + "type": "boolean", + "description": "Ask user for consent to the terms of service." + } + }, + "description": "Terms of service contract properties." + }, + "TokenBodyParameterContract": { + "properties": { + "name": { + "type": "string", + "description": "body parameter name." + }, + "value": { + "type": "string", + "description": "body parameter value." + } + }, + "required": [ + "name", + "value" + ], + "description": "OAuth acquire token request body parameter (www-url-form-encoded)." + }, + "UserCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UserContract" + }, + "description": "Page values." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "Paged Users list representation." + }, + "UserContract": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UserContractProperties", + "description": "User entity contract properties." + } + }, + "allOf": [ + { + "$ref": "./apimanagement.json#/definitions/Resource" + } + ], + "description": "User details." + }, + "UserContractProperties": { + "properties": { + "firstName": { + "type": "string", + "description": "First name." + }, + "lastName": { + "type": "string", + "description": "Last name." + }, + "email": { + "type": "string", + "description": "Email address." + }, + "registrationDate": { + "type": "string", + "format": "date-time", + "description": "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + }, + "groups": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./definitions.json#/definitions/GroupContractProperties" + }, + "description": "Collection of groups user is part of." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UserEntityBaseParameters" + } + ], + "description": "User profile." + }, + "UserCreateParameterProperties": { + "properties": { + "email": { + "type": "string", + "description": "Email address. Must not be empty and must be unique within the service instance.", + "minLength": 1, + "maxLength": 254 + }, + "firstName": { + "type": "string", + "description": "First name.", + "minLength": 1, + "maxLength": 100 + }, + "lastName": { + "type": "string", + "description": "Last name.", + "minLength": 1, + "maxLength": 100 + }, + "password": { + "type": "string", + "description": "User Password. If no value is provided, a default password is generated." + }, + "confirmation": { + "type": "string", + "description": "Determines the type of confirmation e-mail that will be sent to the newly created user.", + "enum": [ + "signup", + "invite" + ], + "x-ms-enum": { + "name": "Confirmation", + "modelAsString": true, + "values": [ + { + "value": "signup", + "description": "Send an e-mail to the user confirming they have successfully signed up." + }, + { + "value": "invite", + "description": "Send an e-mail inviting the user to sign-up and complete registration." + } + ] + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/UserEntityBaseParameters" + } + ], + "required": [ + "email", + "firstName", + "lastName" + ], + "description": "Parameters supplied to the Create User operation." + }, + "UserCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UserCreateParameterProperties", + "description": "User entity create contract properties." + } + }, + "description": "User create details." + }, + "UserEntityBaseParameters": { + "properties": { + "state": { + "type": "string", + "description": "Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.", + "enum": [ + "active", + "blocked", + "pending", + "deleted" + ], + "default": "active", + "x-ms-enum": { + "name": "UserState", + "modelAsString": true, + "values": [ + { + "value": "active", + "description": "User state is active." + }, + { + "value": "blocked", + "description": "User is blocked. Blocked users cannot authenticate at developer portal or call API." + }, + { + "value": "pending", + "description": "User account is pending. Requires identity confirmation before it can be made active." + }, + { + "value": "deleted", + "description": "User account is closed. All identities and related entities are removed." + } + ] + } + }, + "note": { + "type": "string", + "description": "Optional note about a user set by the administrator." + }, + "identities": { + "type": "array", + "items": { + "$ref": "#/definitions/UserIdentityContract" + }, + "description": "Collection of user identities." + } + }, + "description": "User Entity Base Parameters set." + }, + "UserIdentityCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UserIdentityContract" + }, + "description": "User Identity values." + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Total record count number across all pages." + }, + "nextLink": { + "type": "string", + "description": "Next page link if any." + } + }, + "description": "List of Users Identity list representation." + }, + "UserIdentityContract": { + "properties": { + "provider": { + "type": "string", + "description": "Identity provider name." + }, + "id": { + "type": "string", + "description": "Identifier value within provider." + } + }, + "description": "User identity details." + }, + "UserTokenParameters": { + "properties": { + "keyType": { + "type": "string", + "description": "The Key to be used to generate token for user.", + "enum": [ + "primary", + "secondary" + ], + "default": "primary", + "x-ms-enum": { + "name": "KeyType", + "modelAsString": false + } + }, + "expiry": { + "type": "string", + "format": "date-time", + "description": "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n" + } + }, + "required": [ + "keyType", + "expiry" + ], + "description": "Parameters supplied to the Get User Token operation." + }, + "UserTokenResult": { + "properties": { + "value": { + "type": "string", + "description": "Shared Access Authorization token for the User." + } + }, + "description": "Get User Token response details." + }, + "UserUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UserUpdateParametersProperties", + "description": "User entity update contract properties." + } + }, + "description": "User update parameters." + }, + "UserUpdateParametersProperties": { + "properties": { + "email": { + "type": "string", + "description": "Email address. Must not be empty and must be unique within the service instance.", + "minLength": 1, + "maxLength": 254 + }, + "password": { + "type": "string", + "description": "User Password." + }, + "firstName": { + "type": "string", + "description": "First name.", + "minLength": 1, + "maxLength": 100 + }, + "lastName": { + "type": "string", + "description": "Last name.", + "minLength": 1, + "maxLength": 100 + } + }, + "allOf": [ + { + "$ref": "#/definitions/UserEntityBaseParameters" + } + ], + "description": "Parameters supplied to the Update User operation." + }, + "X509CertificateName": { + "properties": { + "name": { + "description": "Common Name of the Certificate.", + "type": "string" + }, + "issuerCertificateThumbprint": { + "description": "Thumbprint for the Issuer of the Certificate.", + "type": "string" + } + }, + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-windows-cluster-x509-security" + }, + "description": "Properties of server X509Names." + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/readme.md b/specification/apimanagement/resource-manager/readme.md index c35b42f9bcd0..e91da0353cca 100644 --- a/specification/apimanagement/resource-manager/readme.md +++ b/specification/apimanagement/resource-manager/readme.md @@ -69,6 +69,7 @@ input-file: - Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json - Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json - Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json +- Microsoft.ApiManagement/preview/2018-06-01-preview/definitions.json ``` ## Suppression