Interface SourceControlsOperationsClient
-
public interface SourceControlsOperationsClient
An instance of this class provides access to all the operations defined in SourceControlsOperationsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceControlInner
create(String resourceGroupName, String workspaceName, String sourceControlId, SourceControlInner sourceControl)
Creates a source control.com.azure.core.http.rest.Response<SourceControlInner>
createWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, SourceControlInner sourceControl, com.azure.core.util.Context context)
Creates a source control.void
delete(String resourceGroupName, String workspaceName, String sourceControlId)
Delete a source control.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, com.azure.core.util.Context context)
Delete a source control.SourceControlInner
get(String resourceGroupName, String workspaceName, String sourceControlId)
Gets a source control byt its identifier.com.azure.core.http.rest.Response<SourceControlInner>
getWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, com.azure.core.util.Context context)
Gets a source control byt its identifier.com.azure.core.http.rest.PagedIterable<SourceControlInner>
list(String resourceGroupName, String workspaceName)
Gets all source controls, without source control items.com.azure.core.http.rest.PagedIterable<SourceControlInner>
list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Gets all source controls, without source control items.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<SourceControlInner> list(String resourceGroupName, String workspaceName)
Gets all source controls, without source control items.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.- Returns:
- all source controls, without source control items as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SourceControlInner> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Gets all source controls, without source control items.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- all source controls, without source control items as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
SourceControlInner get(String resourceGroupName, String workspaceName, String sourceControlId)
Gets a source control byt its identifier.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.- Returns:
- a source control byt its identifier.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<SourceControlInner> getWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, com.azure.core.util.Context context)
Gets a source control byt its identifier.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.context
- The context to associate with this operation.- Returns:
- a source control byt its identifier along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String workspaceName, String sourceControlId)
Delete a source control.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, com.azure.core.util.Context context)
Delete a source control.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
SourceControlInner create(String resourceGroupName, String workspaceName, String sourceControlId, SourceControlInner sourceControl)
Creates a source control.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.sourceControl
- The SourceControl.- Returns:
- represents a SourceControl in Azure Security Insights.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createWithResponse
com.azure.core.http.rest.Response<SourceControlInner> createWithResponse(String resourceGroupName, String workspaceName, String sourceControlId, SourceControlInner sourceControl, com.azure.core.util.Context context)
Creates a source control.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sourceControlId
- Source control Id.sourceControl
- The SourceControl.context
- The context to associate with this operation.- Returns:
- represents a SourceControl in Azure Security Insights along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-