Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZWN1cml0eWluc2lnaHRzL3NvdXJjZWNvbnRyb2xzL3t9/2022-06-01-preview.xml (1,081 lines of code) (raw):

<?xml version='1.0' encoding='utf-8'?> <CodeGen plane="mgmt-plane"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/sourcecontrols/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvc291cmNlY29udHJvbHMve3NvdXJjZUNvbnRyb2xJZH0=/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <commandGroup name="sentinel source-control"> <command name="show" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/sourcecontrols/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvc291cmNlY29udHJvbHMve3NvdXJjZUNvbnRyb2xJZH0=/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.sourceControlId" options="source-control-id name n" required="True" idPart="child_name_1"> <help short="Source control Id"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <operation operationId="SourceControls_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}"> <request method="get"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="sourceControlId" arg="$Path.sourceControlId" required="True"/> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="object"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="array<string>" name="contentTypes" required="True"> <item type="string"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </item> </prop> <prop type="string" name="description"/> <prop type="string" name="displayName" required="True"/> <prop type="string" name="id"/> <prop type="object" name="lastDeploymentInfo"> <prop type="object" name="deployment"> <prop type="string" name="deploymentId"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="deploymentResult"> <enum> <item value="&quot;Canceled&quot;"/> <item value="&quot;Failed&quot;"/> <item value="&quot;Success&quot;"/> </enum> </prop> <prop type="string" name="deploymentState"> <enum> <item value="&quot;Canceling&quot;"/> <item value="&quot;Completed&quot;"/> <item value="&quot;In_Progress&quot;"/> <item value="&quot;Queued&quot;"/> </enum> </prop> <prop type="dateTime" name="deploymentTime"/> </prop> <prop type="string" name="deploymentFetchStatus"> <enum> <item value="&quot;NotFound&quot;"/> <item value="&quot;Success&quot;"/> <item value="&quot;Unauthorized&quot;"/> </enum> </prop> <prop type="string" name="message"/> </prop> <prop type="string" name="repoType" required="True"> <enum> <item value="&quot;DevOps&quot;"/> <item value="&quot;Github&quot;"/> </enum> </prop> <prop type="object" name="repository" required="True"> <prop type="string" name="branch"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="displayUrl"/> <prop type="array<object>" name="pathMapping"> <item type="object"> <prop type="string" name="contentType"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </prop> <prop type="string" name="path"/> </item> </prop> <prop type="string" name="url"/> </prop> <prop type="object" name="repositoryResourceInfo"> <prop type="object" name="azureDevOpsResourceInfo"> <prop type="string" name="pipelineId"/> <prop type="string" name="serviceConnectionId"/> </prop> <prop type="object" name="gitHubResourceInfo"> <prop type="string" name="appInstallationId"/> </prop> <prop type="object" name="webhook"> <prop type="boolean" name="rotateWebhookSecret"/> <prop type="string" name="webhookId"/> <prop type="string" name="webhookSecretUpdateTime"/> <prop type="string" name="webhookUrl"/> </prop> </prop> <prop type="string" name="version"> <enum> <item value="&quot;V1&quot;"/> <item value="&quot;V2&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" 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 readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" 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="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="delete" version="2022-06-01-preview" confirmation="Are you sure you want to perform this operation?"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/sourcecontrols/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvc291cmNlY29udHJvbHMve3NvdXJjZUNvbnRyb2xJZH0=/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.sourceControlId" options="source-control-id name n" required="True" idPart="child_name_1"> <help short="Source control Id"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <operation operationId="SourceControls_Delete"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}"> <request method="delete"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="sourceControlId" arg="$Path.sourceControlId" required="True"/> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"/> <response statusCode="204"/> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> </command> <command name="create" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/sourcecontrols/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvc291cmNlY29udHJvbHMve3NvdXJjZUNvbnRyb2xJZH0=/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.sourceControlId" options="source-control-id name n" required="True" idPart="child_name_1"> <help short="Source control Id"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <argGroup name="Properties"> <arg type="array<string>" var="$sourceControl.properties.contentTypes" options="content-types" group="Properties"> <help short="Array of source control content types."/> <item type="string"> <enum> <item name="AnalyticRule" value="&quot;AnalyticRule&quot;"/> <item name="Workbook" value="&quot;Workbook&quot;"/> </enum> </item> </arg> <arg type="string" var="$sourceControl.properties.description" options="description" group="Properties"> <help short="A description of the source control"/> </arg> <arg type="string" var="$sourceControl.properties.displayName" options="display-name" group="Properties"> <help short="The display name of the source control"/> </arg> <arg type="string" var="$sourceControl.properties.id" options="id" group="Properties"> <help short="The id (a Guid) of the source control"/> </arg> <arg type="object" var="$sourceControl.properties.lastDeploymentInfo" options="last-deployment-info" group="Properties"> <help short="Information regarding the latest deployment for the source control."/> <arg type="object" var="$sourceControl.properties.lastDeploymentInfo.deployment" options="deployment"> <help short="Deployment information."/> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentId" options="deployment-id"> <help short="Deployment identifier."/> </arg> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentLogsUrl" options="deployment-logs-url"> <help short="Url to access repository action logs."/> </arg> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentResult" options="deployment-result"> <help short="The outcome of the deployment."/> <enum> <item name="Canceled" value="&quot;Canceled&quot;"/> <item name="Failed" value="&quot;Failed&quot;"/> <item name="Success" value="&quot;Success&quot;"/> </enum> </arg> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentState" options="deployment-state"> <help short="Current status of the deployment."/> <enum> <item name="Canceling" value="&quot;Canceling&quot;"/> <item name="Completed" value="&quot;Completed&quot;"/> <item name="In_Progress" value="&quot;In_Progress&quot;"/> <item name="Queued" value="&quot;Queued&quot;"/> </enum> </arg> <arg type="dateTime" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentTime" options="deployment-time"> <help short="The time when the deployment finished."/> </arg> </arg> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.deploymentFetchStatus" options="deployment-fetch-status"> <help short="Status while fetching the last deployment."/> <enum> <item name="NotFound" value="&quot;NotFound&quot;"/> <item name="Success" value="&quot;Success&quot;"/> <item name="Unauthorized" value="&quot;Unauthorized&quot;"/> </enum> </arg> <arg type="string" var="$sourceControl.properties.lastDeploymentInfo.message" options="message"> <help short="Additional details about the deployment that can be shown to the user."/> </arg> </arg> <arg type="string" var="$sourceControl.properties.repoType" options="repo-type" group="Properties"> <help short="The repository type of the source control"/> <enum> <item name="DevOps" value="&quot;DevOps&quot;"/> <item name="Github" value="&quot;Github&quot;"/> </enum> </arg> <arg type="object" var="$sourceControl.properties.repository" options="repository" group="Properties"> <help short="Repository metadata."/> <arg type="string" var="$sourceControl.properties.repository.branch" options="branch"> <help short="Branch name of repository."/> </arg> <arg type="string" var="$sourceControl.properties.repository.deploymentLogsUrl" options="deployment-logs-url"> <help short="Url to access repository action logs."/> </arg> <arg type="string" var="$sourceControl.properties.repository.displayUrl" options="display-url"> <help short="Display url of repository."/> </arg> <arg type="array<object>" var="$sourceControl.properties.repository.pathMapping" options="path-mapping"> <help short="Dictionary of source control content type and path mapping."/> <item type="object"> <arg type="string" var="$sourceControl.properties.repository.pathMapping[].contentType" options="content-type"> <help short="Content type."/> <enum> <item name="AnalyticRule" value="&quot;AnalyticRule&quot;"/> <item name="Workbook" value="&quot;Workbook&quot;"/> </enum> </arg> <arg type="string" var="$sourceControl.properties.repository.pathMapping[].path" options="path"> <help short="The path to the content."/> </arg> </item> </arg> <arg type="string" var="$sourceControl.properties.repository.url" options="url"> <help short="Url of repository."/> </arg> </arg> <arg type="object" var="$sourceControl.properties.repositoryResourceInfo" options="repository-info" group="Properties"> <help short="Information regarding the resources created in user's repository."/> <arg type="object" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo" options="azure-dev-ops-resource-info"> <help short="Resources created in Azure DevOps for this source-control."/> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.pipelineId" options="pipeline-id"> <help short="Id of the pipeline created for the source-control."/> </arg> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.serviceConnectionId" options="service-connection-id"> <help short="Id of the service-connection created for the source-control."/> </arg> </arg> <arg type="object" var="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo" options="git-hub-resource-info"> <help short="Resources created in GitHub for this source-control."/> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo.appInstallationId" options="app-installation-id"> <help short="GitHub application installation id."/> </arg> </arg> <arg type="object" var="$sourceControl.properties.repositoryResourceInfo.webhook" options="webhook"> <help short="The webhook object created for the source-control."/> <arg type="boolean" var="$sourceControl.properties.repositoryResourceInfo.webhook.rotateWebhookSecret" options="rotate-webhook-secret"> <help short="A flag to instruct the backend service to rotate webhook secret."/> </arg> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookId" options="webhook-id"> <help short="Unique identifier for the webhook."/> </arg> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookSecretUpdateTime" options="webhook-secret-update-time"> <help short="Time when the webhook secret was updated."/> </arg> <arg type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookUrl" options="webhook-url"> <help short="URL that gets invoked by the webhook."/> </arg> </arg> </arg> <arg type="string" var="$sourceControl.properties.version" options="version" group="Properties"> <help short="The version number associated with the source control"/> <enum> <item name="V1" value="&quot;V1&quot;"/> <item name="V2" value="&quot;V2&quot;"/> </enum> </arg> </argGroup> <argGroup name="SourceControl"> <arg type="string" var="$sourceControl.etag" options="etag" group="SourceControl"> <help short="Etag of the azure resource"/> </arg> </argGroup> <operation operationId="SourceControls_Create"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}"> <request method="put"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="sourceControlId" arg="$Path.sourceControlId" required="True"/> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> <body> <json> <schema type="object" name="sourceControl" required="True" clientFlatten="True"> <prop type="string" name="etag" arg="$sourceControl.etag"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="array<string>" name="contentTypes" arg="$sourceControl.properties.contentTypes" required="True"> <item type="string"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </item> </prop> <prop type="string" name="description" arg="$sourceControl.properties.description"/> <prop type="string" name="displayName" arg="$sourceControl.properties.displayName" required="True"/> <prop type="string" name="id" arg="$sourceControl.properties.id"/> <prop type="object" name="lastDeploymentInfo" arg="$sourceControl.properties.lastDeploymentInfo"> <prop type="object" name="deployment" arg="$sourceControl.properties.lastDeploymentInfo.deployment"> <prop type="string" name="deploymentId" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentId"/> <prop type="string" name="deploymentLogsUrl" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentLogsUrl"/> <prop type="string" name="deploymentResult" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentResult"> <enum> <item value="&quot;Canceled&quot;"/> <item value="&quot;Failed&quot;"/> <item value="&quot;Success&quot;"/> </enum> </prop> <prop type="string" name="deploymentState" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentState"> <enum> <item value="&quot;Canceling&quot;"/> <item value="&quot;Completed&quot;"/> <item value="&quot;In_Progress&quot;"/> <item value="&quot;Queued&quot;"/> </enum> </prop> <prop type="dateTime" name="deploymentTime" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentTime"/> </prop> <prop type="string" name="deploymentFetchStatus" arg="$sourceControl.properties.lastDeploymentInfo.deploymentFetchStatus"> <enum> <item value="&quot;NotFound&quot;"/> <item value="&quot;Success&quot;"/> <item value="&quot;Unauthorized&quot;"/> </enum> </prop> <prop type="string" name="message" arg="$sourceControl.properties.lastDeploymentInfo.message"/> </prop> <prop type="string" name="repoType" arg="$sourceControl.properties.repoType" required="True"> <enum> <item value="&quot;DevOps&quot;"/> <item value="&quot;Github&quot;"/> </enum> </prop> <prop type="object" name="repository" arg="$sourceControl.properties.repository" required="True"> <prop type="string" name="branch" arg="$sourceControl.properties.repository.branch"/> <prop type="string" name="deploymentLogsUrl" arg="$sourceControl.properties.repository.deploymentLogsUrl"/> <prop type="string" name="displayUrl" arg="$sourceControl.properties.repository.displayUrl"/> <prop type="array<object>" name="pathMapping" arg="$sourceControl.properties.repository.pathMapping"> <item type="object"> <prop type="string" name="contentType" arg="$sourceControl.properties.repository.pathMapping[].contentType"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </prop> <prop type="string" name="path" arg="$sourceControl.properties.repository.pathMapping[].path"/> </item> </prop> <prop type="string" name="url" arg="$sourceControl.properties.repository.url"/> </prop> <prop type="object" name="repositoryResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo"> <prop type="object" name="azureDevOpsResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo"> <prop type="string" name="pipelineId" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.pipelineId"/> <prop type="string" name="serviceConnectionId" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.serviceConnectionId"/> </prop> <prop type="object" name="gitHubResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo"> <prop type="string" name="appInstallationId" arg="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo.appInstallationId"/> </prop> <prop type="object" name="webhook" arg="$sourceControl.properties.repositoryResourceInfo.webhook"> <prop type="boolean" name="rotateWebhookSecret" arg="$sourceControl.properties.repositoryResourceInfo.webhook.rotateWebhookSecret"/> <prop type="string" name="webhookId" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookId"/> <prop type="string" name="webhookSecretUpdateTime" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookSecretUpdateTime"/> <prop type="string" name="webhookUrl" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookUrl"/> </prop> </prop> <prop type="string" name="version" arg="$sourceControl.properties.version"> <enum> <item value="&quot;V1&quot;"/> <item value="&quot;V2&quot;"/> </enum> </prop> </prop> </schema> </json> </body> </request> <response statusCode="200 201"> <body> <json var="$Instance"> <schema type="object"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="array<string>" name="contentTypes" required="True"> <item type="string"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </item> </prop> <prop type="string" name="description"/> <prop type="string" name="displayName" required="True"/> <prop type="string" name="id"/> <prop type="object" name="lastDeploymentInfo"> <prop type="object" name="deployment"> <prop type="string" name="deploymentId"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="deploymentResult"> <enum> <item value="&quot;Canceled&quot;"/> <item value="&quot;Failed&quot;"/> <item value="&quot;Success&quot;"/> </enum> </prop> <prop type="string" name="deploymentState"> <enum> <item value="&quot;Canceling&quot;"/> <item value="&quot;Completed&quot;"/> <item value="&quot;In_Progress&quot;"/> <item value="&quot;Queued&quot;"/> </enum> </prop> <prop type="dateTime" name="deploymentTime"/> </prop> <prop type="string" name="deploymentFetchStatus"> <enum> <item value="&quot;NotFound&quot;"/> <item value="&quot;Success&quot;"/> <item value="&quot;Unauthorized&quot;"/> </enum> </prop> <prop type="string" name="message"/> </prop> <prop type="string" name="repoType" required="True"> <enum> <item value="&quot;DevOps&quot;"/> <item value="&quot;Github&quot;"/> </enum> </prop> <prop type="object" name="repository" required="True"> <prop type="string" name="branch"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="displayUrl"/> <prop type="array<object>" name="pathMapping"> <item type="object"> <prop type="string" name="contentType"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </prop> <prop type="string" name="path"/> </item> </prop> <prop type="string" name="url"/> </prop> <prop type="object" name="repositoryResourceInfo"> <prop type="object" name="azureDevOpsResourceInfo"> <prop type="string" name="pipelineId"/> <prop type="string" name="serviceConnectionId"/> </prop> <prop type="object" name="gitHubResourceInfo"> <prop type="string" name="appInstallationId"/> </prop> <prop type="object" name="webhook"> <prop type="boolean" name="rotateWebhookSecret"/> <prop type="string" name="webhookId"/> <prop type="string" name="webhookSecretUpdateTime"/> <prop type="string" name="webhookUrl"/> </prop> </prop> <prop type="string" name="version"> <enum> <item value="&quot;V1&quot;"/> <item value="&quot;V2&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" 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 readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" 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="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="update" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/sourcecontrols/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvc291cmNlY29udHJvbHMve3NvdXJjZUNvbnRyb2xJZH0=/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="string" var="$Path.sourceControlId" options="source-control-id name n" required="True" idPart="child_name_1"> <help short="Source control Id"/> </arg> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <argGroup name="Properties"> <arg type="array<string>" var="$sourceControl.properties.contentTypes" options="content-types" group="Properties"> <help short="Array of source control content types."/> <item type="string"> <enum> <item name="AnalyticRule" value="&quot;AnalyticRule&quot;"/> <item name="Workbook" value="&quot;Workbook&quot;"/> </enum> </item> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.description" options="description" group="Properties"> <help short="A description of the source control"/> </arg> <arg type="string" var="$sourceControl.properties.displayName" options="display-name" group="Properties"> <help short="The display name of the source control"/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.id" options="id" group="Properties"> <help short="The id (a Guid) of the source control"/> </arg> <arg nullable="True" type="object" var="$sourceControl.properties.lastDeploymentInfo" options="last-deployment-info" group="Properties"> <help short="Information regarding the latest deployment for the source control."/> <arg nullable="True" type="object" var="$sourceControl.properties.lastDeploymentInfo.deployment" options="deployment"> <help short="Deployment information."/> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentId" options="deployment-id"> <help short="Deployment identifier."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentLogsUrl" options="deployment-logs-url"> <help short="Url to access repository action logs."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentResult" options="deployment-result"> <help short="The outcome of the deployment."/> <enum> <item name="Canceled" value="&quot;Canceled&quot;"/> <item name="Failed" value="&quot;Failed&quot;"/> <item name="Success" value="&quot;Success&quot;"/> </enum> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentState" options="deployment-state"> <help short="Current status of the deployment."/> <enum> <item name="Canceling" value="&quot;Canceling&quot;"/> <item name="Completed" value="&quot;Completed&quot;"/> <item name="In_Progress" value="&quot;In_Progress&quot;"/> <item name="Queued" value="&quot;Queued&quot;"/> </enum> </arg> <arg nullable="True" type="dateTime" var="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentTime" options="deployment-time"> <help short="The time when the deployment finished."/> </arg> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.deploymentFetchStatus" options="deployment-fetch-status"> <help short="Status while fetching the last deployment."/> <enum> <item name="NotFound" value="&quot;NotFound&quot;"/> <item name="Success" value="&quot;Success&quot;"/> <item name="Unauthorized" value="&quot;Unauthorized&quot;"/> </enum> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.lastDeploymentInfo.message" options="message"> <help short="Additional details about the deployment that can be shown to the user."/> </arg> </arg> <arg type="string" var="$sourceControl.properties.repoType" options="repo-type" group="Properties"> <help short="The repository type of the source control"/> <enum> <item name="DevOps" value="&quot;DevOps&quot;"/> <item name="Github" value="&quot;Github&quot;"/> </enum> </arg> <arg type="object" var="$sourceControl.properties.repository" options="repository" group="Properties"> <help short="Repository metadata."/> <arg nullable="True" type="string" var="$sourceControl.properties.repository.branch" options="branch"> <help short="Branch name of repository."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repository.deploymentLogsUrl" options="deployment-logs-url"> <help short="Url to access repository action logs."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repository.displayUrl" options="display-url"> <help short="Display url of repository."/> </arg> <arg nullable="True" type="array<object>" var="$sourceControl.properties.repository.pathMapping" options="path-mapping"> <help short="Dictionary of source control content type and path mapping."/> <item type="object"> <arg nullable="True" type="string" var="$sourceControl.properties.repository.pathMapping[].contentType" options="content-type"> <help short="Content type."/> <enum> <item name="AnalyticRule" value="&quot;AnalyticRule&quot;"/> <item name="Workbook" value="&quot;Workbook&quot;"/> </enum> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repository.pathMapping[].path" options="path"> <help short="The path to the content."/> </arg> </item> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repository.url" options="url"> <help short="Url of repository."/> </arg> </arg> <arg nullable="True" type="object" var="$sourceControl.properties.repositoryResourceInfo" options="repository-info" group="Properties"> <help short="Information regarding the resources created in user's repository."/> <arg nullable="True" type="object" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo" options="azure-dev-ops-resource-info"> <help short="Resources created in Azure DevOps for this source-control."/> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.pipelineId" options="pipeline-id"> <help short="Id of the pipeline created for the source-control."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.serviceConnectionId" options="service-connection-id"> <help short="Id of the service-connection created for the source-control."/> </arg> </arg> <arg nullable="True" type="object" var="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo" options="git-hub-resource-info"> <help short="Resources created in GitHub for this source-control."/> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo.appInstallationId" options="app-installation-id"> <help short="GitHub application installation id."/> </arg> </arg> <arg nullable="True" type="object" var="$sourceControl.properties.repositoryResourceInfo.webhook" options="webhook"> <help short="The webhook object created for the source-control."/> <arg nullable="True" type="boolean" var="$sourceControl.properties.repositoryResourceInfo.webhook.rotateWebhookSecret" options="rotate-webhook-secret"> <help short="A flag to instruct the backend service to rotate webhook secret."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookId" options="webhook-id"> <help short="Unique identifier for the webhook."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookSecretUpdateTime" options="webhook-secret-update-time"> <help short="Time when the webhook secret was updated."/> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.repositoryResourceInfo.webhook.webhookUrl" options="webhook-url"> <help short="URL that gets invoked by the webhook."/> </arg> </arg> </arg> <arg nullable="True" type="string" var="$sourceControl.properties.version" options="version" group="Properties"> <help short="The version number associated with the source control"/> <enum> <item name="V1" value="&quot;V1&quot;"/> <item name="V2" value="&quot;V2&quot;"/> </enum> </arg> </argGroup> <argGroup name="SourceControl"> <arg nullable="True" type="string" var="$sourceControl.etag" options="etag" group="SourceControl"> <help short="Etag of the azure resource"/> </arg> </argGroup> <operation operationId="SourceControls_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}"> <request method="get"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="sourceControlId" arg="$Path.sourceControlId" required="True"/> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="object" cls="SourceControl_read"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="array<string>" name="contentTypes" required="True"> <item type="string"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </item> </prop> <prop type="string" name="description"/> <prop type="string" name="displayName" required="True"/> <prop type="string" name="id"/> <prop type="object" name="lastDeploymentInfo"> <prop type="object" name="deployment"> <prop type="string" name="deploymentId"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="deploymentResult"> <enum> <item value="&quot;Canceled&quot;"/> <item value="&quot;Failed&quot;"/> <item value="&quot;Success&quot;"/> </enum> </prop> <prop type="string" name="deploymentState"> <enum> <item value="&quot;Canceling&quot;"/> <item value="&quot;Completed&quot;"/> <item value="&quot;In_Progress&quot;"/> <item value="&quot;Queued&quot;"/> </enum> </prop> <prop type="dateTime" name="deploymentTime"/> </prop> <prop type="string" name="deploymentFetchStatus"> <enum> <item value="&quot;NotFound&quot;"/> <item value="&quot;Success&quot;"/> <item value="&quot;Unauthorized&quot;"/> </enum> </prop> <prop type="string" name="message"/> </prop> <prop type="string" name="repoType" required="True"> <enum> <item value="&quot;DevOps&quot;"/> <item value="&quot;Github&quot;"/> </enum> </prop> <prop type="object" name="repository" required="True"> <prop type="string" name="branch"/> <prop type="string" name="deploymentLogsUrl"/> <prop type="string" name="displayUrl"/> <prop type="array<object>" name="pathMapping"> <item type="object"> <prop type="string" name="contentType"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </prop> <prop type="string" name="path"/> </item> </prop> <prop type="string" name="url"/> </prop> <prop type="object" name="repositoryResourceInfo"> <prop type="object" name="azureDevOpsResourceInfo"> <prop type="string" name="pipelineId"/> <prop type="string" name="serviceConnectionId"/> </prop> <prop type="object" name="gitHubResourceInfo"> <prop type="string" name="appInstallationId"/> </prop> <prop type="object" name="webhook"> <prop type="boolean" name="rotateWebhookSecret"/> <prop type="string" name="webhookId"/> <prop type="string" name="webhookSecretUpdateTime"/> <prop type="string" name="webhookUrl"/> </prop> </prop> <prop type="string" name="version"> <enum> <item value="&quot;V1&quot;"/> <item value="&quot;V2&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" 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 readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" 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="@ODataV4Format"/> </json> </body> </response> </http> </operation> <operation> <instanceUpdate instance="$Instance"> <json> <schema type="object" name="sourceControl" required="True" clientFlatten="True"> <prop type="string" name="etag" arg="$sourceControl.etag"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="array<string>" name="contentTypes" arg="$sourceControl.properties.contentTypes" required="True"> <item type="string"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </item> </prop> <prop type="string" name="description" arg="$sourceControl.properties.description"/> <prop type="string" name="displayName" arg="$sourceControl.properties.displayName" required="True"/> <prop type="string" name="id" arg="$sourceControl.properties.id"/> <prop type="object" name="lastDeploymentInfo" arg="$sourceControl.properties.lastDeploymentInfo"> <prop type="object" name="deployment" arg="$sourceControl.properties.lastDeploymentInfo.deployment"> <prop type="string" name="deploymentId" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentId"/> <prop type="string" name="deploymentLogsUrl" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentLogsUrl"/> <prop type="string" name="deploymentResult" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentResult"> <enum> <item value="&quot;Canceled&quot;"/> <item value="&quot;Failed&quot;"/> <item value="&quot;Success&quot;"/> </enum> </prop> <prop type="string" name="deploymentState" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentState"> <enum> <item value="&quot;Canceling&quot;"/> <item value="&quot;Completed&quot;"/> <item value="&quot;In_Progress&quot;"/> <item value="&quot;Queued&quot;"/> </enum> </prop> <prop type="dateTime" name="deploymentTime" arg="$sourceControl.properties.lastDeploymentInfo.deployment.deploymentTime"/> </prop> <prop type="string" name="deploymentFetchStatus" arg="$sourceControl.properties.lastDeploymentInfo.deploymentFetchStatus"> <enum> <item value="&quot;NotFound&quot;"/> <item value="&quot;Success&quot;"/> <item value="&quot;Unauthorized&quot;"/> </enum> </prop> <prop type="string" name="message" arg="$sourceControl.properties.lastDeploymentInfo.message"/> </prop> <prop type="string" name="repoType" arg="$sourceControl.properties.repoType" required="True"> <enum> <item value="&quot;DevOps&quot;"/> <item value="&quot;Github&quot;"/> </enum> </prop> <prop type="object" name="repository" arg="$sourceControl.properties.repository" required="True"> <prop type="string" name="branch" arg="$sourceControl.properties.repository.branch"/> <prop type="string" name="deploymentLogsUrl" arg="$sourceControl.properties.repository.deploymentLogsUrl"/> <prop type="string" name="displayUrl" arg="$sourceControl.properties.repository.displayUrl"/> <prop type="array<object>" name="pathMapping" arg="$sourceControl.properties.repository.pathMapping"> <item type="object"> <prop type="string" name="contentType" arg="$sourceControl.properties.repository.pathMapping[].contentType"> <enum> <item value="&quot;AnalyticRule&quot;"/> <item value="&quot;Workbook&quot;"/> </enum> </prop> <prop type="string" name="path" arg="$sourceControl.properties.repository.pathMapping[].path"/> </item> </prop> <prop type="string" name="url" arg="$sourceControl.properties.repository.url"/> </prop> <prop type="object" name="repositoryResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo"> <prop type="object" name="azureDevOpsResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo"> <prop type="string" name="pipelineId" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.pipelineId"/> <prop type="string" name="serviceConnectionId" arg="$sourceControl.properties.repositoryResourceInfo.azureDevOpsResourceInfo.serviceConnectionId"/> </prop> <prop type="object" name="gitHubResourceInfo" arg="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo"> <prop type="string" name="appInstallationId" arg="$sourceControl.properties.repositoryResourceInfo.gitHubResourceInfo.appInstallationId"/> </prop> <prop type="object" name="webhook" arg="$sourceControl.properties.repositoryResourceInfo.webhook"> <prop type="boolean" name="rotateWebhookSecret" arg="$sourceControl.properties.repositoryResourceInfo.webhook.rotateWebhookSecret"/> <prop type="string" name="webhookId" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookId"/> <prop type="string" name="webhookSecretUpdateTime" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookSecretUpdateTime"/> <prop type="string" name="webhookUrl" arg="$sourceControl.properties.repositoryResourceInfo.webhook.webhookUrl"/> </prop> </prop> <prop type="string" name="version" arg="$sourceControl.properties.version"> <enum> <item value="&quot;V1&quot;"/> <item value="&quot;V2&quot;"/> </enum> </prop> </prop> </schema> </json> </instanceUpdate> </operation> <operation operationId="SourceControls_Create"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}"> <request method="put"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="sourceControlId" arg="$Path.sourceControlId" required="True"/> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> <body> <json ref="$Instance"/> </body> </request> <response statusCode="200 201"> <body> <json var="$Instance"> <schema type="@SourceControl_read"/> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> </commandGroup> </CodeGen>