Interface ArtifactSources
public interface ArtifactSources
Resource collection API of ArtifactSources.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ArtifactSource resource.voiddeleteById(String id) Deletes an artifact source.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes an artifact source.voiddeleteByResourceGroup(String resourceGroupName, String artifactSourceName) Deletes an artifact source.com.azure.core.http.rest.Response<Void>deleteByResourceGroupWithResponse(String resourceGroupName, String artifactSourceName, com.azure.core.util.Context context) Deletes an artifact source.Gets an artifact source.com.azure.core.http.rest.Response<ArtifactSource>getByIdWithResponse(String id, com.azure.core.util.Context context) Gets an artifact source.getByResourceGroup(String resourceGroupName, String artifactSourceName) Gets an artifact source.com.azure.core.http.rest.Response<ArtifactSource>getByResourceGroupWithResponse(String resourceGroupName, String artifactSourceName, com.azure.core.util.Context context) Gets an artifact source.Lists the artifact sources in a resource group.com.azure.core.http.rest.Response<List<ArtifactSource>>listWithResponse(String resourceGroupName, com.azure.core.util.Context context) Lists the artifact sources in a resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ArtifactSource> getByResourceGroupWithResponse(String resourceGroupName, String artifactSourceName, com.azure.core.util.Context context) Gets an artifact source.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.artifactSourceName- The name of the artifact source.context- The context to associate with this operation.- Returns:
- an artifact source 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.
-
getByResourceGroup
Gets an artifact source.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.artifactSourceName- The name of the artifact source.- Returns:
- an artifact source.
- 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.
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String artifactSourceName, com.azure.core.util.Context context) Deletes an artifact source.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.artifactSourceName- The name of the artifact source.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.
-
deleteByResourceGroup
Deletes an artifact source.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.artifactSourceName- The name of the artifact source.- 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.
-
listWithResponse
com.azure.core.http.rest.Response<List<ArtifactSource>> listWithResponse(String resourceGroupName, com.azure.core.util.Context context) Lists the artifact sources in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the list of artifact sources 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.
-
list
Lists the artifact sources in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the list of artifact sources.
- 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
Gets an artifact source.- Parameters:
id- the resource ID.- Returns:
- an artifact source 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<ArtifactSource> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets an artifact source.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- an artifact source 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
Deletes an artifact source.- 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) Deletes an artifact source.- 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 ArtifactSource resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new ArtifactSource definition.
-