Lines Matching full:bucket
39 # Google Cloud Storage bucket url regex pattern. The pattern is used to extract
40 # the bucket name from the bucket URL. For example, "gs://image_bucket/google"
41 # should result in a bucket name "image_bucket".
43 r'gs://(?P<bucket>[a-zA-Z][a-zA-Z0-9-_]*)/?.*')
331 """Gets the bucket name from a bucket url.
333 @param: bucket_url: the bucket url string.
338 return match.group('bucket')
364 """Checks if a bucket is valid and accessible.
368 @param: bucket name string.
375 bucket = conn.lookup(bucket_name)
377 if bucket:
379 return (False, "Bucket %s does not exist." % bucket_name)
383 """Validates the bucket url is accessible.
387 @param: bucket url string.
394 return (False, "Bucket url %s is not valid" % bucket_url)
415 # allows result bucket to be empty.
676 storage bucket to search.