code: def list_buckets(self, instance):
          
          # Server does not do pagination on listings of this resource.
          # Return an iterator anyway for similarity with other API methods
          response = self._client.get_proto(path='/buckets/' + instance)
          message = rest_pb2.ListBucketsResponse()
          message.ParseFromString(response.content)
          buckets = getattr(message, 'bucket')
          return iter([
              Bucket(bucket, instance, self) for bucket in buckets])
docs: List the buckets for an instance.
  
          :param str instance: A Yamcs instance name.
          :rtype: ~collections.Iterable[.Bucket]