diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go index 0ae3068dc44b..a2f38c4a2f7a 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go @@ -110,6 +110,9 @@ const ( type ContentFormat = original.ContentFormat const ( + Openapi ContentFormat = original.Openapi + Openapijson ContentFormat = original.Openapijson + OpenapiLink ContentFormat = original.OpenapiLink SwaggerJSON ContentFormat = original.SwaggerJSON SwaggerLinkJSON ContentFormat = original.SwaggerLinkJSON WadlLinkJSON ContentFormat = original.WadlLinkJSON @@ -121,9 +124,10 @@ const ( type ExportFormat = original.ExportFormat const ( - ExportFormatSwagger ExportFormat = original.ExportFormatSwagger - ExportFormatWadl ExportFormat = original.ExportFormatWadl - ExportFormatWsdl ExportFormat = original.ExportFormatWsdl + ExportFormatOpenAPI3 ExportFormat = original.ExportFormatOpenAPI3 + ExportFormatSwagger ExportFormat = original.ExportFormatSwagger + ExportFormatWadl ExportFormat = original.ExportFormatWadl + ExportFormatWsdl ExportFormat = original.ExportFormatWsdl ) type GrantType = original.GrantType diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go index 6636fce4c046..ff1bb5e38c87 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go @@ -203,6 +203,12 @@ func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType { type ContentFormat string const ( + // Openapi The contents are inline and Content Type is a OpenApi 3.0 Document in YAML format. + Openapi ContentFormat = "openapi" + // Openapijson The contents are inline and Content Type is a OpenApi 3.0 Document in JSON format. + Openapijson ContentFormat = "openapi+json" + // OpenapiLink The Open Api 3.0 document is hosted on a publicly accessible internet address. + OpenapiLink ContentFormat = "openapi-link" // SwaggerJSON The contents are inline and Content Type is a OpenApi 2.0 Document. SwaggerJSON ContentFormat = "swagger-json" // SwaggerLinkJSON The Open Api 2.0 document is hosted on a publicly accessible internet address. @@ -219,13 +225,15 @@ const ( // PossibleContentFormatValues returns an array of possible values for the ContentFormat const type. func PossibleContentFormatValues() []ContentFormat { - return []ContentFormat{SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} + return []ContentFormat{Openapi, Openapijson, OpenapiLink, SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} } // ExportFormat enumerates the values for export format. type ExportFormat string const ( + // ExportFormatOpenAPI3 Export the Api Definition in OpenApi Specification 3.0 to Storage Blob. + ExportFormatOpenAPI3 ExportFormat = "openapi-link" // ExportFormatSwagger Export the Api Definition in OpenApi Specification 2.0 format to the Storage Blob. ExportFormatSwagger ExportFormat = "swagger-link" // ExportFormatWadl Export the Api Definition in WADL Schema to Storage Blob. @@ -237,7 +245,7 @@ const ( // PossibleExportFormatValues returns an array of possible values for the ExportFormat const type. func PossibleExportFormatValues() []ExportFormat { - return []ExportFormat{ExportFormatSwagger, ExportFormatWadl, ExportFormatWsdl} + return []ExportFormat{ExportFormatOpenAPI3, ExportFormatSwagger, ExportFormatWadl, ExportFormatWsdl} } // GrantType enumerates the values for grant type. @@ -1085,7 +1093,7 @@ func (acoup *APICreateOrUpdateParameter) UnmarshalJSON(body []byte) error { type APICreateOrUpdateProperties struct { // ContentValue - Content value when Importing an API. ContentValue *string `json:"contentValue,omitempty"` - // ContentFormat - Format of the Content in which the API is getting imported. Possible values include: 'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink' + // ContentFormat - Format of the Content in which the API is getting imported. Possible values include: 'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink', 'Openapi', 'Openapijson', 'OpenapiLink' ContentFormat ContentFormat `json:"contentFormat,omitempty"` // WsdlSelector - Criteria to limit import of WSDL to a subset of the document. WsdlSelector *APICreateOrUpdatePropertiesWsdlSelector `json:"wsdlSelector,omitempty"`