Class LinkedServiceAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.LinkedServiceAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateLinkedService
(String linkedServiceName, LinkedServiceResource linkedService) Creates or updates a linked service.createOrUpdateLinkedService
(String linkedServiceName, LinkedServiceResource linkedService, String ifMatch) Creates or updates a linked service.Mono<com.azure.core.http.rest.Response<LinkedServiceResource>>
createOrUpdateLinkedServiceWithResponse
(String linkedServiceName, LinkedServiceResource linkedService, String ifMatch) Creates or updates a linked service.deleteLinkedService
(String linkedServiceName) Deletes a linked service.deleteLinkedServiceWithResponse
(String linkedServiceName) Deletes a linked service.getLinkedService
(String linkedServiceName) Gets a linked service.getLinkedService
(String linkedServiceName, String ifNoneMatch) Gets a linked service.com.azure.core.http.rest.PagedFlux<LinkedServiceResource>
Lists linked services.Mono<com.azure.core.http.rest.Response<LinkedServiceResource>>
getLinkedServiceWithResponse
(String linkedServiceName, String ifNoneMatch) Gets a linked service.renameLinkedService
(String linkedServiceName, ArtifactRenameRequest request) Renames a linked service.renameLinkedServiceWithResponse
(String linkedServiceName, ArtifactRenameRequest request) Renames a linked service.
-
Method Details
-
getLinkedServicesByWorkspace
Lists linked services.- Returns:
- a list of linked service resources as paginated response with
PagedFlux
. - Throws:
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateLinkedServiceWithResponse
public Mono<com.azure.core.http.rest.Response<LinkedServiceResource>> createOrUpdateLinkedServiceWithResponse(String linkedServiceName, LinkedServiceResource linkedService, String ifMatch) Creates or updates a linked service.- Parameters:
linkedServiceName
- The linked service name.linkedService
- Linked service resource definition.ifMatch
- ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- linked service resource type along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateLinkedService
public Mono<LinkedServiceResource> createOrUpdateLinkedService(String linkedServiceName, LinkedServiceResource linkedService, String ifMatch) Creates or updates a linked service.- Parameters:
linkedServiceName
- The linked service name.linkedService
- Linked service resource definition.ifMatch
- ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- linked service resource type on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateLinkedService
public Mono<LinkedServiceResource> createOrUpdateLinkedService(String linkedServiceName, LinkedServiceResource linkedService) Creates or updates a linked service.- Parameters:
linkedServiceName
- The linked service name.linkedService
- Linked service resource definition.- Returns:
- linked service resource type on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getLinkedServiceWithResponse
public Mono<com.azure.core.http.rest.Response<LinkedServiceResource>> getLinkedServiceWithResponse(String linkedServiceName, String ifNoneMatch) Gets a linked service.- Parameters:
linkedServiceName
- The linked service name.ifNoneMatch
- ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.- Returns:
- a linked service along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getLinkedService
Gets a linked service.- Parameters:
linkedServiceName
- The linked service name.ifNoneMatch
- ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.- Returns:
- a linked service on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getLinkedService
Gets a linked service.- Parameters:
linkedServiceName
- The linked service name.- Returns:
- a linked service on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteLinkedServiceWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteLinkedServiceWithResponse(String linkedServiceName) Deletes a linked service.- Parameters:
linkedServiceName
- The linked service name.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteLinkedService
Deletes a linked service.- Parameters:
linkedServiceName
- The linked service name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
renameLinkedServiceWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> renameLinkedServiceWithResponse(String linkedServiceName, ArtifactRenameRequest request) Renames a linked service.- Parameters:
linkedServiceName
- The linked service name.request
- proposed new name.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
renameLinkedService
Renames a linked service.- Parameters:
linkedServiceName
- The linked service name.request
- proposed new name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-