private BucketsResource.ListRequest CreateListBucketsRequest(string projectId, ListBucketsOptions options)
        {
            var request = Service.Buckets.List(projectId);

            options?.ModifyRequest(request);
            return(request);
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public override IPagedEnumerable <Buckets, Bucket> ListBuckets(string projectId, ListBucketsOptions options = null)
 {
     GaxRestPreconditions.CheckNotNull(projectId, nameof(projectId));
     return(new PagedEnumerable <BucketsResource.ListRequest, Buckets, Bucket>(
                () => CreateListBucketsRequest(projectId, options), BucketPageManager.Instance));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Lists the buckets for a given project, synchronously but lazily.
 /// </summary>
 /// <remarks>
 /// This method fetches the buckets lazily, making requests to the underlying service
 /// for a page of results at a time, as required. To retrieve all the buckets in a single collection,
 /// simply call LINQ's <c>ToList()</c> method on the returned sequence.
 /// </remarks>
 /// <param name="projectId">The ID of the project to list the buckets from. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case
 /// defaults will be supplied.</param>
 /// <returns>A sequence of buckets within the project.</returns>
 public virtual IEnumerable <Bucket> ListBuckets(string projectId, ListBucketsOptions options = null)
 {
     throw new NotImplementedException();
 }