Class SparkConfigurationAsyncClient


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

      • getSparkConfigurationsByWorkspace

        public com.azure.core.http.rest.PagedFlux<SparkConfigurationResource> getSparkConfigurationsByWorkspace()
        Lists sparkconfigurations.
        Returns:
        a list of sparkconfiguration 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.
      • createOrUpdateSparkConfigurationWithResponse

        public Mono<com.azure.core.http.rest.Response<SparkConfigurationResource>> createOrUpdateSparkConfigurationWithResponse​(String sparkConfigurationName,
                                                                                                                                SparkConfigurationResource sparkConfiguration,
                                                                                                                                String ifMatch)
        Creates or updates a sparkconfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        sparkConfiguration - SparkConfiguration resource definition.
        ifMatch - ETag of the sparkConfiguration entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
        Returns:
        spark Configuration 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.
      • createOrUpdateSparkConfiguration

        public Mono<SparkConfigurationResource> createOrUpdateSparkConfiguration​(String sparkConfigurationName,
                                                                                 SparkConfigurationResource sparkConfiguration,
                                                                                 String ifMatch)
        Creates or updates a sparkconfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        sparkConfiguration - SparkConfiguration resource definition.
        ifMatch - ETag of the sparkConfiguration entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
        Returns:
        spark Configuration 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.
      • createOrUpdateSparkConfiguration

        public Mono<SparkConfigurationResource> createOrUpdateSparkConfiguration​(String sparkConfigurationName,
                                                                                 SparkConfigurationResource sparkConfiguration)
        Creates or updates a sparkconfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        sparkConfiguration - SparkConfiguration resource definition.
        Returns:
        spark Configuration 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.
      • getSparkConfigurationWithResponse

        public Mono<com.azure.core.http.rest.Response<SparkConfigurationResource>> getSparkConfigurationWithResponse​(String sparkConfigurationName,
                                                                                                                     String ifNoneMatch)
        Gets a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        ifNoneMatch - ETag of the sparkConfiguration 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 sparkConfiguration 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.
      • getSparkConfiguration

        public Mono<SparkConfigurationResource> getSparkConfiguration​(String sparkConfigurationName,
                                                                      String ifNoneMatch)
        Gets a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        ifNoneMatch - ETag of the sparkConfiguration 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 sparkConfiguration 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.
      • getSparkConfiguration

        public Mono<SparkConfigurationResource> getSparkConfiguration​(String sparkConfigurationName)
        Gets a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration name.
        Returns:
        a sparkConfiguration 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.
      • deleteSparkConfigurationWithResponse

        public Mono<com.azure.core.http.rest.Response<Void>> deleteSparkConfigurationWithResponse​(String sparkConfigurationName)
        Deletes a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration 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.
      • deleteSparkConfiguration

        public Mono<Void> deleteSparkConfiguration​(String sparkConfigurationName)
        Deletes a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration 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.
      • renameSparkConfigurationWithResponse

        public Mono<com.azure.core.http.rest.Response<Void>> renameSparkConfigurationWithResponse​(String sparkConfigurationName,
                                                                                                  ArtifactRenameRequest request)
        Renames a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration 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.
      • renameSparkConfiguration

        public Mono<Void> renameSparkConfiguration​(String sparkConfigurationName,
                                                   ArtifactRenameRequest request)
        Renames a sparkConfiguration.
        Parameters:
        sparkConfigurationName - The spark Configuration 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.