Class GeneratedAppendBlobs


  • public final class GeneratedAppendBlobs
    extends Object
    An instance of this class provides access to all the operations defined in GeneratedAppendBlobs.
    • Constructor Detail

      • GeneratedAppendBlobs

        public GeneratedAppendBlobs​(GeneratedStorageClient client)
        Initializes an instance of GeneratedAppendBlobs.
        Parameters:
        client - the instance of the service client containing this operation class.
    • Method Detail

      • create

        public void create​(com.microsoft.rest.v2.Context context,
                           @NonNull
                           long contentLength,
                           Integer timeout,
                           Map<String,​String> metadata,
                           String requestId,
                           BlobHTTPHeaders blobHTTPHeaders,
                           LeaseAccessConditions leaseAccessConditions,
                           ModifiedAccessConditions modifiedAccessConditions)
        The Create Append Blob operation creates a new append blob.
        Parameters:
        context - The context to associate with this operation.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        metadata - Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        blobHTTPHeaders - Additional parameters for the operation.
        leaseAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        StorageErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createAsync

        public com.microsoft.rest.v2.ServiceFuture<Void> createAsync​(com.microsoft.rest.v2.Context context,
                                                                     @NonNull
                                                                     long contentLength,
                                                                     Integer timeout,
                                                                     Map<String,​String> metadata,
                                                                     String requestId,
                                                                     BlobHTTPHeaders blobHTTPHeaders,
                                                                     LeaseAccessConditions leaseAccessConditions,
                                                                     ModifiedAccessConditions modifiedAccessConditions,
                                                                     com.microsoft.rest.v2.ServiceCallback<Void> serviceCallback)
        The Create Append Blob operation creates a new append blob.
        Parameters:
        context - The context to associate with this operation.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        metadata - Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        blobHTTPHeaders - Additional parameters for the operation.
        leaseAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        a ServiceFuture which will be completed with the result of the network request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • createWithRestResponseAsync

        public io.reactivex.Single<AppendBlobCreateResponse> createWithRestResponseAsync​(com.microsoft.rest.v2.Context context,
                                                                                         @NonNull
                                                                                         long contentLength,
                                                                                         Integer timeout,
                                                                                         Map<String,​String> metadata,
                                                                                         String requestId,
                                                                                         BlobHTTPHeaders blobHTTPHeaders,
                                                                                         LeaseAccessConditions leaseAccessConditions,
                                                                                         ModifiedAccessConditions modifiedAccessConditions)
        The Create Append Blob operation creates a new append blob.
        Parameters:
        context - The context to associate with this operation.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        metadata - Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        blobHTTPHeaders - Additional parameters for the operation.
        leaseAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • createAsync

        public io.reactivex.Completable createAsync​(com.microsoft.rest.v2.Context context,
                                                    @NonNull
                                                    long contentLength,
                                                    Integer timeout,
                                                    Map<String,​String> metadata,
                                                    String requestId,
                                                    BlobHTTPHeaders blobHTTPHeaders,
                                                    LeaseAccessConditions leaseAccessConditions,
                                                    ModifiedAccessConditions modifiedAccessConditions)
        The Create Append Blob operation creates a new append blob.
        Parameters:
        context - The context to associate with this operation.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        metadata - Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        blobHTTPHeaders - Additional parameters for the operation.
        leaseAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlock

        public void appendBlock​(com.microsoft.rest.v2.Context context,
                                @NonNull
                                io.reactivex.Flowable<ByteBuffer> body,
                                @NonNull
                                long contentLength,
                                Integer timeout,
                                byte[] transactionalContentMD5,
                                String requestId,
                                LeaseAccessConditions leaseAccessConditions,
                                AppendPositionAccessConditions appendPositionAccessConditions,
                                ModifiedAccessConditions modifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        body - Initial data.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        transactionalContentMD5 - Specify the transactional md5 for the body, to be validated by the service.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        StorageErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • appendBlockAsync

        public com.microsoft.rest.v2.ServiceFuture<Void> appendBlockAsync​(com.microsoft.rest.v2.Context context,
                                                                          @NonNull
                                                                          io.reactivex.Flowable<ByteBuffer> body,
                                                                          @NonNull
                                                                          long contentLength,
                                                                          Integer timeout,
                                                                          byte[] transactionalContentMD5,
                                                                          String requestId,
                                                                          LeaseAccessConditions leaseAccessConditions,
                                                                          AppendPositionAccessConditions appendPositionAccessConditions,
                                                                          ModifiedAccessConditions modifiedAccessConditions,
                                                                          com.microsoft.rest.v2.ServiceCallback<Void> serviceCallback)
        The Append Block operation commits a new block of data to the end of an existing append blob. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        body - Initial data.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        transactionalContentMD5 - Specify the transactional md5 for the body, to be validated by the service.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        a ServiceFuture which will be completed with the result of the network request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlockWithRestResponseAsync

        public io.reactivex.Single<AppendBlobAppendBlockResponse> appendBlockWithRestResponseAsync​(com.microsoft.rest.v2.Context context,
                                                                                                   @NonNull
                                                                                                   io.reactivex.Flowable<ByteBuffer> body,
                                                                                                   @NonNull
                                                                                                   long contentLength,
                                                                                                   Integer timeout,
                                                                                                   byte[] transactionalContentMD5,
                                                                                                   String requestId,
                                                                                                   LeaseAccessConditions leaseAccessConditions,
                                                                                                   AppendPositionAccessConditions appendPositionAccessConditions,
                                                                                                   ModifiedAccessConditions modifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        body - Initial data.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        transactionalContentMD5 - Specify the transactional md5 for the body, to be validated by the service.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlockAsync

        public io.reactivex.Completable appendBlockAsync​(com.microsoft.rest.v2.Context context,
                                                         @NonNull
                                                         io.reactivex.Flowable<ByteBuffer> body,
                                                         @NonNull
                                                         long contentLength,
                                                         Integer timeout,
                                                         byte[] transactionalContentMD5,
                                                         String requestId,
                                                         LeaseAccessConditions leaseAccessConditions,
                                                         AppendPositionAccessConditions appendPositionAccessConditions,
                                                         ModifiedAccessConditions modifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        body - Initial data.
        contentLength - The length of the request.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        transactionalContentMD5 - Specify the transactional md5 for the body, to be validated by the service.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlockFromUrl

        public void appendBlockFromUrl​(com.microsoft.rest.v2.Context context,
                                       @NonNull
                                       URL sourceUrl,
                                       @NonNull
                                       long contentLength,
                                       String sourceRange,
                                       byte[] sourceContentMD5,
                                       Integer timeout,
                                       String requestId,
                                       LeaseAccessConditions leaseAccessConditions,
                                       AppendPositionAccessConditions appendPositionAccessConditions,
                                       ModifiedAccessConditions modifiedAccessConditions,
                                       SourceModifiedAccessConditions sourceModifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob where the contents are read from a source url. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        sourceUrl - Specify a URL to the copy source.
        contentLength - The length of the request.
        sourceRange - Bytes of source data in the specified range.
        sourceContentMD5 - Specify the md5 calculated for the range of bytes that must be read from the copy source.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        sourceModifiedAccessConditions - Additional parameters for the operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        StorageErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • appendBlockFromUrlAsync

        public com.microsoft.rest.v2.ServiceFuture<Void> appendBlockFromUrlAsync​(com.microsoft.rest.v2.Context context,
                                                                                 @NonNull
                                                                                 URL sourceUrl,
                                                                                 @NonNull
                                                                                 long contentLength,
                                                                                 String sourceRange,
                                                                                 byte[] sourceContentMD5,
                                                                                 Integer timeout,
                                                                                 String requestId,
                                                                                 LeaseAccessConditions leaseAccessConditions,
                                                                                 AppendPositionAccessConditions appendPositionAccessConditions,
                                                                                 ModifiedAccessConditions modifiedAccessConditions,
                                                                                 SourceModifiedAccessConditions sourceModifiedAccessConditions,
                                                                                 com.microsoft.rest.v2.ServiceCallback<Void> serviceCallback)
        The Append Block operation commits a new block of data to the end of an existing append blob where the contents are read from a source url. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        sourceUrl - Specify a URL to the copy source.
        contentLength - The length of the request.
        sourceRange - Bytes of source data in the specified range.
        sourceContentMD5 - Specify the md5 calculated for the range of bytes that must be read from the copy source.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        sourceModifiedAccessConditions - Additional parameters for the operation.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        a ServiceFuture which will be completed with the result of the network request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlockFromUrlWithRestResponseAsync

        public io.reactivex.Single<AppendBlobAppendBlockFromUrlResponse> appendBlockFromUrlWithRestResponseAsync​(com.microsoft.rest.v2.Context context,
                                                                                                                 @NonNull
                                                                                                                 URL sourceUrl,
                                                                                                                 @NonNull
                                                                                                                 long contentLength,
                                                                                                                 String sourceRange,
                                                                                                                 byte[] sourceContentMD5,
                                                                                                                 Integer timeout,
                                                                                                                 String requestId,
                                                                                                                 LeaseAccessConditions leaseAccessConditions,
                                                                                                                 AppendPositionAccessConditions appendPositionAccessConditions,
                                                                                                                 ModifiedAccessConditions modifiedAccessConditions,
                                                                                                                 SourceModifiedAccessConditions sourceModifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob where the contents are read from a source url. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        sourceUrl - Specify a URL to the copy source.
        contentLength - The length of the request.
        sourceRange - Bytes of source data in the specified range.
        sourceContentMD5 - Specify the md5 calculated for the range of bytes that must be read from the copy source.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        sourceModifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
      • appendBlockFromUrlAsync

        public io.reactivex.Completable appendBlockFromUrlAsync​(com.microsoft.rest.v2.Context context,
                                                                @NonNull
                                                                URL sourceUrl,
                                                                @NonNull
                                                                long contentLength,
                                                                String sourceRange,
                                                                byte[] sourceContentMD5,
                                                                Integer timeout,
                                                                String requestId,
                                                                LeaseAccessConditions leaseAccessConditions,
                                                                AppendPositionAccessConditions appendPositionAccessConditions,
                                                                ModifiedAccessConditions modifiedAccessConditions,
                                                                SourceModifiedAccessConditions sourceModifiedAccessConditions)
        The Append Block operation commits a new block of data to the end of an existing append blob where the contents are read from a source url. The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
        Parameters:
        context - The context to associate with this operation.
        sourceUrl - Specify a URL to the copy source.
        contentLength - The length of the request.
        sourceRange - Bytes of source data in the specified range.
        sourceContentMD5 - Specify the md5 calculated for the range of bytes that must be read from the copy source.
        timeout - The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>.
        requestId - Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
        leaseAccessConditions - Additional parameters for the operation.
        appendPositionAccessConditions - Additional parameters for the operation.
        modifiedAccessConditions - Additional parameters for the operation.
        sourceModifiedAccessConditions - Additional parameters for the operation.
        Returns:
        a Single which performs the network request upon subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.