Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hcGljZW50ZXIvc2VydmljZXMve30vbWV0YWRhdGFzY2hlbWFzL3t9/2024-03-01.xml (542 lines of code) (raw):

<?xml version='1.0' encoding='utf-8'?> <CodeGen plane="mgmt-plane"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <commandGroup name="apic metadata"> <command name="show" version="2024-03-01"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.metadataSchemaName" options="metadata-name" required="True" group="" idPart="child_name_1"> <help short="The name of the metadata schema."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.serviceName" options="service-name n" required="True" group="" idPart="name"> <help short="The name of Azure API Center service."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> </argGroup> <operation operationId="MetadataSchemas_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="get"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <header> <item name="ETag"/> </header> <body> <json var="$Instance"> <schema type="object"> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiCenter/services/{}/metadataSchemas/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop type="array<object>" name="assignedTo"> <item type="object"> <prop type="boolean" name="deprecated"/> <prop type="string" name="entity"> <enum> <item value="&quot;api&quot;"/> <item value="&quot;deployment&quot;"/> <item value="&quot;environment&quot;"/> </enum> </prop> <prop type="boolean" name="required"/> </item> </prop> <prop type="string" name="schema" required="True"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop type="dateTime" name="createdAt"/> <prop type="string" name="createdBy"/> <prop type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop type="dateTime" name="lastModifiedAt"/> <prop type="string" name="lastModifiedBy"/> <prop type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="delete" version="2024-03-01" confirmation="Are you sure you want to perform this operation?"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.metadataSchemaName" options="metadata-name" required="True" group="" idPart="child_name_1"> <help short="The name of the metadata schema."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.serviceName" options="service-name n" required="True" group="" idPart="name"> <help short="The name of Azure API Center service."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> </argGroup> <operation operationId="MetadataSchemas_Delete"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="delete"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"/> <response statusCode="204"/> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> </command> <command name="create" version="2024-03-01" confirmation=""> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.metadataSchemaName" options="metadata-name" required="True" group="" idPart="child_name_1"> <help short="The name of the metadata schema."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.serviceName" options="service-name n" required="True" group="" idPart="name"> <help short="The name of Azure API Center service."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> </argGroup> <argGroup name="Properties"> <arg type="array<object>" var="$payload.properties.assignedTo" options="assignments" group="Properties"> <help short="Defines the assignment scope for the custom metadata, e.g. &quot;[{entity:api,required:true,deprecated:false}]&quot;. The available entity values are: api, deployment, environment."/> <item type="object"> <arg type="boolean" var="$payload.properties.assignedTo[].deprecated" options="deprecated"> <help short="Deprecated assignment"/> </arg> <arg type="string" var="$payload.properties.assignedTo[].entity" options="entity"> <help short="The entities this metadata schema component gets applied to."/> <enum> <item name="api" value="&quot;api&quot;"/> <item name="deployment" value="&quot;deployment&quot;"/> <item name="environment" value="&quot;environment&quot;"/> </enum> </arg> <arg type="boolean" var="$payload.properties.assignedTo[].required" options="required"> <help short="Required assignment"/> </arg> </item> </arg> <arg type="string" var="$payload.properties.schema" options="schema" required="True" group="Properties"> <help short="JSON schema defining the type."/> </arg> </argGroup> <operation operationId="MetadataSchemas_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="put"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> <body> <json> <schema type="object" name="payload" required="True" clientFlatten="True"> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop type="array<object>" name="assignedTo" arg="$payload.properties.assignedTo"> <item type="object"> <prop type="boolean" name="deprecated" arg="$payload.properties.assignedTo[].deprecated"/> <prop type="string" name="entity" arg="$payload.properties.assignedTo[].entity"> <enum> <item value="&quot;api&quot;"/> <item value="&quot;deployment&quot;"/> <item value="&quot;environment&quot;"/> </enum> </prop> <prop type="boolean" name="required" arg="$payload.properties.assignedTo[].required"/> </item> </prop> <prop type="string" name="schema" arg="$payload.properties.schema" required="True"/> </prop> </schema> </json> </body> </request> <response statusCode="200 201"> <header> <item name="ETag"/> </header> <body> <json var="$Instance"> <schema type="object"> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiCenter/services/{}/metadataSchemas/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop type="array<object>" name="assignedTo"> <item type="object"> <prop type="boolean" name="deprecated"/> <prop type="string" name="entity"> <enum> <item value="&quot;api&quot;"/> <item value="&quot;deployment&quot;"/> <item value="&quot;environment&quot;"/> </enum> </prop> <prop type="boolean" name="required"/> </item> </prop> <prop type="string" name="schema" required="True"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop type="dateTime" name="createdAt"/> <prop type="string" name="createdBy"/> <prop type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop type="dateTime" name="lastModifiedAt"/> <prop type="string" name="lastModifiedBy"/> <prop type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="check-exists" version="2024-03-01" confirmation=""> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.metadataSchemaName" options="metadata-name" required="True" group="" idPart="child_name_1"> <help short="The name of the metadata schema."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.serviceName" options="service-name n" required="True" group="" idPart="name"> <help short="The name of Azure API Center service."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> </argGroup> <operation operationId="MetadataSchemas_Head"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="head"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"/> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> </command> <command name="update" version="2024-03-01" confirmation=""> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/metadataschemas/{}" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vbWV0YWRhdGFTY2hlbWFzL3ttZXRhZGF0YVNjaGVtYU5hbWV9/V/MjAyNC0wMy0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.metadataSchemaName" options="metadata-name" required="True" group="" idPart="child_name_1"> <help short="The name of the metadata schema."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.serviceName" options="service-name n" required="True" group="" idPart="name"> <help short="The name of Azure API Center service."/> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> </argGroup> <argGroup name="Properties"> <arg nullable="True" type="array<object>" var="$payload.properties.assignedTo" options="assignments" group="Properties"> <help short="Defines the assignment scope for the custom metadata, e.g. &quot;[{entity:api,required:true,deprecated:false}]&quot;. The available entity values are: api, deployment, environment."/> <item nullable="True" type="object"> <arg nullable="True" type="boolean" var="$payload.properties.assignedTo[].deprecated" options="deprecated"> <help short="Deprecated assignment"/> </arg> <arg nullable="True" type="string" var="$payload.properties.assignedTo[].entity" options="entity"> <help short="The entities this metadata schema component gets applied to."/> <enum> <item name="api" value="&quot;api&quot;"/> <item name="deployment" value="&quot;deployment&quot;"/> <item name="environment" value="&quot;environment&quot;"/> </enum> </arg> <arg nullable="True" type="boolean" var="$payload.properties.assignedTo[].required" options="required"> <help short="Required assignment"/> </arg> </item> </arg> <arg type="string" var="$payload.properties.schema" options="schema" group="Properties"> <help short="YAML schema defining the type."/> </arg> </argGroup> <operation operationId="MetadataSchemas_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="get"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <header> <item name="ETag"/> </header> <body> <json var="$Instance"> <schema type="object" cls="MetadataSchema_read"> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiCenter/services/{}/metadataSchemas/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop type="array<object>" name="assignedTo"> <item type="object"> <prop type="boolean" name="deprecated"/> <prop type="string" name="entity"> <enum> <item value="&quot;api&quot;"/> <item value="&quot;deployment&quot;"/> <item value="&quot;environment&quot;"/> </enum> </prop> <prop type="boolean" name="required"/> </item> </prop> <prop type="string" name="schema" required="True"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop type="dateTime" name="createdAt"/> <prop type="string" name="createdBy"/> <prop type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop type="dateTime" name="lastModifiedAt"/> <prop type="string" name="lastModifiedBy"/> <prop type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> <operation> <instanceUpdate ref="$Instance"> <json> <schema type="object" name="payload" required="True" clientFlatten="True"> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop type="array<object>" name="assignedTo" arg="$payload.properties.assignedTo"> <item type="object"> <prop type="boolean" name="deprecated" arg="$payload.properties.assignedTo[].deprecated"/> <prop type="string" name="entity" arg="$payload.properties.assignedTo[].entity"> <enum> <item value="&quot;api&quot;"/> <item value="&quot;deployment&quot;"/> <item value="&quot;environment&quot;"/> </enum> </prop> <prop type="boolean" name="required" arg="$payload.properties.assignedTo[].required"/> </item> </prop> <prop type="string" name="schema" arg="$payload.properties.schema" required="True"/> </prop> </schema> </json> </instanceUpdate> </operation> <operation operationId="MetadataSchemas_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/metadataSchemas/{metadataSchemaName}"> <request method="put"> <path> <param type="string" name="metadataSchemaName" arg="$Path.metadataSchemaName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="serviceName" arg="$Path.serviceName" required="True"> <format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/> </param> <param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2024-03-01&quot;"/> <format minLength="1"/> </const> </query> <body> <json ref="$Instance"/> </body> </request> <response statusCode="200 201"> <header> <item name="ETag"/> </header> <body> <json var="$Instance"> <schema type="@MetadataSchema_read"/> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@MgmtErrorFormat"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> </commandGroup> </CodeGen>