Interface SourceControls
public interface SourceControls
Resource collection API of SourceControls.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SourceControl resource.void
Delete the source control.void
deleteById
(String id) Delete the source control.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) 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.Retrieve the source control identified by source control name.com.azure.core.http.rest.Response<SourceControl>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieve the source control identified by source control name.com.azure.core.http.rest.Response<SourceControl>
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<SourceControl>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of source controls.com.azure.core.http.rest.PagedIterable<SourceControl>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of source controls.
-
Method Details
-
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
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<SourceControl> 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<SourceControl> 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<SourceControl> 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.
-
getById
Retrieve the source control identified by source control name.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SourceControl> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieve the source control identified by source control name.- Parameters:
id
- the resource ID.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.
-
deleteById
Delete the source control.- Parameters:
id
- the resource 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete the source control.- Parameters:
id
- the resource 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.
-
define
Begins definition for a new SourceControl resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SourceControl definition.
-