/// <summary> /// Patches the metadata for a storage bucket asynchronously. /// </summary> /// <param name="bucket">Bucket to update. Must not be null, and must have a populated <c>Name</c> property.</param> /// <param name="options">Additional options for the update. May be null, in which case appropriate /// defaults will be used.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests.</param> /// <returns>A task representing the asynchronous operation, with a result returning the /// <see cref="Bucket"/> representation of the bucket storage bucket.</returns> public virtual Task <Bucket> PatchBucketAsync( Bucket bucket, PatchBucketOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) { throw new NotImplementedException(); }
private BucketsResource.PatchRequest CreatePatchBucketRequest(Bucket bucket, PatchBucketOptions options) { ValidateBucket(bucket, nameof(bucket)); var request = Service.Buckets.Patch(bucket, bucket.Name); options?.ModifyRequest(request); return(request); }
/// <inheritdoc /> public override Task <Bucket> PatchBucketAsync( Bucket bucket, PatchBucketOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) => CreatePatchBucketRequest(bucket, options).ExecuteAsync(cancellationToken);
/// <inheritdoc /> public override Bucket PatchBucket( Bucket bucket, PatchBucketOptions options = null) => CreatePatchBucketRequest(bucket, options).Execute();
/// <summary> /// Patches the metadata for a storage bucket synchronously. /// </summary> /// <param name="bucket">Bucket to update. Must not be null, and must have a populated <c>Name</c> property.</param> /// <param name="options">Additional options for the update. May be null, in which case appropriate /// defaults will be used.</param> /// <returns>The <see cref="Object"/> representation of the updated storage bucket.</returns> public virtual Bucket PatchBucket( Bucket bucket, PatchBucketOptions options = null) { throw new NotImplementedException(); }