Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hcGljZW50ZXIvc2VydmljZXMve30vd29ya3NwYWNlcy97fS9hcGlzL3t9L3ZlcnNpb25zL3t9L2RlZmluaXRpb25zL3t9L2ltcG9ydHNwZWNpZmljYXRpb24=/2024-03-01.xml (120 lines of code) (raw):
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/workspaces/{}/apis/{}/versions/{}/definitions/{}/importspecification" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vd29ya3NwYWNlcy97d29ya3NwYWNlTmFtZX0vYXBpcy97YXBpTmFtZX0vdmVyc2lvbnMve3ZlcnNpb25OYW1lfS9kZWZpbml0aW9ucy97ZGVmaW5pdGlvbk5hbWV9L2ltcG9ydFNwZWNpZmljYXRpb24=/V/MjAyNC0wMy0wMQ=="/>
<commandGroup name="apic api definition">
<command name="import-specification" version="2024-03-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/workspaces/{}/apis/{}/versions/{}/definitions/{}/importspecification" version="2024-03-01" swagger="mgmt-plane/apicenter/ResourceProviders/Microsoft.ApiCenter/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXBpQ2VudGVyL3NlcnZpY2VzL3tzZXJ2aWNlTmFtZX0vd29ya3NwYWNlcy97d29ya3NwYWNlTmFtZX0vYXBpcy97YXBpTmFtZX0vdmVyc2lvbnMve3ZlcnNpb25OYW1lfS9kZWZpbml0aW9ucy97ZGVmaW5pdGlvbk5hbWV9L2ltcG9ydFNwZWNpZmljYXRpb24=/V/MjAyNC0wMy0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.apiName" options="api-id" required="True" group="" idPart="child_name_2">
<help short="The id of the API."/>
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</arg>
<arg type="string" var="$Path.definitionName" options="definition-id" required="True" group="" idPart="child_name_4">
<help short="The id of the API definition."/>
<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"/>
<arg type="string" var="$Path.versionName" options="version-id" required="True" group="" idPart="child_name_3">
<help short="The id of the API version."/>
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</arg>
<arg type="string" var="$Path.workspaceName" options="workspace-name workspace w" required="True" group="" idPart="child_name_1">
<help short="The name of the workspace."/>
<default value=""default""/>
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</arg>
</argGroup>
<argGroup name="Payload">
<arg type="string" var="$payload.format" options="format" group="Payload">
<help short="Format of the API specification source."/>
<enum>
<item name="inline" value=""inline""/>
<item name="link" value=""link""/>
</enum>
</arg>
<arg type="object" var="$payload.specification" options="specification" group="Payload">
<help short="API specification details."/>
<arg type="string" var="$payload.specification.name" options="name">
<help short="Specification name."/>
</arg>
<arg type="string" var="$payload.specification.version" options="version">
<help short="Specification version."/>
</arg>
</arg>
<arg type="string" var="$payload.value" options="value" group="Payload">
<help short="Value of the API specification source."/>
</arg>
</argGroup>
<operation operationId="ApiDefinitions_ImportSpecification">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/importSpecification">
<request method="post">
<path>
<param type="string" name="apiName" arg="$Path.apiName" required="True">
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</param>
<param type="string" name="definitionName" arg="$Path.definitionName" 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"/>
<param type="string" name="versionName" arg="$Path.versionName" required="True">
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</param>
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[a-zA-Z0-9-]{3,90}$" maxLength="90" minLength="1"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-03-01""/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="payload" required="True" clientFlatten="True">
<prop type="string" name="format" arg="$payload.format">
<enum>
<item value=""inline""/>
<item value=""link""/>
</enum>
</prop>
<prop type="object" name="specification" arg="$payload.specification">
<prop type="string" name="name" arg="$payload.specification.name"/>
<prop type="string" name="version" arg="$payload.specification.version"/>
</prop>
<prop type="string" name="value" arg="$payload.value"/>
</schema>
</json>
</body>
</request>
<response statusCode="200"/>
<response statusCode="202">
<header>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
</commandGroup>
</CodeGen>