Interface SourceControlsClient
public interface SourceControlsClient
An instance of this class provides access to all the operations defined in SourceControlsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlCreateOrUpdateParameters parameters) Create a source control.com.azure.core.http.rest.Response<SourceControlInner>
createOrUpdateWithResponse
(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create a source control.void
Delete the source control.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationAccountName, String sourceControlName, com.azure.core.util.Context context) Delete the source control.Retrieve the source control identified by source control name.com.azure.core.http.rest.Response<SourceControlInner>
getWithResponse
(String resourceGroupName, String automationAccountName, String sourceControlName, com.azure.core.util.Context context) Retrieve the source control identified by source control name.com.azure.core.http.rest.PagedIterable<SourceControlInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of source controls.com.azure.core.http.rest.PagedIterable<SourceControlInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of source controls.update
(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlUpdateParameters parameters) Update a source control.com.azure.core.http.rest.Response<SourceControlInner>
updateWithResponse
(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlUpdateParameters parameters, com.azure.core.util.Context context) Update a source control.
-
Method Details
-
createOrUpdate
SourceControlInner createOrUpdate(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlCreateOrUpdateParameters parameters) Create a source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The source control name.parameters
- The parameters supplied to the create or update source control operation.- Returns:
- definition of the source control.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<SourceControlInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create a source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The source control name.parameters
- The parameters supplied to the create or update source control operation.context
- The context to associate with this operation.- Returns:
- definition of the source control 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.
-
update
SourceControlInner update(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlUpdateParameters parameters) Update a source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The source control name.parameters
- The parameters supplied to the update source control operation.- Returns:
- definition of the source control.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<SourceControlInner> updateWithResponse(String resourceGroupName, String automationAccountName, String sourceControlName, SourceControlUpdateParameters parameters, com.azure.core.util.Context context) Update a source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The source control name.parameters
- The parameters supplied to the update source control operation.context
- The context to associate with this operation.- Returns:
- definition of the source control 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
Delete the source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The name of source control.- 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 automationAccountName, String sourceControlName, com.azure.core.util.Context context) Delete the source control.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The name of source control.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.
-
get
SourceControlInner get(String resourceGroupName, String automationAccountName, String sourceControlName) Retrieve the source control identified by source control name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The name of source control.- Returns:
- definition of the source control.
- 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 automationAccountName, String sourceControlName, com.azure.core.util.Context context) Retrieve the source control identified by source control name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.sourceControlName
- The name of source control.context
- The context to associate with this operation.- Returns:
- definition of the source control 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<SourceControlInner> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of source controls.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list source controls operation 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<SourceControlInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of source controls.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.filter
- The filter to apply on the operation.context
- The context to associate with this operation.- Returns:
- the response model for the list source controls operation 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.
-