Interface ArtifactSourcesClient


public interface ArtifactSourcesClient
An instance of this class provides access to all the operations defined in ArtifactSourcesClient.
  • Method Details

    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ArtifactSourceInner> createOrUpdateWithResponse(String resourceGroupName, String artifactSourceName, ArtifactSourceInner artifactSourceInfo, com.azure.core.util.Context context)
      Creates or updates an artifact source.

      Synchronously creates a new artifact source or updates an existing artifact source.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      artifactSourceName - The name of the artifact source.
      artifactSourceInfo - Source object that defines the resource.
      context - The context to associate with this operation.
      Returns:
      the resource that defines the source location where the artifacts are located 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.
    • createOrUpdate

      ArtifactSourceInner createOrUpdate(String resourceGroupName, String artifactSourceName)
      Creates or updates an artifact source.

      Synchronously creates a new artifact source or updates an existing artifact source.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      artifactSourceName - The name of the artifact source.
      Returns:
      the resource that defines the source location where the artifacts are located.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<ArtifactSourceInner> 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

      ArtifactSourceInner getByResourceGroup(String resourceGroupName, String artifactSourceName)
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(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.
    • delete

      void delete(String resourceGroupName, String artifactSourceName)
      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<ArtifactSourceInner>> 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

      List<ArtifactSourceInner> list(String resourceGroupName)
      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.