getStorageRuleset method

Future<Ruleset> getStorageRuleset(
  1. String bucket
)

Gets the Ruleset currently applied to a Cloud Storage bucket. Rejects with a not-found error if no ruleset is applied on the bucket.

Returns a future that fulfills with the Cloud Storage ruleset.

Implementation

Future<Ruleset> getStorageRuleset(String bucket) async {
  final bucketName = bucket;
  final ruleset =
      await _getRulesetForRelease('$_firebaseStorage/$bucketName');

  return ruleset;
}