Class LinkedServiceAsyncClient


  • public final class LinkedServiceAsyncClient
    extends Object
    Initializes a new instance of the asynchronous ArtifactsClient type.
    • Method Detail

      • getLinkedServicesByWorkspace

        public com.azure.core.http.rest.PagedFlux<LinkedServiceResource> 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 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,
                                                                       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 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

        public Mono<LinkedServiceResource> getLinkedService​(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 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

        public Mono<LinkedServiceResource> getLinkedService​(String linkedServiceName)
        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 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.
      • deleteLinkedService

        public Mono<Void> deleteLinkedService​(String linkedServiceName)
        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 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.
      • renameLinkedService

        public Mono<Void> renameLinkedService​(String linkedServiceName,
                                              ArtifactRenameRequest request)
        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.