Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
IssueCommentContract,
IssueContract,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
ApiReleaseContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
ProductContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
ProductContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export {
ErrorFieldContract,
ApiSchemaGetEntityTagHeaders,
ApiSchemaGetHeaders,
SchemaCreateOrUpdateContract,
ApiSchemaCreateOrUpdateHeaders,
TagContract,
TagDescriptionContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
IssueCommentContract,
IssueContract,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
30 changes: 29 additions & 1 deletion sdk/apimanagement/arm-apimanagement/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,35 @@ export interface SchemaContract extends Resource {
/**
* @member {string} contentType 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 (e.g. application/json, application/xml). </br> - `Swagger`
* Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br>
* - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> -
* `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> -
* `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`.
*/
contentType: string;
/**
* @member {any} [document] Properties of the Schema Document.
*/
document?: any;
}

/**
* @interface
* An interface representing SchemaCreateOrUpdateContract.
* Schema Contract details.
*
* @extends Resource
*/
export interface SchemaCreateOrUpdateContract extends Resource {
/**
* @member {string} contentType 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). </br> - `Swagger`
* Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br>
* - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> -
* `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> -
* `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`.
*/
contentType: string;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
24 changes: 24 additions & 0 deletions sdk/apimanagement/arm-apimanagement/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,30 @@ export const SchemaContract: msRest.CompositeMapper = {
type: {
name: "Composite",
className: "SchemaContract",
modelProperties: {
...Resource.type.modelProperties,
contentType: {
required: true,
serializedName: "properties.contentType",
type: {
name: "String"
}
},
document: {
serializedName: "properties.document",
type: {
name: "Object"
}
}
}
}
};

export const SchemaCreateOrUpdateContract: msRest.CompositeMapper = {
serializedName: "SchemaCreateOrUpdateContract",
type: {
name: "Composite",
className: "SchemaCreateOrUpdateContract",
modelProperties: {
...Resource.type.modelProperties,
contentType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
ProductContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
ProductContract,
OperationContract,
ParameterContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export {
HttpMessageDiagnostic,
BodyDiagnosticSettings,
SchemaContract,
SchemaCreateOrUpdateContract,
PolicyContract,
ProductContract,
OperationContract,
Expand Down
Loading