// [END build_service] // [START list_storage_bucket_contents] /// <summary> /// List the contents of a Cloud Storage bucket. /// </summary> /// <param name="bucket">the name of the Cloud Storage bucket.</param> ///<returns>a list of the contents of the specified bucket.</returns> public Objects ListBucketContents( StorageService storage, string bucket) { var request = new Google.Apis.Storage.v1.ObjectsResource.ListRequest(storage, bucket); var requestResult = request.Execute(); return requestResult; }
// [END build_service] // [START list_storage_bucket_contents] /// <summary> /// List the contents of a Cloud Storage bucket. /// </summary> /// <param name="bucket">the name of the Cloud Storage bucket.</param> ///<returns>a list of the contents of the specified bucket.</returns> public Objects ListBucketContents( StorageService storage, string bucket) { var request = new Google.Apis.Storage.v1.ObjectsResource.ListRequest(storage, bucket); var requestResult = request.Execute(); return(requestResult); }
public Google.Apis.Storage.v1.Data.Objects ListBucketContents(Google.Apis.Storage.v1.StorageService storage, string bucket) { //https://cloud.google.com/docs/authentication#code_samples var request = new Google.Apis.Storage.v1.ObjectsResource.ListRequest(storage, bucket); var requestResult = request.Execute(); return(requestResult); }