Interface ArtifactSourcesClient
public interface ArtifactSourcesClient
An instance of this class provides access to all the operations defined in ArtifactSourcesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String labName, String name, ArtifactSourceInner artifactSource) Create or replace an existing artifact source.com.azure.core.http.rest.Response<ArtifactSourceInner>
createOrUpdateWithResponse
(String resourceGroupName, String labName, String name, ArtifactSourceInner artifactSource, com.azure.core.util.Context context) Create or replace an existing artifact source.void
Delete artifact source.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Delete artifact source.Get artifact source.com.azure.core.http.rest.Response<ArtifactSourceInner>
getWithResponse
(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context) Get artifact source.com.azure.core.http.rest.PagedIterable<ArtifactSourceInner>
List artifact sources in a given lab.com.azure.core.http.rest.PagedIterable<ArtifactSourceInner>
list
(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List artifact sources in a given lab.update
(String resourceGroupName, String labName, String name, ArtifactSourceFragment artifactSource) Allows modifying tags of artifact sources.com.azure.core.http.rest.Response<ArtifactSourceInner>
updateWithResponse
(String resourceGroupName, String labName, String name, ArtifactSourceFragment artifactSource, com.azure.core.util.Context context) Allows modifying tags of artifact sources.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ArtifactSourceInner> list(String resourceGroupName, String labName) List artifact sources in a given lab.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.- Returns:
- the response of a list 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.
-
list
com.azure.core.http.rest.PagedIterable<ArtifactSourceInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List artifact sources in a given lab.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.expand
- Specify the $expand query. Example: 'properties($select=displayName)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.- Returns:
- the response of a list 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.
-
getWithResponse
com.azure.core.http.rest.Response<ArtifactSourceInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context) Get artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.expand
- Specify the $expand query. Example: 'properties($select=displayName)'.context
- The context to associate with this operation.- Returns:
- 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.
-
get
Get artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.- Returns:
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ArtifactSourceInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String name, ArtifactSourceInner artifactSource, com.azure.core.util.Context context) Create or replace an existing artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.artifactSource
- Properties of an artifact source.context
- The context to associate with this operation.- Returns:
- properties of 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.
-
createOrUpdate
ArtifactSourceInner createOrUpdate(String resourceGroupName, String labName, String name, ArtifactSourceInner artifactSource) Create or replace an existing artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.artifactSource
- Properties of an artifact source.- Returns:
- properties of 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 labName, String name, com.azure.core.util.Context context) Delete artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- 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
Delete artifact source.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ArtifactSourceInner> updateWithResponse(String resourceGroupName, String labName, String name, ArtifactSourceFragment artifactSource, com.azure.core.util.Context context) Allows modifying tags of artifact sources. All other properties will be ignored.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.artifactSource
- Properties of an artifact source.context
- The context to associate with this operation.- Returns:
- properties of 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.
-
update
ArtifactSourceInner update(String resourceGroupName, String labName, String name, ArtifactSourceFragment artifactSource) Allows modifying tags of artifact sources. All other properties will be ignored.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the artifact source.artifactSource
- Properties of an artifact source.- Returns:
- properties of 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.
-